T-05 · Developer tools
JSON Formatter and Validator
Format, validate and minify JSON with clear error messages that point to the line and column. Runs entirely in your browser.
- Runs in your browser
- Nothing uploaded
- No account
About this instrument
What it does
Beautify minified JSON with 2 or 4 space (or tab) indentation, sort keys, or minify it for transport. If the JSON is invalid you get the parser’s error with the line and column. Your data is never uploaded.
How to use it
- Paste JSON into the input.
- Choose the indentation and whether to sort keys.
- Copy or download the formatted result.
FAQ
Common questions.
01Why does my JSON fail with “Unexpected token”?
Common causes are trailing commas, single quotes, unquoted keys and comments. Standard JSON allows none of them.
02Does sorting keys change the data?
Only the key order inside objects. Array order is never changed.
Related instruments
- T-06Base64 Encode / DecodeEncode text to Base64 or decode Base64 back to text, with full UTF-8 support and a URL-safe option. Private and instant.Local
- T-08JWT DecoderDecode a JSON Web Token to read its header, payload and expiry. Decoding happens in your browser and the token is never sent anywhere.Local
- T-04Text CompareCompare two texts line by line and see what was added or removed. Runs locally in your browser, so nothing is uploaded.Local