Free online JSON tools Find the comma that broke your JSON
Free online JSON tools: format and validate a payload with the exact line and column of the error, repair it in one click, then view it as a tree or a graph, compare two files, or convert to CSV, YAML, XML and TypeScript. It all runs in this tab; nothing is uploaded.
Invalid JSONline 5, column 3A comma is missing between two values.
Then what? Twelve next steps
No tool matches that. Clear the field to see all of them.
Read and check JSON
- .json
JSON formatter and validator
Format, minify and repair, with the error’s exact line and column
- .json → tree
JSON viewer
A collapsible tree with search and the path to every value
- .json → .svg
JSON graph viewer
Objects and arrays drawn as linked cards, exported as SVG or PNG
- .json ↔ .json
JSON diff
Every added, removed and changed value, by path; key order ignored
Convert between formats
- .json → .csv
JSON to CSV
Nested fields flattened to columns, Excel-ready download
- .csv → .json
CSV to JSON
Delimiter detected, quoted cells read, numbers typed
- .json ↔ .yaml
JSON to YAML and back
Both directions, long numbers kept exact
- .xml ↔ .json
XML to JSON and back
Attributes as @keys, repeated elements as arrays
- .json → .ts
JSON to TypeScript
Interfaces from a sample, optional keys marked
CSV, YAML and SQL
Which JSON tool for which job
Each tool does one job, and its result is the next tool’s input. Pick by what is in front of you:
| You have | Use |
|---|---|
| An API response that will not parse | JSON formatter and validator |
| A large response with one field you need | JSON viewer |
| Nested data whose shape you want to see or explain | JSON graph viewer |
| Two versions of a payload or config | JSON diff |
| Records that belong in a spreadsheet | JSON to CSV |
| A spreadsheet export for an API or a seed script | CSV to JSON |
| A Kubernetes, Compose or OpenAPI file in the other format | JSON to YAML |
| A YAML config that fails to load | YAML validator |
| A response you want typed in TypeScript | JSON to TypeScript |
| An XML feed or a SOAP body | XML to JSON |
| A one-line SQL query from a log | SQL formatter |
JSON in six facts
One grammar, two specifications. RFC 8259 (an IETF Internet Standard, December 2017) and ECMA-404 define the same syntax. The media type is application/json.
Six kinds of value. Object, array, string, number, and the literals true, false and null. There are no dates, no comments and no trailing commas.
Objects have no order. RFC 8259 calls an object an unordered collection and says its names SHOULD be unique. Arrays are ordered.
UTF-8 between systems. JSON exchanged between systems outside a closed ecosystem MUST be UTF-8, and a byte order mark must not be added.
Safe integers end at 2⁵³ − 1. RFC 8259 calls integers up to 9,007,199,254,740,991 interoperable. Larger ones are rounded by most parsers; these tools keep the digits.
Parsers may set limits. On text size, nesting depth, number range and string length. The limits these tools set are listed below.
Where did the last three digits go?
Tools that pass JSON through JavaScript numbers round every integer above 9,007,199,254,740,991. These keep the digits you wrote.
| Input | Through JSON.parse | Here |
|---|---|---|
| 12345678901234567890 | 12345678901234567 | 12345678901234567890 |
Limits, stated
Everything runs on your device, so the limits are your browser’s. These are the ones the tools set.
| What | Limit |
|---|---|
| Largest file | 64 MB |
| Parsed in a background thread | above 200 KB |
| Kept in the edit box | up to 2 MB |
| Shown in a result pane | first 1 MB; copy and download give all |
| Graph viewer | 400 cards; 12 values and 48 nested items per card |
| Tree viewer | 200 items per opened array, more on request |
| JSON diff | 2,000 differences listed |
Base64, JWT, UUID and hashes
Encoders and generators live on the developer tools site:
Questions people ask
Is anything I paste sent to a server?
No. Every tool on this site runs in your browser. Files you open are read on your device and never uploaded.
Do I need an account?
No. There is no sign-up, no login and no limit on how often you use a tool.
What is the difference between a JSON formatter, viewer and validator?
A validator checks the text against the JSON grammar and points to the first error. A formatter rewrites valid JSON with indentation. A viewer shows the data as a tree you can open and search. The JSON formatter here validates as you type; the JSON viewer is for reading large files.
Is JSON valid YAML?
Usually, yes. The YAML 1.2 specification says its primary focus was making YAML a strict superset of JSON, so a YAML 1.2 parser reads JSON. The JSON to YAML tool converts in both directions.
What does the JSON formatter repair?
Trailing and missing commas, single and curly quotes, unquoted keys, comments, Python True, False and None, and brackets left open at the end. It lists every kind of change it made.