JSON formatter and validator
Input format
Output format
Enter something to see the result.
Validate against JSON Schema
Paste a schema, or use the one generated from your data.
Help & info
About this tool
Paste JSON, YAML, TOML, XML or CSV; the format is detected automatically. Format with 2 or 4 spaces or a tab, minify onto one line, or sort all keys. If the text is invalid, the tool shows the line and column of the error and can jump to it. Choose another output format to convert, or JSON Schema to describe the data. Everything is processed in your browser.
Good to know
JSON needs double quotes around keys and strings, no trailing commas and no comments. Very large numbers may lose precision, because JSON numbers are read as floating point values.
More tools
- Format converter – JSON, YAML, TOML, XML and CSV into each other
- Schema – Create and check a schema (JSON, XML, CSV)
- Base64 – Encode and decode text
- URL encode/decode – Encode, decode and split URLs
- Hash generator – MD5, SHA-1, SHA-256 and more for text or files
- UUID generator – Random or time-ordered UUIDs
- JWT decoder – Read a token's header and payload
- Unix timestamp – Unix time to date and back
- Color converter – HEX, RGB, HSL and contrast check