From pasted text to formatted output, in one pass.
Paste a minified API response into the raw input pane. The engine reads the source as text first, masking string literals so a stray quote or apostrophe inside your data can never be mistaken for structure. It then parses the value and re-serialises it under the indent, sort and line-ending rules you have selected. The output pane follows you as you type, and nothing leaves the tab to do it.
The pipeline, in order
- ▸Repair runs before parsing. With REPAIR on, comments, trailing commas, bare keys, single-quoted strings, Python literals and leading-dot numbers are normalised — and every fix is listed in the status bar, so a rescued document is never a silent rewrite.
- ▸The value is parsed, not retyped. Key order, duplicates and nesting are resolved into a real structure before output is produced, which is why
2.0becomes2and a document can be sorted without breaking. - ▸Formatting is applied last. Indent 1, 2, 4, TAB or MIN, keys left alone or sorted A→Z / Z→A, optional
\uXXXXescaping, LF or CRLF, and a trailing newline you can switch off. - ▸Your toolbar choices persist. Options, auto-format and the output lock are written to local storage, so the next paste arrives already configured for the project you are in.
What each control changes
| Control | Choices | Effect on the result |
|---|---|---|
| INDENT | 1 · 2 · 4 · TAB · MIN | Spaces (or a tab) per nesting level; MIN collapses the document onto one line |
| SORT | OFF · A→Z · Z→A | Object keys at every depth. Array order is never rearranged — it is data |
| ESCAPE UNICODE | on · off | Writes café as caf\u00e9 for systems that mangle non-ASCII |
| TRAILING NL | on · off | Adds the final newline that POSIX tools and clean git diffs expect |
| REPAIR | on · off | The umbrella switch for the recovery pass; ADVANCED exposes each individual fix |
| STRICT PARSE | on · off | Parses exactly as RFC 8259 and reports the raw failure — use it to check a file you are about to commit |
| EOL | LF · CRLF | Line separator for the whole output, including the trailing newline |
One paste, two results
in { name:'bracekit', tags:['json','tools',], version:2.0 }
out {
"name": "bracekit",
"tags": [
"json",
"tools"
],
"version": 2
} Three ways to read the same value
The input pane switches between TEXT and TREE; the output pane adds TABLE, which flattens an array of objects into columns so a four-hundred-record export can be skimmed like a spreadsheet. The ✎ EDIT button makes the formatted pane editable, so you can fix a document where it already is instead of pasting it back into the left side. The footer keeps the running count of keys, arrays, size and how long the last pass took.
If a document will not parse, the status bar reports the derived line and column rather than a bare character offset — Line 7, column 24: Expected ',' or '}' after property value. The parse-error guide walks through what each message means and the invisible characters that break an otherwise valid file.
NOTE Files up to 12 MB open from disk or by drag-and-drop, and nesting deeper than 2,000 levels stops with a depth error instead of hanging the tab. Conversions, JSONPath, schema generation, diff and find live on the full workbench and on each tool page.
- ▸Live dual-pane editing with text, tree and table views
- ▸Validation with line and column error reporting
- ▸Repair comments, trailing commas, bare keys and Python literals
- ▸Sort keys, escape Unicode, configure line endings and trailing newlines
- ▸Copy, download, print and open JSON files locally
No account, no upload queue and no server-side parsing: the whole formatter ships as static files, so the page loads fast, caches well and keeps working when the network does not.