About Convert2JSON
Convert2JSON is a collection of 72 developer utilities for converting, validating and formatting data, and for turning JSON samples into typed models. Everything runs in your browser.
Why build another converter site
Most online data tools answer the easy question — can this JSON become XML — and quietly guess at the hard ones. Where do attributes go? Is a single element an array? What happens to a null in a CSV cell? Those guesses are why converted output so often needs fixing by hand.
Every converter here surfaces those decisions as options with an explanation, and each tool page documents what the conversion cannot preserve. We would rather tell you that empty arrays disappear when converting to XML than let you discover it in production.
How it works
The site is a static build. There is no application server, no database and no API. All parsing and conversion logic is JavaScript that ships to your browser and executes there, which is why nothing you paste can be transmitted: there is no endpoint to transmit it to.
Large inputs are handed to a Web Worker so a multi-megabyte document cannot freeze the page, and so a slow conversion can genuinely be cancelled rather than just visually dismissed. The code editor is CodeMirror, loaded on demand, with a fully functional plain textarea as a fallback if that fails.
What is here
- JSON tools — formatting, validation with line and column errors, a collapsible tree viewer, structural diffing and JSONPath lookup.
- Converters — JSON, XML, YAML, CSV, TSV, HTML tables and query strings, in both directions where that makes sense.
- Code generators — typed models for thirteen languages, generated from a recursive analysis of your sample.
- Developer utilities — encoding, hashing, timestamps, regex, diffing, colour conversion and code formatters.
Principles
- An error message should name the line, the column and the likely fix.
- A tool should never silently rewrite your input.
- Every button on a page should do something real.
- Limitations belong on the page, not in a support email.
- Advertising must never be mistakable for a control.
Get in touch
Bug reports, incorrect conversions and requests for new tools are all welcome — see the contact page. A concrete input that produces the wrong output is the most useful thing you can send.