JSON / YAML / CSV Converter

Free tool No sign-up
Input
Output
{
  "id": 42,
  "name": "Ada Lovelace",
  "email": "[email protected]",
  "active": true,
  "roles": [
    "admin",
    "editor"
  ],
  "address": {
    "city": "London",
    "zip": "EC1V"
  }
}
192 bytes · 14 lines · 2 objects · 1 arrays · 8 keys

About this tool

Convert between JSON, YAML, and CSV in one tool. All 9 conversions, with options for indent, sort keys, YAML quote style, CSV delimiter, nested-object flattening and more.

Advertisement
?

Why use this formatter?

Three formats, one paste
JSON, YAML, and CSV in one tool. Switch the output format with a tab — no re-paste, no second tool, no chat round-trip.
🔒
100% in-browser
Your data never leaves the page. Safe for production payloads, customer exports, internal API responses — anything you wouldn't paste into a chat.
🎛️
Real options for each format
Indent / minify / sort keys universally. Plus YAML flow style, quote style, anchors. Plus CSV delimiter, headers, type coercion, nested-object flattening.
↔️
All 9 conversions covered
JSON ⇄ YAML ⇄ CSV ⇄ JSON, every direction. Auto-detect the input format or override it. Live conversion as you type.

How to use

01
Paste any JSON, YAML, or CSV
Drop it into the left panel. The tool auto-detects the format — override with the input tabs if needed.
02
Pick an output format
Click JSON / YAML / CSV on the right pane. Same input, three outputs — no need to re-paste.
03
Tweak the options
Open "Format-specific options" to control YAML quote style, CSV delimiter, header rows, nested-object flattening and more.
04
Copy or download
Hit Copy to grab the output, Download to save as a .json / .yaml / .csv file, or Share to send the input via a URL hash.

Three formats at a glance

FormatBest forOptions that matter
JSONAPI payloads, config filesIndent, sort keys, minify
YAMLConfig (Kubernetes, GitHub Actions, Docker Compose)Flow vs block, quote style, anchors
CSVSpreadsheets, data exportsDelimiter, header row, type coercion, flatten nested objects
=

Same data, three formats

JSON
{
  "name": "ada",
  "active": true,
  "skills": ["rust", "css"]
}
YAML
name: ada
active: true
skills:
  - rust
  - css
CSV
name,active,skills
ada,true,"[""rust"",""css""]"

Pro tips

01
Use auto-detect for unknown input
The tool inspects the first character and structure to guess JSON / YAML / CSV. If you know what you have, override with the explicit tab — saves a misdetection on edge cases (e.g. YAML that starts with a quoted string).
02
CSV → JSON: enable type coercion
Turn on "Coerce types on parse" so "true" becomes the boolean true and "42" becomes the number 42. Disable it if you have IDs that start with leading zeros (otherwise "007" becomes 7).
03
YAML quote style for config files
For Kubernetes / Docker / CI configs, "double" is the safe default — preserves escape sequences. Use "force" when emitting YAML for downstream parsers that are picky about unquoted strings.
04
JSON → CSV: flatten nested objects
Enable flattening to turn { user: { name: "Ada" } } into a column "user.name" with value "Ada". Without it, nested objects would JSON-stringify into a single cell.
Advertisement

Search CodeFronts

Loading…