Skip to main content

JSON Formatter & Validator

Everything is processed in your browser. Nothing is uploaded.

About this tool: JSON Formatter & Validator

Paste JSON to format, minify or validate it. When the input is invalid, the editor points at the exact line and column of the first problem, and the repair option fixes common mistakes such as trailing commas, single quotes and unquoted keys. Numbers larger than JavaScript can represent are kept digit for digit instead of being rounded.

Common uses

  • Making a minified API response readable while debugging
  • Finding the stray comma that breaks a config file
  • Querying a large payload with JSONPath instead of scrolling through it

Frequently asked questions

Why does my JSON fail to parse?
The usual causes are trailing commas, single-quoted strings, unquoted keys, comments and a missing closing bracket. The error message shows the position, and the repair option can fix most of these automatically.
Are large numbers changed when I format?
No. Integers beyond 2^53 would normally lose precision in JavaScript; this tool keeps their original digits, so IDs from databases and APIs come out exactly as they went in.
Is my JSON sent to a server?
No. Parsing, formatting and querying all run in your browser tab, so it is safe to paste payloads that contain private data.