JSON Formatter & Validator
Format, minify, and validate pasted JSON. Check syntax and keep large numbers exactly as entered while changing only the whitespace.
Technical information
- Supported formats
- Paste source text in the input format shown on the tool.
- Limits
- Parsing depends on valid syntax. Rich formatting and format-specific features may have no equivalent in the destination.
- If something goes wrong
- Try a small sample first. Check delimiters, quotation marks and any reported parsing error before converting the full input.
How to use JSON Formatter & Validator
- Paste your JSON into the input.
- Choose Format JSON for readable indentation, Minify JSON for compact output, or Validate only to check syntax.
- Copy or download your result.
Make a compact JSON response easier to review
Paste a one-line response such as {"id":9007199254740993,"tags":["new","sale"]}. Choose Format JSON to put nested values on readable lines. The ID stays exactly as entered. Use Minify JSON to strip formatting whitespace again.
- Why does the validator reject a trailing comma?
- Strict JSON requires commas between entries. A comma immediately before the closing brace or bracket makes the document invalid.
- Does formatting change values or sort keys?
- Formatting changes whitespace outside strings. It preserves the token order, string contents, and the original text of numbers.
