About formatting and minifying JSON
Formatting adds consistent indentation so nested objects and arrays are easy to read. Minifying strips all unnecessary whitespace, producing the smallest possible payload — useful when you're pasting JSON into a config file or API request.
About this tool
This tool formats messy, minified or hand-typed JSON into clean, readable, indented output — or strips it down to the smallest possible size. Useful for debugging an API response, cleaning up a config file, or making JSON readable before sharing it with a teammate.
How to use it
- Paste your JSON into the input box.
- Click "Format" for indented, readable output, or "Minify" for the smallest possible size.
- Click "Copy" to copy the result to your clipboard.
Frequently asked questions
What happens if my JSON has a syntax error?
The tool shows an error indicating the JSON couldn't be parsed, so you can spot and fix typos like a missing comma or unmatched bracket before using it elsewhere.
Is there a size limit on the JSON I can format?
No hard limit — very large JSON documents may take a moment longer since everything processes in your browser, but there's no artificial cap.
Is my JSON data uploaded anywhere?
No — formatting and minifying happen entirely in your browser; your data is never sent to a server.