JSON tools for every step of working with data
JSON (JavaScript Object Notation) is the default data format of web APIs, configuration files and many databases. It is easy for machines to parse, but a single missing comma or an unreadable one-line response can cost minutes of squinting. These JSON tools cover the whole workflow: making JSON readable, checking and repairing it, finding values inside it, comparing versions and converting it into other formats or typed code.
Which JSON tool do you need?
- Read or tidy a document – the JSON formatter indents and validates in one step, and the JSON viewer shows a collapsible tree for large responses.
- Find out why JSON is invalid – the JSON validator reports the exact line and column of each error. If the file came from a log or a JavaScript object, the JSON fixer repairs trailing commas, single quotes and unquoted keys.
- Make it smaller – JSON minify removes all insignificant whitespace for transport or storage.
- Extract values – the JSONPath tester evaluates expressions such as
$.orders[*].total. - Compare two versions – JSON diff compares structure rather than text, so key order and formatting do not create false differences.
- Change format – JSON to CSV flattens arrays of objects into spreadsheet rows, while JSON to YAML and JSON to XML cover configuration and legacy systems.
- Generate code – JSON to TypeScript and the other data-to-class generators infer types from a sample response.
Common workflows
Debugging an API response: paste the raw response into the formatter, collapse the parts you do not need in the viewer, and use JSONPath to pull out the value you are checking. When a response changes between releases, JSON diff shows exactly which fields were added, removed or modified, with their paths.
Preparing data for a spreadsheet: validate the file, then convert it to CSV. Nested objects are flattened into dotted column names, so the structure is still recognizable in Excel or Google Sheets.
Creating typed models: take a representative sample (one that includes optional fields), convert it to classes for your language, then review the inferred types. A single sample cannot tell whether a field can be null, so adjust those by hand.
Tips for working with JSON
- Standard JSON does not allow comments, trailing commas or single-quoted strings. If a file uses them, it is JSON5 or JSONC, which several tools here accept too.
- Numbers larger than about 9 × 1015 lose precision in JavaScript. Keep large IDs as strings.
- Always validate JSON produced by string concatenation; building JSON with a serializer avoids escaping errors.
- Most tools process data locally in your browser, so API responses containing personal data are not uploaded.
Need test data first? The random JSON generator creates realistic fake records.