About this tool
Format, validate and minify JSON in your browser. Paste in raw JSON and we'll pretty-print it with your chosen indentation, or compress it down for production. Invalid JSON shows a clear error with the line and column so you can fix it fast.
Frequently asked questions
- Is my JSON uploaded anywhere?
- No. Parsing and formatting use JSON.parse and JSON.stringify directly in your browser.
- Why does my JSON fail to parse?
- Common causes: trailing commas, single quotes instead of double quotes, or unquoted keys. The error message shows the line and column of the problem.
- Can it handle large JSON files?
- Yes — within the limits of your browser's memory. Files of several MB are usually fine.
- Does it support JSON5 or comments?
- No — we use strict JSON. Remove comments and trailing commas before formatting.