JSON ↔ CSV ↔ YAML
Convert between JSON, CSV, and YAML.
Runs entirely in your browser — nothing you enter is uploaded or sent to a server.
YAML support covers the common block style (no anchors, multi-line scalars or multiple documents) and CSV needs a flat array of records — check the output when your data is deeply nested. Read our full disclaimer.
About this tool
A single converter for the three formats you move data between most: JSON, CSV, and YAML. Paste your data, choose the source and target formats, and the converted output appears instantly. CSV works with tabular data (an array of records), and YAML support covers the common block-style subset — mappings, sequences, and scalars. It's all done in your browser with an in-house converter.
Try it
A JSON array like [{"name":"Sam","role":"admin"}] converts to CSV (name,role / Sam,admin) or to YAML (a list of mappings), and back again.
How to use
- 1Choose the format you're converting from and to.
- 2Paste your data into the input box.
- 3Read the converted output and copy it in one click.
- 4Use the swap button to reverse the direction.
Features
- Convert between JSON, CSV, and YAML in any direction.
- Swap source and target with one click.
- In-house converter — no third-party libraries.
Frequently asked questions
How complete is the YAML support?
It handles the common block-style subset: mappings, sequences, nesting, and scalars (strings, numbers, booleans, null), plus quoted strings. It doesn't support anchors/aliases, multi-line scalars, or multiple documents.
How do I convert JSON to CSV (or CSV to JSON)?
Pick JSON as the source and CSV as the target (or the reverse), paste your data, and the result appears instantly. JSON→CSV needs a flat array of records; CSV→JSON treats the first row as the column headers.
How do I convert JSON to YAML?
Choose JSON → YAML and paste your JSON; you get the equivalent block-style YAML (mappings, sequences, scalars). The reverse works too, within the common YAML subset.
Is my data uploaded?
No. The conversion runs entirely in your browser with an in-house converter — no third-party libraries and nothing sent to a server.
What shape does CSV need?
CSV represents a table, so converting to CSV needs an array of flat records (objects). Converting from CSV treats the first row as headers.
More developer tools
View allJSON Formatter
Paste raw JSON and get it neatly indented, minified, or validated — entirely in your browser, with a clear error message pointing to anything invalid.
Open toolJSON Diff
Compare two JSON objects and get a clear list of the fields that were added, removed, or changed — with full paths, so you spot every difference at a glance.
Open toolRegex Tester
Test a regular expression against sample text with live match highlighting, a plain-English breakdown of your pattern, and a cheat sheet to learn from.
Open tool