JSON Tools

JSON utilities, each on its own page, each running entirely in your browser.

Rewriting and Inspecting

The formatter and the minifier are exact inverses: one adds whitespace between tokens, the other strips it, and running a document through both returns you to where you started. The validator and the tree viewer change nothing at all — they parse your input and report on it.

All four share the browser's native JSON.parse, so if one accepts your document the others will too, and the error you see from the validator is the exact error your own code will hit.

ToolChanges the text?ProducesReach for it when
JSON FormatterAdds whitespaceIndented textMaking a minified payload readable
JSON MinifierRemoves whitespaceSingle-line textShrinking a value for storage or a URL
JSON ValidatorNothingPass, or the parser errorFinding why a parse is failing
JSON Tree ViewerNothingColour-coded treeUnderstanding deeply nested structure

Frequently asked questions

Is my JSON uploaded to a server?

No. Parsing, formatting, and rendering all happen in your browser with the native JSON parser. Nothing is transmitted or stored, which makes these safe for production payloads and anything containing customer data.

What are the most common causes of invalid JSON?

Four habits borrowed from JavaScript: a trailing comma after the last element, single quotes instead of double quotes, unquoted keys, and comments. All four are valid JavaScript and none is valid JSON.

Does formatting or minifying change my data?

No. Both parse the input and re-serialise it, so keys, values, and nesting survive intact — only whitespace differs, and the two operations are exact inverses of each other.

Can these tools handle JSON with comments?

No. Comments are not part of the JSON specification and the parser rejects them. Dialects such as JSONC and JSON5 permit comments but require a parser that supports them.