01 / Example
Example
{"name":"Ada","active":true,"items":[1,2]}{
"name": "Ada",
"active": true,
"items": [
1,
2
]
}Text & code / MULTIVERTO
Indent valid JSON for easier reading and debugging. Invalid JSON is reported without changing your input.
Apply each text tool to the previous result. Text workflows ↗
Only the recipe name and tool order are saved in this browser. Your input and results are never saved.
01 / Example
{"name":"Ada","active":true,"items":[1,2]}{
"name": "Ada",
"active": true,
"items": [
1,
2
]
}02 / Guide
The compact JSON value {"items":[1,2]} becomes a readable object with the items array on indented lines. This is a parse-and-serialize operation, not a cosmetic insertion of line breaks: invalid JSON is rejected. A repeated object key can lose its earlier value during parsing, and number formatting may change even when the represented value stays the same. This formatter rejects integers outside JavaScript's safe range; put a large identifier in a quoted JSON string when every digit must survive.
If the parser reports an error, look for single quotes, trailing commas, unquoted property names, comments or unmatched brackets. Those are common in JavaScript snippets but are not valid JSON. Spaces inside string values remain meaningful, while formatting outside them changes. Since the operation parses and serializes, duplicated keys, extremely large numeric values or a signed document may need special care. Keep an untouched copy if exact bytes matter, and compare the parsed data rather than assuming a prettier document is semantically verified.
JSON is a data format made of objects, arrays, strings, numbers, booleans and null. Whitespace between tokens usually has no effect on the represented structure, while spaces inside a quoted string are part of its value. A formatter parses the input and serializes the resulting value again with indentation; a minifier performs the same parse-and-serialize step without indentation. Both operations require valid JSON syntax, including double-quoted property names and strings. JavaScript comments, trailing commas and undefined values are not valid JSON input here.
Paste a complete JSON value and let the parser rebuild it with indentation. The conversion takes place in this browser, so the text is not uploaded to a formatting service. Read the new line breaks as visual aids to the nesting of objects and arrays, not as changes to string values. Expand your attention to each closing bracket, comma and quoted property name when locating a missing field. Use the formatted result as a working copy while keeping the original payload for comparison. If the source came from an API, check its documentation before assuming that a field with a familiar name has the meaning you expect. Use indentation to locate a missing property in an API response or configuration fixture. Compare values inside quotation marks before and after formatting, then run schema validation separately if the recipient requires exact types. Before indentation, the JSON parser rejects unquoted integers outside the safe range of ±9,007,199,254,740,991. Quote an exact identifier in the source so the formatted result keeps every digit as text. The page example turns “{"name":"Ada","active":true,"items":[1,2]}” into “{ "name": "Ada", "active": true, "items": [ 1, 2 ] }”.
Explore guides