Paste JSON to check that it is valid, then make it readable or compact. Errors show where the problem is.
How to use the JSON Formatter
- Paste your JSON into the box.
- Click Format to indent it, or Minify to remove spaces.
- If the JSON is invalid, read the message and fix the position it points to.
Tips and common uses
A JSON formatter turns a single unreadable line of API output into an indented structure and checks that it is valid.
- Paste the response and look for the error message first; most problems are a missing comma, quote or bracket.
- Minify JSON before sending it in a request body to save bytes.
- Everything runs in your browser, but avoid pasting live passwords or tokens into any online tool.
Frequently asked questions
What makes JSON invalid?
Common causes are missing quotes around keys, trailing commas, single quotes instead of double quotes and unclosed brackets.
Does it change my data?
Only the spacing. The values and order stay the same.
Is my JSON uploaded?
No. It is parsed in your browser and never leaves your device.
More free tools
- Base64 Encoder and Decoder
- URL Encoder and Decoder
- UUID Generator
- Word Counter
- Case Converter
- Text Utilities
Free to use, with no sign-up or login. This tool runs in your browser and does not store your data.
Worked example
Paste {“name”:”ZinoLens”,”tools”:[1,2,3]} and click Format. The tool prints it with indentation so each key sits on its own line. Paste {‘name’:’x’} instead and you get an error, because JSON needs double quotes. A trailing comma after the last item is another common error.
When to use this tool
Use it to read API responses, check configuration files and find the exact spot where a JSON file is broken.
Good to know
- Valid JSON uses double quotes for keys and strings, with no comments.
- Minify the result when you want the smallest size for production.
- Never paste secrets such as live API keys into any online tool if you are unsure where the data goes.
More free tools: Base64 Encoder and Decoder, URL Encoder and Decoder, UUID Generator. Browse all ZinoLens tools.
