JSON and data tools

Format, validate and diff JSON, convert it to XML, YAML, CSV, TOML and .env, check it against a schema, and generate types for eleven languages.

Which tool to use

What to expect from the type generators

The generators infer types from a single sample, so they can only describe what the sample shows. A field that is null, missing or an empty array in the sample cannot be typed precisely. Paste the most complete response you have, then review optional and nullable fields by hand.

Privacy

API responses tend to carry tokens, email addresses and customer records. Every tool in this group parses and converts in the browser tab, so the document is never uploaded.

Frequently asked questions

How do I validate JSON online without uploading it?
Use a validator that runs in the browser. The JSON Formatter & Validator on XUtil parses the text in the page itself, so the document never leaves your machine.
What is the difference between JSON and YAML?
Both describe the same kinds of data. JSON is strict, uses braces and quotes, and is what most APIs exchange. YAML uses indentation, allows comments and is common in configuration files. Converting YAML to JSON drops the comments.
Can I generate TypeScript types from a JSON response?
Yes. Paste a sample response into the JSON to TypeScript tool and it infers interfaces from it. Check optional and nullable fields afterwards, because one sample cannot show every shape the API returns.
Why does converting XML to JSON and back not give the same file?
XML has attributes, namespaces, mixed text and element order, none of which map directly onto JSON objects. A converter has to pick a convention for each, so a round trip keeps the data but not always the exact layout.