Free Data Format Converter
Convert between JSON, YAML, XML, TOML and CSV in any direction. Paste or drop a file; the format is detected, and the result updates as you type.
Runs on your device
What to do next
How to use Data Format Converter
- 1
Paste data or drop a file.
- 2
Choose the format to convert to.
- 3
Copy the result or download it.
Data Format Converter converts between JSON, YAML, XML, TOML and CSV in any direction. Paste data or drop a file, and the format is detected from the file name or the text itself; the result updates as you type.
Swap turns the conversion around in one click, with the result as the new input.
What each format is for
JSON for APIs and code, YAML for readable config files, XML for older systems and feeds, TOML for Python and Rust configs, CSV for spreadsheets.
When something can’t be kept
Not every format holds everything: CSV is a flat table, TOML has no empty values, and XML needs a single top element. FileConvertora notes any change it had to make, so nothing disappears silently.
| Format | Looks like | Used for | Notes |
|---|---|---|---|
| JSON | Braces and quotes | APIs, web apps, config | Strict: no comments |
| YAML | Indentation | Config files (Docker, Kubernetes, GitHub Actions) | Comments allowed; indentation matters |
| XML | Tags | Older APIs, feeds, Office files, Android | Verbose, supports attributes |
| TOML | Key = value and [sections] | Config files (Rust, Python pyproject) | Easy to read, comments allowed |
| CSV | Rows and commas | Spreadsheets, imports, databases | Flat tables only |
| Excel | Sheets and cells | Spreadsheets, reports | Formatting and formulas |
- Convert data between JSON, YAML, XML, TOML and CSV in one place.
- Clean up and reformat config files.
- The file is opened and processed by your browser on your own device. It is never uploaded, so no server, including ours, ever receives a copy.
- Your data is parsed and written in your browser, which matters for API keys, tokens and customer data.
- It says the input is invalid
- The error shows the line. Common causes: tabs in YAML, a trailing comma in JSON, an unclosed tag in XML.
- Nested data looks flat
- CSV can’t hold nested objects; nested values are joined into column names like address.city.
Questions
Which conversions are possible?
Any pair of JSON, YAML, XML, TOML and CSV, in both directions. Use Swap to turn the result around.
Is anything lost along the way?
Data is kept, but not every format can hold everything: CSV is flat, TOML has no empty values and XML needs one top element. FileConvertora notes any change it had to make.
Is my data uploaded?
No. Everything is converted in your browser, so private config files and data stay on your device.
Something not working, or a question that isn’t here? Tell us about it
Popular conversions
More file tools
See all 28- Share FilesNewSend files by link, no upload
- Unzip FilesNewOpen ZIP files and save what’s inside
- Compare TextNewFind the differences between two texts
- QR Code GeneratorNewLinks, Wi-Fi, contacts and more
- Wi-Fi QR CodeNewA sign guests scan to connect
- CSV to ExcelTurn a CSV file into an .xlsx workbook
- Excel to JSONTurn spreadsheet rows into JSON
- JSON to ExcelTurn JSON into a spreadsheet