How to use the JSON Formatter & Validator
- Paste JSON into the input box.
- Click Format or Minify.
- If the JSON is invalid, the error line and column are shown.
Frequently asked questions
Is my JSON sent to a server?
No. Parsing and formatting happen in your browser, so it is safe for API responses and config files.
Does it accept comments or trailing commas?
No. It validates strict JSON (RFC 8259). Comments and trailing commas are reported as errors.
Will it change my numbers or keys?
No. Formatting only changes whitespace. Very large numbers keep every digit, and duplicate keys are kept and flagged with a warning, because many programs silently round or drop them.