Jsontify

Ad-free, fast, private JSON viewer & editor

Paste JSON, drop a file, or Open

Explorer

Tree explorer will appear here once JSON is loaded

Inspector

Select a node to inspect it

Paste or open a file to begin
🔒 Processed in your browser - nothing is uploaded to our servers

JSON Pretty Print

Pretty-printing takes any valid JSON - however it is spaced, ordered, or nested - and lays it out with consistent indentation, one value per line, so the structure is visible without mentally parsing brackets. It is the step most people reach for right before pasting JSON into a pull request, a bug report, or a chat thread.

The optional sort-keys mode reorders every object's keys alphabetically as part of pretty-printing, which produces a stable, predictable output - two JSON documents with the same data but different key order become byte-for-byte comparable once both are sorted and pretty-printed, which is exactly what a text diff needs to be useful.

Numbers are re-emitted from their original source text, not round-tripped through a JavaScript number, so pretty-printing never quietly changes a 19-digit ID or a long decimal price - what goes in numerically is what comes out.

Pretty-printing is a single undoable step against your pasted text, and runs in the same background worker as parsing, so it stays instant even on a large document.

Frequently asked questions

What's the difference between pretty-print and format?
They produce the same kind of indented output - pretty-print here specifically emphasizes the sort-keys option, which is most useful when preparing JSON for a diff or comparison.
Does sorting keys change the meaning of my JSON?
No - object keys are unordered in JSON by definition, so alphabetizing them does not change what the data means, only how it reads.
Will pretty-printing round any numbers?
No - numbers are copied from the original text rather than passed through a JavaScript number, so large integers and long decimals stay exact.
Does pretty-printing happen on a server?
No. Pretty-printing runs entirely in your browser - nothing is uploaded to our servers.