YAML to CSV Converter

Convert a YAML list to a CSV table.

Click to upload or drag and drop

.yaml .yml

No file at hand?

How to convert YAML to CSV online

  1. 1

    Upload a .yaml or .yml file, or paste YAML and click "Convert".

  2. 2

    A list of mappings becomes rows. A single top-level key that holds a list, such as employees:, is unwrapped automatically.

  3. 3

    Nested mappings become columns with dot names, such as address.city.

  4. 4

    Check the table preview and download the CSV.

Example: nested YAML to CSV

YAML input

employees:
  - name: Emma
    address:
      city: Seattle
    skills: [sql, python]
  - name: Liam
    address:
      city: Austin

CSV output

name,address.city,skills
Emma,Seattle,"sql, python"
Liam,Austin,

Tips for converting YAML to CSV

Lists of values

Simple lists such as [sql, python] are joined into one cell, separated by commas.

Missing keys

Columns are the union of all keys. Items without a key get an empty cell.

Multiple documents

Files with several documents separated by --- are combined into one table.

Dates stay as written

Values like 2021-03-15 are kept exactly as they appear in the YAML.

YAML to CSV FAQ

Is the YAML to CSV converter free?

Yes. It is free with no sign-up.

Is my YAML uploaded?

No. The YAML is parsed in your browser.

Why do I get an error?

YAML depends on indentation. Make sure items in a list line up and that keys are followed by a colon and a space.

Can I open the result in Excel?

Yes. The CSV is saved with a UTF-8 marker, so Excel shows accented and non-Latin characters correctly.