JSON Formatter and Validator
Paste JSON to check it, format it for reading, or minify it for sending. Errors show the line and column.
What this tool does
- Validates your JSON as you type and reports the line and column of the first error.
- Formats with 2 spaces, 4 spaces or tabs, so nested data is easy to read.
- Minifies by removing all extra whitespace, which makes the JSON shorter to send.
- Sorts keys alphabetically at every level, which helps when comparing two JSON documents.
Good to know
- Standard JSON does not allow comments or trailing commas, so those are reported as errors.
- Numbers larger than 9,007,199,254,740,991 can lose precision, because browsers read JSON numbers as floating point values.
Privacy
Your JSON is processed in your browser and is not uploaded.