YAML to CSV

Convert data in YAML format to CSV.

About YAML to CSV

YAML is the format of configuration files, Ansible inventories, Kubernetes manifests and static-site data, but reviewing a long list of entries is much easier as a table. This tool reads a YAML list of records (each starting with a dash and containing key: value pairs) and produces a CSV with one column per key and one row per record.

Paste the YAML, type the file name and download the CSV. The conversion is done with a lightweight parser in your browser, so infrastructure files with hostnames or credentials are never uploaded.

How to use YAML to CSV step by step

  1. Type the name of the output file; the .csv extension is added automatically.
  2. Paste a YAML list where each item starts with "- " and holds key: value pairs on the following indented lines.
  3. Click "Convert and download CSV". The header row is the union of all keys found in the records.

Input and output example

Input

- name: Juan
  age: 30
  city: Madrid
- name: Ana
  age: 25
  city: Barcelona

Output

name,age,city
Juan,30,Madrid
Ana,25,Barcelona

Why use our YAML to CSV?

Common use cases

Limits and tips

Frequently asked questions

What YAML structure does the converter expect?

A sequence of mappings: each record begins with a dash, and its fields are key: value lines indented under it (the first field may sit on the dash line). This is the shape of most data lists in YAML, such as inventories, user lists or content entries.

Why is my nested YAML not converted correctly?

The parser is intentionally simple and only reads one level of key: value pairs per record. Nested objects, lists inside a record and block scalars (| or >) are skipped or read as plain text. Flatten those fields first, for example with yq, if you need them as columns.

What is the difference between YAML and CSV?

YAML is a hierarchical, human-readable format for configuration and structured data that supports nesting, comments and types. CSV is a flat table of delimited values without types or nesting. YAML suits configuration; CSV suits spreadsheets and bulk data exchange.

Does it convert Kubernetes manifests?

Not as a whole document: a manifest is a single nested mapping, not a list of flat records. You can, however, paste a list such as the containers or env entries of a deployment, which are flat enough to become rows.

Is the YAML sent to a server?

No. The parsing and the CSV generation run in your browser. The file is created locally and nothing is transmitted.

Related tools

Other free utilities you may find useful

Available languages