JSON Formatter
Format, indent, and validate JSON entirely in your browser.
Minified JSON is written for machines. One line, no spacing, and a missing comma buried three hundred characters in. This formatter re-indents it so you can actually read the structure, and tells you exactly where it breaks if it will not parse.
Common uses: inspecting an API response, tidying a config file before committing it, or checking that a payload you are about to send is well formed.
How to use it
- Paste your JSON into the input box.
- Choose an indent width — two spaces, four spaces, or a tab.
- Tick “Sort keys” if you want a stable, comparable ordering.
- Read the formatted output, then copy or download it.
Not working as you expect? Report a problem with this tool.