Convert YAML to CSV
YAML must contain a sequence of records for CSV output. Nested objects and type information do not map directly to flat cells; inspect the output before importing it.
Processed entirely in your browser using a Web Worker. Nothing is uploaded.
What is YAML?
YAML ("YAML Ain't Markup Language") is a plain-text format for the same kind of structured data as JSON, written to be easier for humans to read and edit — indentation instead of braces, no required quotes on simple strings. It's common in configuration files (Docker Compose, GitHub Actions, Kubernetes) and is a superset of JSON: valid JSON is also valid YAML.
When to convert YAML to CSV
Use it to review a list kept in YAML, such as hosts, users or test fixtures, in a spreadsheet where you can sort and filter. The top level has to be a list of entries, so a config file with named sections will not map cleanly. Treat the CSV as a reading copy and keep the YAML as the source you edit.
How it works
- Drop your YAML file into the box above, or click to choose one.
- Your browser parses it and rewrites it as CSV instantly — nothing is sent anywhere.
- Download the CSV file. That's it.
Other conversions
Questions
What YAML structure converts cleanly?
A top-level list of flat records, one row each. A single mapping such as a: 1 and b: 2 becomes one row. A file with several documents separated by --- stops with an error, so split it first.
What happens to nested values?
A nested mapping becomes columns with dotted names, so user: {name: Ada} gives a user.name column. A list stays in one cell as JSON text, for example [1,2]. If the records sit under a single key such as items:, that list is used automatically.
How are dates written?
A value like 2024-01-02 came through as 2024-01-02 in our test, in a plain text cell. Spreadsheet software may reinterpret it on opening, so confirm the column format after importing.
Having trouble with this tool? Report an issue →