Paste JSON to format, validate or minify it. If it is broken, we show the exact spot and can fix the most common mistakes.
Result
Runs entirely in your browser: 0 bytes uploaded. Your files and text never leave your device. Privacy
What this JSON tool does
- Format adds line breaks and indentation so you can read the structure.
- Minify removes all spaces and line breaks to make the file as small as possible.
- Validate happens every time: if the JSON is broken, we show the line, the column and what went wrong.
- Fix common mistakes repairs JSON that came from JavaScript code or a config file: comments, trailing commas, single quotes, unquoted keys, curly "smart" quotes, and Python's True/False/None.
The most common JSON errors
- Trailing comma:
{"a": 1,}. JSON allows no comma after the last item. - Single quotes:
{'a': 'b'}. JSON needs double quotes. - Unquoted keys:
{a: 1}. Every key must be in double quotes. - Comments:
// noteis not allowed in JSON. - Smart quotes pasted from Word or a website: “ ” instead of ".
Your JSON never leaves your browser. That matters when it contains API keys or customer data.
FAQ
Is my JSON uploaded anywhere?
No. Formatting and validation run in your browser. Nothing is sent to our server.
Why did a big number change?
JavaScript stores numbers with about 15 to 17 significant digits. Longer numbers, like some IDs, get rounded when parsed. Keep such IDs as strings.
Can it handle large files?
Yes, several megabytes. Very large files are shown without colors to stay fast.
Does "Fix common mistakes" change my data?
It only changes syntax (quotes, commas, comments). Always check the result before you use it.