JSON formatter
Paste JSON to format it, minify it, or find out on which line and column the error is.
Paste JSON to format it.
Everything happens in your browser - nothing you type here is sent to any server.
How it works
Format, minify, validate
Formatting adds indentation and line breaks so an API response or a config file becomes readable. Minifying does the opposite - it removes every unnecessary character so the JSON takes as little space as possible. Either way the tool validates it and points to the exact place of an error.
The most common JSON mistakes
A comma after the last item of a list or object, unquoted keys, single quotes instead of double quotes, and comments - all allowed in JavaScript, but not in JSON.
Frequently asked questions
Is my data safe?
Yes. The JSON is processed in your browser and never reaches a server, so you can format data with tokens or customer details too.
Why sort the keys?
Sorted keys make two JSON documents easy to compare - for example with our text compare tool.
Does it handle large files?
Yes, a few megabytes are no problem - the only limit is your browser's memory.
More tools
- Website checker
- Google search preview
- UTM link builder
- QR code generator
- Character counter
- Email signature generator
- Image compressor
- Favicon generator
- Colour contrast checker
- Text compare
- Base64 encode and decode
- JWT decoder
- Timestamp converter
- URL encode / decode
- UUID generator
- Hash generator (SHA-256, MD5)
- Regex tester
- Cron expressions