WHAT IT DOES
A JSON formatter that does not need your JSON.
Enter a JSON object, array, string, number, boolean, or null. Format rewrites it with the indentation you choose, and Minify strips every byte of insignificant whitespace. Both parse first, so a syntax error is reported with its line, its column, and the text around it rather than as a bare verdict. Parsing uses the browser's own JSON engine, so the result matches exactly what your application will see.
Why use it?
Use it when compact or inconsistently indented JSON makes a payload difficult to read. Formatting exposes structure; it does not verify your application's data rules.
How to use this tool
- Paste JSON, drop a local file, or load the worked example below.
- Choose indentation and format the document. Use the reported position to correct syntax errors.
- Review the result and copy it. If field types or required values matter, check them against a schema as a separate step.
Details and limitations
- Indentation is configurable between 1 space, 2 spaces, 4 spaces, and tabs.
- Syntax errors report the line and column whenever the browser exposes a position.
- Line numbers count real newline-delimited lines; long lines scroll rather than soft-wrap.
- Local .json files up to 10 MiB can be dropped onto the page or pasted from the clipboard.