Format JSON
Pretty-print, minify and validate JSON, with optional key sorting.
How to use Format JSON
- Paste or type JSON in the input pane.
- Choose 2 spaces, 4 spaces or minify, and turn on key sorting if you need it.
- Copy the result or download it as a file.
Questions and answers
Is my data sent anywhere?
No. Everything runs in your browser on this device. Nothing you paste is uploaded or stored.
What happens with invalid JSON?
You get a plain message that says what is wrong and where, such as the line and column of an unexpected character.
Does sorting keys change my data?
It only changes the order of keys inside objects. Values and the order of items in arrays stay the same.
Related tools
Base64 encode and decode
Convert text to Base64 and back, with full Unicode support.URL encode and decode
Percent-encode text for use in URLs, or decode it back.JWT decoder
Read the header and payload of a JSON Web Token, with dates made readable.Hash generator
Create SHA-1, SHA-256, SHA-384 and SHA-512 hashes of any text.