JSON Formatter
Format, minify, and validate strict JSON, with highlighting and errors that point to a line and column.
Everything runs in your browser. Files and text are not uploaded or saved.JSON
Comments and trailing commas are not valid JSON.
How to Use
- Paste JSON or open a local .json file.
- Choose 2 spaces, 4 spaces, or a tab, then Format or Minify.
- Use Validate to check the current text without changing it.
- Copy or download the result, or clear the editor.
FAQ
Are comments or trailing commas accepted?
No. The parser follows JSON only, and it never uses eval.
Can a large integer change silently?
No. Integers outside JavaScript’s safe range are detected and copied exactly instead of being rounded.
Where does an error point?
The message includes the line and column. A very large file is checked when you run an action so typing stays responsive.
