About this tool: JSON Formatter & Validator
Beautify, minify and validate JSON in one place. Paste your data to get readable, indented output, or compress it to a single line. Invalid JSON is reported with the line and column of the error.
How to use it
- Paste your JSON into the input box.
- Click Beautify for indented, readable output, or Minify to remove whitespace.
- If the JSON is invalid, check the reported line and column to find the problem.
- Copy the formatted result with the copy button.
Frequently asked questions
- Is my JSON sent to a server?
- No. Formatting and validation happen entirely in your browser, so your data stays on your device.
- What is the difference between beautify and minify?
- Beautify adds indentation and line breaks to make JSON easy to read. Minify removes all unnecessary whitespace to make the file as small as possible.
- Why does it say my JSON is invalid?
- Common causes are trailing commas, single quotes instead of double quotes, unquoted keys and missing brackets. The error position points to where parsing failed.