Developer tool
JSON Formatter
Paste JSON to check that it parses, then format it for reading or minify it for a compact copy.
Tip: press Ctrl+Enter (or ⌘+Enter) to run from a text box.
Result will show here after you run the tool.
How to format JSON online
- Paste a JSON object or array into the input.
- Choose Format for readable indentation, or Minify to remove extra space.
- Copy the result. Invalid JSON shows the parser error instead of a broken output.
Frequently asked questions
How do I format JSON online?
Paste the JSON, choose Format for readable indentation, or Minify to remove extra space, then copy the result. Invalid JSON shows a parser error instead of a broken output.
Does this JSON formatter upload my data?
No. Parsing and formatting happen in your browser. The text is not sent to our servers.
What happens with invalid JSON?
The tool reports the parser error and leaves the output empty so you can fix the input.
Can I pretty-print and minify?
Yes. Format pretty-prints with indentation. Minify collapses the same valid JSON into one compact string.
Related developer tools
Keep working without leaving the site.
Base64
Turn text into Base64, or decode a Base64 string back to text.
Open toolCSV to JSON
Turn a CSV table into a JSON array, with headers as keys.
Open toolXML formatter
Indent XML so the structure is easier to read.
Open toolCron builder
Build a five-field cron expression and read what it means.
Open toolRegex tester
See matches, positions, and capture groups.
Open toolMarkdown preview
Preview headings, lists, and links.
Open tool