Data Converter
Convert JSON, YAML, CSV and XML
Convert between JSON, YAML, CSV and XML, in any direction.
Free, private, no sign-up
Was this tool helpful?
Suggest an improvementConvert between JSON, YAML, CSV and XML
Choose the format you have and the one you want, then paste your data or load a sample. The result updates as you type. Swap turns the result into the new input, so you can convert back.
How data is mapped
- CSV needs a list of records. Nested objects become dot-separated columns such as
address.city, and lists become JSON text. The first row is the header, and the delimiter (comma, semicolon or tab) is detected. - XML attributes become keys starting with
@_. If the data has more than one top-level key, it's wrapped in a<root>element.
Good to know
Is my data uploaded?
No. Conversion runs in your browser.
Are large numbers kept exactly?
Integers up to 9,007,199,254,740,991 are exact. Beyond that, JSON numbers are rounded by the browser's parser. Store long IDs as strings if they must stay exact.
Why does CSV turn "007" into 7?
"Convert numbers and true/false" is on. Turn it off to keep every CSV value as text.