Format and validate JSON
Pretty-print messy JSON or minify it into one line. When the input is invalid, get the exact line and column of the issue. Everything stays in your browser.
About JSON formatting
JSON is the most common shape used to move data around — API responses, configuration files, exported datasets. When the input arrives as a single line or with uneven spacing, it can be hard to read at a glance.
Two-space indentation is the most common default and reads well. Four spaces stand out on wide screens. Tabs depend on the editor and are best when a team has agreed on them. Minify strips every space between quotes, brackets, and commas to make the file as small as possible.
When the input is invalid, the tool reports the exact line and column where the parser got stuck. The most common mistakes are trailing commas, missing quotes, and keys not wrapped in double quotes.