View My JSON
Skip to main content

View My JSON · beautifier

JSON Beautifier

Unminify compacted API responses and make nested keys scannable — then keep exploring in one workspace.

Beautify a minified response

{"id":"ord_88","paid":true,"items":[{"sku":"A-1","qty":2},{"sku":"B-7","qty":1}],"note":"caf\u00e9 order"}

After Format the object is spread over indented lines with two spaces per level. The note value comes out as the literal text café, because the parser decodes the escape and the serializer writes the character back out. Key order, the array order and every value stay the same.

Why use this

  • Readable indentation for deep nesting
  • Works alongside Validate and Compact
  • Continue into visual Cards / Table views

When it helps

  • Minified production payloads you need to inspect by hand
  • Copy-paste from a terminal that crushed whitespace

How to use it

  1. Paste compacted JSON.
  2. Click Format to beautify.
  3. Validate, then open Cards or Table.

What beautifying does to your text

Beautifying is the job of taking a compacted document and giving it line breaks and indentation so a person can follow it. In View My JSON that is the Format button. The app parses your text, then writes the resulting data back out with two spaces per level. Nothing else about the document is meant to change.

That parse-then-write approach has a practical consequence. Because the output is regenerated from the data rather than patched from your original characters, the original spacing quirks are gone: stray tabs, double spaces after colons, blank lines between members. You get one consistent layout every time.

Indentation, and the lack of a dial

The indentation here is fixed at two spaces. There is no setting for four spaces or tabs. If your project lints JSON with a different width, beautify here to read the thing, and let your editor or a formatter in your repository do the final pass before you commit.

For people who find fully expanded output too tall, the app also has a Smart Format option. It keeps short arrays of plain values and small flat objects on a single line and only breaks lines when something is nested or would run past roughly eighty-eight characters. A list of numbers stays a list of numbers instead of becoming one number per line.

What survives and what quietly changes

Key order is preserved as written. Beautifying does not sort anything; there is a separate Sort keys action for that, and you should only use it when you want the change. Array order is never touched.

Escapes are worth knowing about. A sequence like \u00e9 in the input is decoded when the text is parsed, so it appears as the character itself in the output. The data is identical, but if you were hoping to inspect the escaped form byte for byte, the beautified copy will not show it. The same goes for numbers: 1.0 becomes 1 and 1e3 becomes 1000, since both are just numbers to a JSON parser. Integers too large for a double lose their precision for the same reason, so be careful with big identifiers.

Duplicate keys inside one object collapse to the last one. RFC 8259 says names within an object should be unique and leaves behavior undefined otherwise, so this is a sign to fix the source, not the beautifier.

When beautify refuses

If the text is not valid JSON, the formatter reports an error and leaves your text alone. Comments, trailing commas and single quotes are the usual culprits. Fix the syntax first, using Validate to find the spot, and then beautify.

One helpful exception: if the whole payload is a JSON string that itself contains JSON, a common result of double encoding in logs, the app can peel the layers and format the inner document. You will see a message saying it unwrapped nested JSON.

Beautify to read, compact to ship

Beautified JSON is bigger than the minified original, which is why you should not push it through a network path that charges by the byte. Use it for reading, reviews and documentation. When you need the small version back, Compact turns it around without losing any data. The whole round trip happens in your browser, so a private response never has to leave the tab.

Core viewing, formatting, and validation run in your browser — no account required for those steps. Still strip secrets before pasting into any online tool. Details: privacy policy · about.

FAQ

Is beautify JSON the same as format JSON?

For most people, yes — both mean pretty-printing with indentation. View My JSON uses Format for that job.

Related JSON tools

Guides in this cluster

More guides on the blog · Compare View My JSON with other tools