Data Format Converter
Convert structured data between JSON, YAML, XML, TOML, INI and CSV right in your browser, picking any From and To pair, with a one-click copy.
Data Format Converter — Convert structured data between JSON, YAML, XML, TOML, INI and CSV by picking a From and a To format. Pick any pair and the result updates instantly. Everything runs client-side in your browser, so nothing you paste is ever uploaded.
What is Data Format Converter?
A free, browser-based converter that transforms structured data between JSON, YAML, XML, TOML, INI, and CSV in any direction. Developers, DevOps engineers, and data analysts use it to reformat API responses, port a config file from one syntax to another (for example INI to TOML, or YAML to JSON), or turn a JSON array into CSV for a spreadsheet. You set a From format and a To format independently, paste your data, and the converted result appears instantly with a one-click copy. The Swap button flips From and To and feeds the previous output back into the input so you can chain conversions.
How to use Data Format Converter
- Choose the source format under From: JSON, YAML, XML, TOML, INI, or CSV.
- Choose the target format under To: JSON, YAML, XML, TOML, INI, or CSV.
- Paste your data into the input box, or click Sample to load an example JSON object.
- Read the converted result in the output box, which is labeled with the target format, and click Copy to put it on your clipboard.
- Use Swap to flip the From/To formats and move the previous output into the input for a quick round-trip; use Clear to empty the input.
Examples
JSON to YAML
Input
{ "name": "deftdeck", "version": 2 }Output
name: deftdeck version: 2
JSON to TOML
Input
{ "server": { "host": "localhost", "port": 8080 } }Output
[server] host = "localhost" port = 8080
JSON array to CSV
Input
[{ "name": "Ada", "age": 36 }, { "name": "Linus", "age": 54 }]Output
name,age Ada,36 Linus,54
Frequently asked questions
- Which formats and directions are supported?
- JSON, YAML, XML, TOML, INI, and CSV, in any direction — you set the From and To formats independently. So you can go JSON to YAML, INI to TOML, XML to JSON, YAML to CSV, and so on, picking any pair.
- Why does converting to TOML, INI, or CSV sometimes fail?
- Those formats can only represent certain shapes. CSV needs tabular data (an array of objects that share keys); INI and TOML expect a key-value object (TOML allows nesting via tables, INI is one level of sections). Data that doesn't fit raises an error — convert it to JSON or YAML, which handle arbitrary nesting, instead.
- How are XML and CSV handled?
- XML output is wrapped in a single root element (since XML requires one), and XML attributes are preserved on parse. CSV parsing uses the first row as headers and skips blank lines; CSV values come back as strings, so a number like 36 becomes "36".
- Is my data uploaded to a server?
- No. Every conversion runs entirely client-side in your browser. Nothing you paste is uploaded or sent anywhere, so it's safe for private API payloads, configuration files, and sensitive spreadsheets.
- What does the Swap button do?
- Swap flips the From and To formats and moves the current output into the input box, so you can immediately convert back or chain conversions without copying and pasting by hand.
Related tools
Base32 / Base58 Encode / Decode
Encode text to Base32 (RFC 4648) or Base58 (the Bitcoin alphabet) and decode either one back to text, fully UTF-8 safe and entirely in your browser.
Base64 Encode / Decode
Encode text to Base64 or decode Base64 back to text (UTF-8 safe).
Case Converter & Counter
Change text case and count characters, words and lines.
Code Formatter & Minifier
Beautify or minify HTML, CSS and JavaScript instantly in your browser, with 2-space, 4-space or tab indentation and Terser-powered JavaScript compression.