JSON ↔ YAML ↔ CSV Converter
Convert data between JSON, YAML and CSV formats in your browser.
JSON ↔ YAML ↔ CSV Converter — Convert structured data freely between JSON, YAML and CSV. CSV parsing uses the first row as headers, and converting to CSV expects tabular data (an array of objects). Try the sample to see the expected shape — nothing you paste ever leaves your browser.
What is JSON ↔ YAML ↔ CSV Converter?
A free, browser-based converter that transforms structured data between JSON, YAML, and CSV in any direction. Developers, data analysts, and DevOps engineers use it to reformat API responses, config files, and spreadsheets, or to quickly convert a JSON array to CSV, turn YAML into JSON, or parse a CSV file into JSON objects. You pick a From format and a To format, paste your data, and the converted result appears instantly with a one-click copy. CSV parsing treats the first row as headers, and converting to CSV expects tabular data (an array of objects).
How to use JSON ↔ YAML ↔ CSV Converter
- Choose your source format under From: JSON, YAML, or CSV.
- Choose your target format under To: JSON, YAML, or CSV.
- Paste your data into the input box, or click Sample to load an example JSON array.
- Read the converted result in the output box, which is labeled with the target format.
- Click the copy button above the output to copy the result to your clipboard.
- Use Swap to flip the From/To formats and send the previous output back into the input for chained conversions; use Clear to empty the input.
Examples
JSON array to CSV
Input
[{"name":"Ada","age":36},{"name":"Linus","age":54}]Output
name,age Ada,36 Linus,54
JSON object to YAML
Input
{"name":"Ada","role":"engineer"}Output
name: Ada role: engineer
CSV to JSON
Set From to CSV and To to JSON, then paste a CSV with a header row (for example name,age on the first line and Ada,36 below it). The first row becomes the object keys, and the result is a 2-space indented JSON array of objects. Values are kept as strings (so age becomes "36").
Frequently asked questions
- Which formats and directions are supported?
- JSON, YAML, and CSV in any direction: JSON to YAML, YAML to JSON, JSON to CSV, CSV to JSON, YAML to CSV, and CSV to YAML. You set the From and To formats independently.
- Why do I get an error converting to CSV?
- CSV needs tabular data, meaning an array of objects (rows that share the same keys). A single object or deeply nested data can't be flattened into CSV columns, so convert that data to JSON or YAML instead. Click Sample to see the expected shape.
- How does CSV parsing handle headers and blank lines?
- CSV parsing uses the first row as the headers (object keys) and skips empty lines automatically. When the target is JSON, the output is pretty-printed with 2-space indentation.
- Does my data get uploaded to a server?
- No. Everything runs entirely client-side in your browser. Nothing you paste is ever uploaded or sent anywhere, so it's safe for private API payloads, configs, and sensitive spreadsheets.
- What is the Swap button for?
- 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 manually.
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.