Format, validate, and transform JSON
JSON is the backbone of nearly every API and config file — and one misplaced comma is enough to break it. These tools handle the everyday JSON work, entirely in your browser.
JSON Formatter & Validator
Pretty-print, minify, and validate JSON with precise error locations.
JSON Compare
Structural diff between two JSON documents.
JSON ↔ YAML Converter
Convert between JSON and YAML instantly.
JSON ↔ CSV Converter
Flatten and unflatten tabular JSON to CSV.
JSON Schema Generator
Infer a JSON Schema from a sample payload.
JSON to TypeScript Interface
Generate TS types from a JSON sample.
JSONPath Tester
Query and extract values from JSON interactively.
JSON Validator
Deep, schema-aware validation for JSON documents.
JSON to Table
View JSON as an interactive, sortable table.
What is JSON?
JSON (JavaScript Object Notation) is a simple text format for structured data. It uses objects in curly braces, lists in square brackets, and values like strings, numbers, true, false and null. Almost every web API sends and receives JSON, and many config files use it too.
JSON is easy to read, but it is also strict. A missing quote, an extra comma at the end of a list, or a comment is enough to make the whole document invalid. These tools help you find those problems quickly, and convert JSON into other formats when you need to.
Which tool should I use?
| I want to… | Use |
|---|---|
| Make messy or minified JSON readable, or check that it is valid | JSON Formatter & Validator |
| Validate JSON against a JSON Schema | JSON Validator |
| See what changed between two JSON documents | JSON Compare |
| Pull specific values out of a large JSON response | JSONPath Tester |
| Turn JSON into YAML, or YAML into JSON | JSON ↔ YAML Converter |
| Export JSON to a spreadsheet as CSV, or the other way round | JSON ↔ CSV Converter |
| Browse a JSON array as a sortable table | JSON to Table |
| Create TypeScript interfaces from a sample API response | JSON to TypeScript Interface |
| Generate a JSON Schema from an example document | JSON Schema Generator |
Private by design
Every JSON tool here runs entirely in your browser. The JSON you paste is processed on your own computer and is never uploaded to a server, so it is safe to use with API responses and config files that contain private data.
Frequently asked questions
Why is my JSON invalid?
The most common causes are a trailing comma after the last item, single quotes instead of double quotes, keys without quotes, or comments. JSON allows none of these. The formatter shows the exact line and position of the first error.
What is the difference between formatting and validating JSON?
Formatting changes how JSON looks, adding indentation and line breaks so it is easy to read. Validating checks whether the JSON is correct. Basic validation checks the syntax, and schema validation also checks the structure, such as required fields and value types.
What is JSONPath?
JSONPath is a short query language for JSON, similar to how XPath works for XML. An expression like $.users[0].name picks a value out of a document without writing any code.
Is there a size limit?
There is no fixed limit, because everything runs in your browser. Very large files depend on your device's memory and may be slower to process.