YAML to CSV

Nothing you paste here leaves your browser. There is no server to send it to — the conversion happens on your own device, and nothing is uploaded, stored or seen by anyone. Paste it, or drop a file on the page.

What this conversion costs you

Two conversions at once, and both of them lose something. YAML's comments and anchors go first, then the tree is flattened into a rectangle. Nested keys become dotted columns and lists are joined. Both counts are shown, because two lossy steps in a row is exactly where a converter should be talking rather than quiet.

How it works, and why nothing is uploaded

YAML is read by js-yaml, which is twelve kilobytes of MIT-licensed code served from this site. It is the one format here that is not handled by code written for this site, and deliberately so: YAML is full of traps, and a partial parser would not fail, it would quietly give you the wrong data. The CSV writer quotes anything containing your separator, a quote or a newline, which is the part most converters get wrong.

Everything happens in the page you are looking at. There is nothing to upload, no queue, no size limit but your own memory, and nothing that could be read by anybody — because it is never sent.

Where to go next

What this does not do

It converts one document at a time and does not validate against a schema, transform with XSLT, or query with JSONPath. It will tell you when your input does not parse, and where, rather than producing something that looks converted.

Nothing is uploaded, so it cannot work on a file that is not on the device you are using, and it does not remember what you converted a moment ago. Close the tab and it is gone.