Data
JSON Toolkit
Validate, format and minify JSON, with a tree view and JSON Schema.
Choose a mode
View JSON
Paste JSON — validation runs automatically.
Tree
Paste JSON on the left to see the tree here.
JSON Schema
Supports draft-07, 2019-09 and 2020-12 — detected from the $schema field (draft-07 if it is missing). External $ref links are never fetched.
Paste a schema — the JSON is checked automatically.
How to use
- Paste JSON into the editor or upload a file — it is validated automatically.
- Click “Format” (2 or 4 spaces) or “Minify”. The result replaces the editor content.
- The tree appears on the right. If the JSON is invalid, the tree is replaced with the line, a snippet and a hint.
- Switch to “Validate against JSON Schema”, paste a schema on the right — violations appear with paths to the fields in the document.
- Copy the result or download it as a .json file.
- The limit is 5 MiB per document. Even large files are processed without freezing the page.
- External $ref links are not supported: a schema never loads anything from the network.
- Schema validation does not convert values to other types and does not fill in default values.