JSON Formatter
Format, validate and minify JSON. Free, private and runs in your browser.
About JSON Formatter
JSON Formatter checks your JSON, shows any error, and lays it out in a clean readable form. You can also minify it into a single line. Developers use it to debug data from an API or a configuration file.
How to use JSON Formatter
- Paste your JSON into the box.
- Click Format to indent it, or Minify to remove spaces.
- If the JSON is not valid, the message tells you what is wrong.
When is JSON Formatter useful?
- Make an API response readable
- Find a missing comma or bracket
- Minify JSON before adding it to a project
Frequently asked questions
What happens if my JSON is invalid?
You see an error message that describes the problem so you can fix it.
Is my data sent to a server?
No. Parsing and formatting happen in your browser.
What does Minify do?
It removes spaces and line breaks so the JSON takes less space.
Are long numbers kept exactly?
Yes. Formatting and minifying keep every number exactly as you typed it, so long IDs are not rounded.
Is JSON Formatter free to use?
Yes. JSON Formatter is free, with no sign-up and no usage limits.
Is my data sent anywhere?
No. The work is done in your browser on your own device, so nothing you use here is sent to our servers.
Privacy and safety
JSON Formatter runs entirely in your browser. What you enter never leaves your device and nothing is kept after you close the page.