Check JSON syntax, add readable indentation, or remove formatting whitespace while preserving the original number spellings and other JSON tokens.
Last updated: 7 November 2026
Choose the operation you need
- Paste JSON into the editor, or select Load example to try the supplied sample.
- Use Format / Beautify for readable indentation, Minify for compact text, or Validate JSON to check syntax without reformatting.
- If an error is reported, inspect the indicated line and column and the punctuation just before it. Fix the input and check again.
- Use Copy or Download .json to keep the current editor contents. Clear empties the editor.
After making manual edits, validate again. Copy and Download export the current text; they do not automatically validate it. If the browser blocks copying, use the selection and your normal copy shortcut.
What formatting preserves
The formatter scans JSON tokens and copies their original spellings instead of converting numbers into JavaScript numeric values and serializing them again. Format and Minify change only insignificant whitespace outside strings.
Large integers, decimal trailing zeroes, exponent notation, string escapes, property order, and repeated property names are preserved. Spaces inside a string remain part of that string. Formatting does not resolve repeated names or add missing properties.
Objects, arrays, strings, numbers, booleans, and null are supported, including top-level values that are not objects.
A checked large-number example
In the live tool on 6 November 2026, this input:
{"id":9007199254740993,"price":1.2300,"scale":1e+03,"label":"A B"}
produced this Format / Beautify result:
{
"id": 9007199254740993,
"price": 1.2300,
"scale": 1e+03,
"label": "A B"
}
Minify returned the original one-line input exactly. The integer 9007199254740993, the spelling 1.2300, the exponent 1e+03, and the space in "A B" remained unchanged. This preservation applies to this formatter; check the next application too if it converts those numbers into a different numeric representation.
The invalid input {"id":1,} was left unchanged. The tool reported: “Expected a double-quoted property name. At line 1, column 9.” An error location is a starting point for inspection, not an automatic repair.
Syntax is different from an application’s rules
The input {"age":"twenty-eight"} passed the live syntax check with “Valid JSON. No syntax errors found.” It is valid JSON because the value is a string. An application that requires a numeric age could still reject it.
This tool does not run JSON Schema validation or check required fields, project-specific field types, date formats, or business rules. Validate the final data in the receiving application as well.
For practical examples of inspecting nested data, read When JSON Data Becomes Difficult to Read.
Input limits and common errors
Standard JSON requires double-quoted property names and strings. Comments, trailing commas, single-quoted strings, and undefined are not accepted. Empty input is reported as an error. Invalid JSON is not repaired, and a failed Format or Minify operation leaves the editor unchanged.
The parser rejects nesting beyond its 256-level limit without replacing the input. Very large documents can be slow or use substantial browser memory; keep an original copy and use a workflow suited to the full document if the browser struggles.
Processing and privacy
The validation and formatting code scans the editor text in your browser and has no JSON-submission step. Local processing does not mean that the website makes no network requests; see the Privacy Policy for website services and data handling.
Avoid using confidential production records when a synthetic example will do, and remove secrets before sharing output. On a shared device, Clear empties this editor but does not erase clipboard contents or downloaded files.