Boneyard Tools

YAML to CSV Converter

Paste a YAML list of records to get CSV instantly. Columns are the union of every record's keys, and nested values are kept as JSON. Your data stays in your browser.

How to convert YAML to CSV

  1. Paste or type your YAML list of records into the editor.
  2. Pick the delimiter you need, such as comma, semicolon or tab.
  3. Copy the CSV or download it as a .csv file.

Examples

List of records

- name: Ada
  age: 36
- name: Linus
  age: 54
name,age
Ada,36
Linus,54

Frequently asked questions

Is my YAML uploaded anywhere?

No. The conversion runs entirely in your browser, so your YAML never leaves your device.

What YAML shape works best?

A sequence of mappings, where each list item is a record with the same kind of keys. A single mapping also works and becomes one CSV row.

How are the CSV columns chosen?

Columns are the union of keys across every record, so records with different fields still line up. Missing values are left blank.

What happens to nested objects and lists?

CSV cells are flat, so any nested mapping or list is written as compact JSON inside its cell. Top-level scalars stay as plain values.

Which delimiters can I use?

Comma, semicolon, tab or pipe. Fields that contain the delimiter, quotes or line breaks are quoted automatically so the CSV stays valid.

Why am I getting an error?

The input must be valid YAML that describes a list of objects or a single object. A syntax error or a bare value like a number or string will be rejected with a message.

Related tools