How to use
- Paste your JSON.
- Click Format to make it readable, or Minify to remove all spaces.
- If the JSON is invalid, the error message shows where the problem is.
- Click Copy to copy the result.
How it works
The JSON is parsed with the browser's standard JSON parser and written back with the indent you choose. Sorting keys applies to every object, including nested ones.
Frequently asked questions
What are the most common JSON errors?
A comma after the last item, single quotes instead of double quotes, keys without quotes, and comments. JSON allows none of these.
Is my JSON sent to a server?
No. Formatting happens in your browser, so it is safe for API keys and private data.
Can it handle large files?
Yes, several megabytes of JSON work fine on most computers.