JSON ⇄ YAML ⇄ CSV ⇄ XML Converter
Convert between JSON, YAML, CSV, TSV and XML in any direction, and generate SQL INSERT statements.
Runs entirely in your browser — nothing is uploadedInput
Output
About the JSON ⇄ YAML ⇄ CSV ⇄ XML Converter
Convert structured data between the five formats that actually turn up in day-to-day work: JSON, YAML, CSV, TSV and XML — in any direction, with the source format auto-detected.
JSON to YAML is the everyday case when moving an API payload into a Kubernetes manifest, a CI pipeline or an Airflow config. CSV to JSON is the everyday case when someone sends you a spreadsheet and you need to load it programmatically. Both directions are handled, along with the less common but occasionally essential XML conversions.
There is also a JSON to SQL INSERT mode that generates insert statements from an array of objects, inferring column names from the keys and quoting values by inferred type — a fast way to seed a table from sample data.
CSV parsing handles quoted fields containing commas and newlines correctly, which is where naive split-on-comma approaches fail and quietly corrupt your data.
Everything runs inside your browser using standard web APIs. Your data is never uploaded, never stored on a server, and never leaves your device — you can confirm that by opening your browser devtools Network tab, or by switching off your Wi-Fi and using the tool offline.
Frequently asked questions
Does CSV conversion handle commas inside quoted fields?
Yes. Parsing is RFC 4180 compliant, so quoted fields containing commas, newlines and escaped quotes are handled correctly rather than being split naively.
How is nested JSON converted to CSV?
Nested objects are flattened using dot notation, so {"a":{"b":1}} becomes a column named a.b. Arrays of scalars are joined; arrays of objects generally need flattening first, since CSV has no way to represent them.
Which YAML version is supported?
YAML 1.2, including anchors, aliases, multi-line block scalars and multi-document files. Merge keys (<<: *anchor) are resolved too — they are a YAML 1.1 feature the 1.2 core schema dropped, but docker-compose, GitLab CI and Kubernetes files rely on them heavily, so leaving them unresolved would silently corrupt your data.
Are SQL INSERT statements safe to run directly?
Treat them as a starting point. String values are quoted and internal quotes escaped, but column types are inferred from the sample data — always review the generated DDL against your actual schema before running against anything that matters.