YAML to CSV Converter Online — Free & Private

Flatten YAML that unwraps to JSON arrays or objects into spreadsheet rows, with the same dotted-column rules as JSON to CSV.

Loading…
YAML → CSV for configs and analyst tables
Useful when observability YAML unwraps into rows of the same shape.

Developer notes

If the YAML parses to scalars, the CSV can be empty. Reshape the data into a table first. Nested maps flatten to dotted headers, as in the JSON → CSV export.

Use cases

FinOps teams moving YAML price sheets into a spreadsheet. SRE snapshots that need spreadsheet filters.

About these options

For CSV output, choose the delimiter, how fields are quoted, the line endings and whether to write a header row. Auto uses a comma in English and a semicolon in French, German and Spanish, as Excel expects. For CSV input, the delimiter is detected on the first line (comma, semicolon, tab or pipe). You choose whether that line holds the column names. JSON output can use 2 or 4 spaces or a single line, with an optional recursive key sort. XML output can be pretty-printed with a chosen indent width. YAML output takes an indent width and a quoting mode for strings. XML comments are dropped, because the conversion goes through a JSON tree.

Examples

Kubernetes Deployment manifest

Input

apiVersion: apps/v1 kind: Deployment metadata: name: checkout-api labels: app: checkout spec: replicas: 3 selector: matchLabels: app: checkout template: metadata: labels: app: checkout spec: containers: - name: api image: registry.example/checkout:2.4.1 ports: - containerPort: 8080

Output

apiVersion,kind,metadata.name,metadata.labels.app,spec.replicas,spec.selector.matchLabels.app,spec.template.metadata.labels.app,spec.template.spec.containers apps/v1,Deployment,checkout-api,checkout,3,checkout,checkout,"{""name"":""api"",""image"":""registry.example/checkout:2.4.1"",""ports"":[{""containerPort"":8080}]}"

Nested service configuration

Input

service: name: billing-gateway port: 8443 tls: enabled: true minVersion: "1.2" endpoints: - /health - /metrics - /ready

Output

name,port,endpoints,tls.enabled,tls.minVersion billing-gateway,8443,"/health, /metrics, /ready",true,1.2

Related tools

Stay tabular with JSON → CSV, inspect the tree with YAML → JSON, or export XML with YAML → XML.

YAML → CSV FAQ

Flattening limits

Columns with mixed types?

Everything becomes a string in the CSV cells. Cast the values downstream.

What about European delimiters?

On the French, German and Spanish pages, Auto already uses the semicolon. On the other pages, choose the semicolon yourself.

What about comments in YAML?

Comments are lost in the intermediate JSON. Keep them somewhere else.

Commas inside cells?

The exporter quotes fields as needed, following the quoting option.

Convert YAML to JSON, XML, CSV, TOML, TSV, Properties and INI, in your browser.