Continue in one editor
Paste JSON, format it, then keep working in the same editor. Every action uses the current content; undo, redo and the original remain available.
JSON tools
Paste JSON, format it, then keep working in the same editor. Every action uses the current content; undo, redo and the original remain available.
Every action processes the entire current document. Escape adds one layer without outer quotes.
Paste JSON or load the example to begin.
Your inputs stay in this browser tab. No upload or persistent storage. Undo history stays in this tab and is bounded for large documents.
A one-line API response hides the field you are trying to inspect. This JSON formatter doubles as a JSON beautifier: it opens up nested objects while keeping long IDs and decimal spellings intact. You can check the hierarchy before changing anything.
Use the JSON minifier for compact payloads and the JSON editor for targeted branch replacements. Formatting does not automatically sort or clean your data: those decisions have a separate preview.
A missing property and an explicit null can mean different things to an API. The cleanup preview shows the proposed document below the current document. Null and empty-value removal applies only to object properties; array elements keep their positions. An empty container created by removing children can also disappear from its parent object.
Escape adds one layer without outer quotes; Unescape removes one layer. Each operation continues from the current content, so formatting followed by escaping preserves the formatted layout. Unicode conversions remain available under More actions.
Paste JSON, format it, then keep working in the same editor. Every action uses the current content; undo, redo and the original remain available.
Fold code or switch to the tree to inspect long documents. A tree edit replaces a complete JSON value in the current document; strings need double quotes. You can undo and redo the edit.
Open More actions to sort keys or remove empty properties. Preview the change before applying it. Copy and download always use the current content, and every applied cleanup can be undone.
Numbers remain source tokens: 900719925474099312345, 1.00, -0 and exponent notation are emitted without converting them to floating point. This protects identifiers as well as precision-sensitive samples.
Expand objects and arrays on demand. Each container reveals 50 children at a time, with a button for more. Edit uses the selected path, so a key containing a slash or tilde still targets the right value.
See Unicode character count, UTF-8 bytes, maximum node depth and object-key count for the current result. Multibyte text explains why bytes may exceed characters; the root has depth zero.
Escape quotes, backslashes and control characters, or decode one JSON string layer. Convert non-ASCII characters to Unicode escapes and back, including emoji surrogate pairs. Text results remain copyable and downloadable even when they are not JSON documents.
No account or payment is required. The JSON formatter, the tree editor and the export controls are all free to use.
Yes. Processing and undo history stay in the current tab and disappear when it closes. There is no persistent document storage or shareable payload URL; copy and download are explicit actions.
It reports syntax failures with a line and column, but does not guess missing quotes or remove comments. Correct the source and run again.
Format and Minify check JSON syntax and duplicate keys before producing output. It does not validate against a JSON Schema or your application’s field requirements.
Replace a tree branch, inspect output statistics, or preview sorted keys and removal of empty object properties. Converting to another data format is a separate task.
Found an unexpected result?
Load the example to see how the JSON formatter handles indentation, compact output and a cleanup preview.