How it works
Validates and reindents JSON to make it readable and well-structured. Because it first parses the text, it detects syntax errors (extra commas, missing quotes, unclosed braces) and reports where the problem is.
You can choose the indentation type (spaces or tabs), the indent size, and the line ending. The result is generated in a canonical format, with keys and values neatly nested.
All processing is local, in your browser. It formats and validates the structure; it does not reorder the keys or modify the values.
Examples
{"name":"Ana","tags":["a","b"],"active":true}{
"name": "Ana",
"tags": [
"a",
"b"
],
"active": true
}With 4-space indentation: objects and arrays are clearly nested.Use cases
- Read an API response compressed into a single line.
- Validate whether a JSON has syntax errors before using it.
- Normalize the indentation of a configuration file.
- Inspect and compare payloads copied from the browser or a log.
Frequently asked questions
Does it validate the JSON or just indent it?
It does both. First it parses the text to check that it is valid JSON and, if not, shows the error. Only with correct JSON does it generate the indented version.
Does it reorder or change the keys?
No. It keeps the original order and content of keys and values. It only applies consistent indentation and line breaks.
Does it accept comments or JSON with trailing commas?
No. It adheres to the JSON standard, which does not allow comments or trailing commas. If the text includes them, the formatter will mark it as invalid.
Is my JSON uploaded to a server?
No. Validation and formatting happen entirely in your browser; the JSON never leaves your computer.