Validate & Format · Runs in your browser

JSON Pretty Print

Turn a single line of JSON from an API response, a log file or a database column into neatly indented, readable text.

Paste, drop or type your JSON

It’s checked as you type — nothing is uploaded.

Ctrl + V to paste · drop a .json file anywhere here

Drop your JSON file to load it
Waiting for input1 line0 B

Ctrl Enter ValidateCtrl Shift F FormatCtrl Shift M MinifyCtrl Z Undo

How to use it

  1. Paste the compact JSON — for example a response copied from your browser’s network tab.
  2. Click “Format”, or press Ctrl + Shift + F. Pick 2 spaces, 4 spaces or tabs.
  3. Fold sections you don’t need, then copy or download the readable version.

Nothing changes but whitespace

Pretty printing only adds line breaks and indentation. Large numbers like 12345678901234567890 and values like 1.10 are kept exactly as written.

Log lines and escaped JSON

If your JSON is wrapped in quotes with \" escapes (common in logs), use the JSON Unescape tool first, then pretty print the result.

Pretty print vs. format

They are the same thing. This page opens the same editor as the JSON Formatter, so all of its options — indent size, sort keys, tree view — are here too.