Advertisement
Advertisement
{ }formatter

Free online JSON formatter and parser — format, beautify, minify, and validate JSON in your browser.

Advertisement

      
    
Advertisement

About the JSON formatter

Paste raw or minified JSON on the left and click Beautify to pretty-print it with clean indentation, or Minify to collapse it to the smallest valid form. The editor validates as you type and highlights matching brackets so you can navigate deeply nested structures quickly. It doubles as a JSON viewer and validator, and everything runs locally in your browser.

Is my JSON uploaded anywhere?

No. All parsing and formatting happens locally in your browser with JavaScript — your data is never sent to a server, so it works offline and is safe for sensitive payloads.

What is the difference between Beautify and Minify?

Beautify adds line breaks and indentation to make JSON human-readable. Minify removes every non-essential character (whitespace and newlines) to produce the smallest valid JSON — useful for reducing payload size in APIs and config files.

What does the "Deep unescape" setting do?

When a value inside your JSON is itself a JSON-encoded string (a stringified object within an object), deep unescape recursively parses those nested strings into real structure instead of leaving them as escaped text.

Why does it say my JSON is invalid?

The most common causes are trailing commas, single quotes instead of double quotes, unquoted keys, or comments — none of which are allowed by the JSON specification. The error message points to the position where parsing failed.