What JSON minification does
JSON is usually written with indentation and line breaks so people can read it. A parser does not need any of that whitespace. Minifying removes every space, tab and newline outside a string, which leaves the data unchanged but makes the file smaller. Smaller payloads download faster and cost less to store and send.
Minify or prettify
- Minify puts the whole document on one line. Use it for API responses, config embedded in HTML, or anything a machine reads.
- Prettify adds line breaks and indentation (2 spaces, 4 spaces or tabs) so you can review the structure.
Formatting works on the text itself rather than parsing and re-serialising it, so numbers stay exactly as written. That matters for large integers such as 64-bit IDs, which JavaScript would otherwise round. Key order, escape sequences and duplicate keys are left alone. Processing runs in a background worker in your browser; nothing is uploaded.
Exploring the tree
The Tree view lists every value with its JSON Pointer, such as /address/city. Pointers escape a slash as ~1 and a tilde as ~0. Select a node to highlight it in the input and copy its pointer or source text. Duplicate keys are flagged because a pointer to them is ambiguous.
Limits
Files stay under 1 MB with at most 100 nesting levels and 50,000 nodes. Tree pointers and row data also have a size budget, so repeated long keys can reach the limit sooner.
Common JSON errors
When the input is not valid, the tool shows the line and column of the first problem. The usual causes are:
- Trailing commas, as in
[1, 2, 3,]. JavaScript allows them, JSON does not. - Single quotes. Strings and property names must use double quotes:
{"name": "Ada"}. - Unquoted property names, as in
{name: "Ada"}. - Comments. JSON has no comment syntax. Remove
//and/* */lines. - Python or other literals like
True,None,Infinityorundefined. JSON only knowstrue,falseandnull. - Raw line breaks inside strings. Write
\ninstead.