ConvertDuck

Data Format Converter

Convert between JSON, YAML, TOML, XML, and CSV instantly in your browser.

One Tool for Every Config Format

Developers constantly need to move data between formats — a JSON API response that needs to become a YAML config, a CSV export that needs to become JSON for a script, or a TOML file that needs converting to XML. This tool handles all of it locally in your browser: paste your data, pick the input and output formats, and get a clean, correctly formatted result instantly.

How to Convert Between Formats

1. Paste or Upload Your Data

Paste directly into the input box, or upload a .json, .yaml, .toml, .xml, or .csv file.

Select the matching input format from the dropdown so the parser reads it correctly.

2. Choose the Output Format

Pick JSON, YAML, TOML, XML, or CSV from the output dropdown — the conversion updates instantly.

3. Copy or Download the Result

Copy the converted text to your clipboard, or download it as a file with the correct extension.

Why Use This Converter

  • ✓ 5 Formats, Any Direction

    Convert between JSON, YAML, TOML, XML, and CSV in any combination — not just one fixed pair.

  • ✓ 100% Local

    Parsing and conversion run entirely in your browser. Your data is never uploaded anywhere.

  • ✓ Clear Error Messages

    If a format can't represent your data structure (like TOML requiring an object at the root), you get a plain-language explanation instead of a cryptic parser error.

Supported Formats

JSONStandard JSON, parsed and pretty-printed
YAMLYAML 1.2, including lists, nested maps, and scalars
TOMLTOML tables and arrays (root must be an object)
XMLElements and attributes, parsed to and from a plain object
CSVHeader row + rows, parsed as an array of objects

Frequently Asked Questions

Q.Is my data uploaded anywhere?
No. All parsing and conversion happens locally in your browser using JavaScript — nothing is sent to a server.
Q.Why does converting to TOML sometimes fail?
TOML requires an object (key-value table) at the root level. If your data is an array or a single value at the top level, convert it from a format where the root is an object first, or restructure it before converting.
Q.How does CSV conversion handle nested data?
CSV is a flat, tabular format. Nested objects or arrays inside a field are converted to a JSON string within that cell so no data is lost.
Q.Can I convert a large file?
Yes, but very large files may be slow to parse in the browser since everything runs on the main thread. For most config files and API payloads, conversion is instant.