JSON Formatter
Format, minify, and validate JSON. Nothing leaves your browser.
About this tool
Format, validate and minify JSON. Helpful for inspecting API responses and config files.
Features
- Pretty-print with custom indent
- Minify
- Strict validation with line/column errors
- Sort keys alphabetically
How to use it
- Paste JSON.
- Pick format or minify.
- Copy the result.
🔒 100% private
Everything happens inside your browser using JavaScript and WebAssembly. Your files are never uploaded to a server, never stored, and never seen by us.
Frequently asked questions
Will it accept JSON5 / comments?
Strict JSON only. Strip comments before pasting.