JSON Formatter
Format, minify, validate and sort JSON keys.
Runs entirely in this tab. Nothing is uploaded.
Result
Frequently asked questions
Where's the error in my JSON?+
The message under the output reports the parser's position, which is usually a trailing comma or a missing quote.
Does sorting keys change my data?+
It reorders object keys only. Arrays keep their order, because in JSON array order is meaningful.
What is the difference between pretty-print and minify?+
Pretty-print adds indentation and line breaks so a person can follow the structure. Minify strips every character it safely can, which is what you want before sending JSON over a network. Neither one changes the data itself.
Will it cope with a very large file?+
It parses in your tab, so the ceiling is your own memory rather than an upload limit. Files of several megabytes are fine, though the browser will start to feel sluggish well before the tool gives up.
Tools that pair with JSON Formatter
- Base64 Encode / DecodeConvert text to Base64 and back, UTF-8 safe.
- Hash GeneratorSHA-256, SHA-1, SHA-384 and SHA-512 digests.
- UUID GeneratorGenerate v4 UUIDs, one or fifty at a time.
- URL Encode / DecodePercent-encode URLs and query strings, or decode them.
- Timestamp ConverterUnix timestamps to dates and back, seconds or milliseconds.
- Case ConvertercamelCase, snake_case, Title Case and six more.