JSON Formatter

Format, beautify, and minify JSON online. Free, fast, and private — everything runs in your browser.

How to use

  1. Paste your JSON into the input box.
  2. Choose an indent size — 2 spaces, 4 spaces, tab, or minify.
  3. Copy the formatted result.

Examples

  • Minified object: {"name":"Ada","langs":["Go","TS"]}
  • Nested array: {"items":[{"id":1},{"id":2}]}

FAQ

Is my JSON sent to a server?
No. All formatting happens locally in your browser — your data never leaves your device.
What does minify do?
Minify removes all whitespace and newlines, producing the smallest valid JSON on a single line.
Why does it say invalid JSON?
Your input is not valid JSON. Common causes are unquoted keys, trailing commas, or single quotes instead of double quotes.