CalcuForge
Developer & Tech

JSON Formatter, Validator & Tree Viewer

Paste raw JSON to validate it, pretty-print or minify it, and browse the structure as a collapsible tree.

InputEsc to clear
OutputValid
{
"id": "CF-1042"
"name": "CalcuForge"
"active": true
"categories": [
0: "finance"
1: "civil"
2: "dev"
]
"rating": 4.8
"metadata": {
"createdAt": "2026-01-14"
"tags": null
}
}
Status
Valid JSON
Keys
8
Max depth
2
How it works

Validation and formatting rules

This tool runs your input through the browser's native JSON parser, which follows the strict JSON specification (RFC 8259) — not the more permissive rules of a JavaScript object literal. Formatting re-serializes the parsed result with two-space indentation; minifying re-serializes it with none.

KeysMust be double-quoted strings — single quotes and unquoted keys are invalid
CommasSeparate items, but a trailing comma after the last item is not allowed
StringsMust use double quotes; single quotes are not valid JSON
CommentsNot permitted anywhere in standard JSON, even with // or /* */
Example

A common trailing-comma error

Pasting an object where the last property ends with a comma — such as a "tags" array followed immediately by a closing brace with an extra comma before it — is one of the most frequent parse failures developers hit when hand-editing config files. Removing the trailing comma before the closing bracket resolves it immediately; the tool will point at the exact line and column so you don't have to scan the whole file to find it.

FAQ

Common questions

No. Parsing, validation, and formatting all run locally in your browser using the built-in JSON engine — nothing you paste is sent to a server, which makes this safe to use with real API responses or config files that contain sensitive data.

Related tools