Unformat.online

Prettify JSON Online

Beautify compact or minified JSON with proper indentation. Paste your JSON and get a human-readable result instantly — 100% client-side.

Rules:Smart QuotesConverts curly quotes (“” ‘’) to straight quotes. Always active.Non-Breaking SpacesReplaces non-breaking spaces (U+00A0) with regular spaces. Always active.Line EndingsNormalizes CRLF → LF and trims trailing whitespace per line. Always active.Removes invisible zero-width characters (U+200B, U+200C, U+200D) that silently break string comparisons.Strips the Byte Order Mark (U+FEFF) that causes “invalid character” errors in parsers and editors.Removes soft hyphens (U+00AD) from PDFs that show as garbled characters in code editors.Converts mixed tabs/spaces to a consistent indent width. Click to pick a size.Collapses all line breaks into one continuous paragraph. Great for reflowing PDF or email text.Control blank line density. Click to pick Keep 1 or Remove all.Text never leaves your browser
0 characters

What does prettifying JSON mean?

Prettifying (or beautifying) JSON adds indentation, line breaks, and spacing to make the nested structure of a JSON document visible to human readers. It is the opposite of minification.

Compact JSON like {"users":[{"id":1,"name":"Alice"},{"id":2,"name":"Bob"}]} becomes fully expanded and indented — each key-value pair on its own line, each nesting level indented consistently.

How to prettify JSON

  1. Paste your JSON into the text area above.
  2. Choose your indentation — 2 spaces (default), 4 spaces, or minify.
  3. The output is formatted immediately. Copy it with the Copy button or Ctrl+K.

Indentation options

2 spaces is the most common convention — used by most JavaScript/TypeScript projects, Prettier, and many API tools. 4 spaces is preferred in some Python and Java environments. Choose what matches your project's style guide.