Convert YAML to CSV
Any structure,
flat CSV output.
Free YAML to CSV converter. Handles sequences, keyed mappings and nested YAML. Dot-notation flattening for nested keys. Paste directly or upload a .yaml file. Powered by js-yaml. Your data never leaves your browser.
YAML structures CSVShift handles
Auto-detected — no configuration needed for standard YAML data files.
- name: Alice age: 32 city: London - name: Bob age: 28 city: Paris
name,age,city Alice,32,London Bob,28,Paris
alice: age: 32 city: London bob: age: 28 city: Paris
_key,age,city alice,32,London bob,28,Paris
- name: Alice
address:
city: London
zip: EC1A
name,address.city,address.zip Alice,London,EC1A
host: localhost port: 5432 ssl: true db: myapp
key,value host,localhost port,5432 ssl,true db,myapp
YAML to CSV in Python
When do you need YAML to CSV?
Kubernetes and Helm config review
Reviewing Kubernetes manifests and Helm values across environments is easier in a spreadsheet. Converting values.yaml files to CSV produces a tabular overview of resource limits, replicas and environment variables.
Ansible inventory export
Ansible inventory files list hosts with their variables and group memberships. Converting to CSV produces a host inventory spreadsheet that non-technical stakeholders can review without knowing YAML syntax.
Test fixture to spreadsheet
YAML fixture files in Rails, Django and other frameworks contain test data that is easier to review in a spreadsheet. Converting to CSV lets non-engineers update test data without touching raw YAML.
API and config data extraction
Tools like AWS CLI, kubectl and Terraform output structured data as YAML. Converting to CSV lets you analyse resource lists, deployment states and configuration values in Excel or Google Sheets.
Related CSV tools
YAML parsed safely
in your browser. js-yaml.
CSVShift uses js-yaml — the most widely used JavaScript YAML parser, with over 90 million weekly npm downloads. It processes your YAML document locally in your browser. Your YAML file is never transmitted to any server.
Powered by js-yaml
4 YAML structures
Multi-document YAML
Free, no conditions
How do I convert YAML to CSV?
How does CSVShift handle nested YAML keys?
address: {city: Paris} becomes address.city. Set the flatten depth to control how many levels are expanded.