JSON formatter & validator
Paste JSON to format it at once; errors are pointed out by line and column. Your data never leaves the browser.
How to use
- Paste your JSON.
- Choose the indent and whether to sort keys; the result appears below.
- Errors show their line and column, and are checked again as you edit.
Questions
Is it safe for API responses or config files?
Formatting and validation run in your browser; the data is not uploaded or stored.
What about comments or trailing commas?
Standard JSON allows neither, so they are reported as errors.
Why did a large number change?
Integers beyond JavaScript's safe range (about 9 quadrillion) lose precision. Keep such values as strings.
How are keys sorted?
By character code, including keys of nested objects.
Are non-ASCII characters escaped?
No. They are output as they are.
Related tools
- Password generatorStrong random passwords from your browser's cryptographic random generator. Choose length and character sets.
- Unix timestamp converterUnix timestamps (seconds or milliseconds) to dates in several time zones, and dates back to timestamps.
- Base64 encode / decodeEncode text to Base64 and decode Base64 back to text, with full UTF-8 (Korean, Japanese, emoji) and URL-safe output.
- URL encode / decodePercent-encode text or URLs and decode %XX sequences back to readable text, with a table of query parameters.
- UUID generatorGenerate UUID v4 (random) or v7 (time-ordered) in bulk, upper or lower case, with or without hyphens.