JSON Formatter
Paste JSON into the box and get clean, indented output in one click. The formatter (also called a JSON beautifier or pretty printer) makes API responses and config files readable, and it tells you exactly where the syntax breaks when the JSON is invalid.
Also known as: json beautifier, json pretty print, format json online, online json formatter, beautify json.
Your data is processed locally in your browser and is not uploaded to our servers.
Features
- Indented, readable output
- Error messages with line and column
- Open a .json file or paste text
- Copy or download the result
- Everything runs locally in your browser
How to use the JSON Formatter
- Paste your JSON into the input box or open a .json file.
- Click Format JSON.
- Copy the formatted result or download it as a file.
Examples
Minified input
{"name":"NinjaTools","tools":["json","xml"]}Frequently asked questions
What does a JSON formatter do?
It adds line breaks and indentation to JSON so people can read it. The data itself does not change.
Why do I get an Invalid JSON error?
Common causes are trailing commas, single quotes instead of double quotes, unquoted keys and missing brackets. The error message shows the line and column to check.