Convert YAML to CSV / Excel
Convert YAML data to flat CSV or Excel, flattening nested structures into columns.
YAML (YAML Ain't Markup Language) is a human-readable data serialization format widely used for configuration files, CI/CD pipelines (GitHub Actions, GitLab CI), and infrastructure-as-code (Kubernetes, Docker Compose). Unlike JSON, YAML uses indentation to define structure and supports comments, making it popular for configuration. However, YAML files cannot be directly imported into spreadsheets or databases. This converter parses YAML documents and flattens them into CSV format. It handles both YAML sequences (arrays) and mappings (objects), supports nested structures using dot-notation, and processes multiple YAML documents separated by --- delimiters. You can configure the output delimiter and toggle whether the first row should be treated as a header. The parser runs entirely in your browser, which matters because configuration files often contain API keys, database credentials, or deployment secrets. All YAML parsing happens locally using the js-yaml library, with no data transmitted to external servers.
How to use the Convert YAML to CSV tool
- Load your YAML data: Drag and drop your .yaml or .yml file, choose a file from your file explorer, or paste YAML content directly into the paste area.
- Configure output settings: Choose a CSV delimiter (comma, semicolon, tab, or pipe) and toggle whether the first row is a header.
- Convert to CSV: Click the "Convert Data" button to parse YAML documents and arrays into structured CSV rows.
- Export results: Copy the results to your clipboard, download as a local file, or export to Excel format.