Skip to content
Tesserae

Keyboard shortcuts

Focus search
/
This help dialog
?
Run the current tool
Ctrl/⌘ +Enter
Copy the output (when an output is focused)
Ctrl/⌘ +C

Shortcuts are ignored while you are typing in an input, a textarea or a select.

Data Formats

JSON Formatter & Validator

Parse and reformat JSON entirely in your browser. Pretty-print with 2/4/tab indentation, minify to a single line, recursively sort object keys, or just validate. Syntax errors report the line and column.

On-device No network Offline-ready

🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.

Try:

Options

Your result will appear here

Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.

How it works

Four jobs in one box

Pretty-print re-emits your JSON with 2 spaces, 4 spaces or a tab. Minify collapses it to a single line with no unnecessary whitespace. Sort keys walks the whole tree — nested objects included — and writes object keys in ascending order, which makes diffs between two versions stable. Validate only checks the text and reports the top-level value type and how many keys or elements it has, without rewriting anything.

Errors you can actually act on

When parsing fails the raw message is shown, and where a position can be pulled out of it the tool adds a translated hint such as “at line 12, column 9”. That turns the usual opaque “Unexpected token” into a pointer at the offending line, which is what you want for a config file that was hand-edited.

Know the number caveat

Values pass through JSON.parse and JSON.stringify, so a full round trip is loss-free for structure but not for every literal: integers beyond 2^53 lose precision, and the exact spelling of a number (1.0, 1e3, very long decimals) can be normalised. If exact big-integer fidelity matters, treat the output as a reformatted view rather than a byte-exact transform.

Privacy

The text never leaves the tab: parsing and re-serialising use the browser’s own JSON functions with no request, no telemetry and no upload, so a pasted payload or config stays on your device and the tool works offline.

Questions

How are syntax errors reported?

The raw parser message is shown, and where a position can be extracted it is translated into "at line L, column C" as a hint.

Does it preserve large integers exactly?

No. Values pass through JSON.parse, so integers beyond 2^53 and the exact spelling of numbers can change. Formatting is otherwise loss-free.

What does "Validate only" report?

It confirms the text is valid JSON and notes the top-level value type plus how many keys or elements it has.

See category