JSON Formatter
Paste messy, minified JSON and turn it into clean, indented output. Choose 2 or 4 spaces or tabs, and optionally sort object keys.
- Free
- No sign-up
- Runs in your browser
Advertisement
728 × 90 · leaderboard
Your data is formatted locally in your browser and never sent to a server.
How to use JSON Formatter
- Paste your JSON into the input box.
- Choose the indentation and whether to sort keys.
- Press “Format”.
- Copy the formatted output.
About this tool
JSON from APIs and logs is often one long line that is hard to read. The formatter re-indents it according to your settings and highlights any syntax problem with a clear message.
All processing happens in your browser, which makes the tool safe for configuration files, API responses and other sensitive data.
Frequently asked questions
What does “sort keys” do?
It alphabetizes the keys of every object in the document, which makes two JSON documents easier to compare.
Why do I get a syntax error?
JSON is strict: keys must be in double quotes, trailing commas are not allowed, and values like undefined or comments are invalid. The error message shows the position of the problem.
Advertisement
Responsive · in-content