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.
Are numbers or key order changed?
No. Unless you sort them, keys stay in their original order and numbers are kept exactly as written (1.0, 1e2, very large integers). Duplicate keys are flagged.
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.
- Punycode converter (IDN)Convert internationalised domain names to Punycode (xn--…) and back.