Utilities
JSON Formatter & Validator
Format Your JSON
Indentation:
💡 JSON Formatting Tips
JSON is automatically validated and formatted as you type. Use the minify button to compress JSON, or adjust indentation for readability.Tool features
JSON Validation
Beautify & Format
Minify JSON
Error Detection
What is JSON formatting & how it works
JSON (JavaScript Object Notation) is the text format most APIs, config files and logs use to exchange structured data: objects in braces, arrays in brackets, and strings, numbers, booleans and null as values. It is strict: keys must be double-quoted, and trailing commas and comments are not allowed.
Formatting (pretty-printing) adds indentation and line breaks so nested data is readable; minifying strips all whitespace to make payloads smaller. Both start by parsing the JSON, so this tool also acts as a validator and points to the line where parsing failed. Everything runs in your browser.
How to use this tool
Related tools
Frequently asked questions
jq . file.json, or python3 -m json.tool file.json if jq is not installed.