Loona Automation logoLoona Developer Tools
Home › Data Converters

YAML to CSV Converter

In short: paste YAML whose top level is a list of objects and get a CSV table — the columns are the union of all keys across the items.
🔒 Private by design: everything runs in your browser on this device. Your input is never uploaded to a server.

Example

Input:

- name: Ali
  age: 30
- name: Sara
  age: 25

Output:

name,age
Ali,30
Sara,25

About this converter

The inverse trip of CSV-to-YAML: YAML seed data and fixtures often need to land in a spreadsheet. The converter requires the shape that honestly maps to a table — a top-level list of flat objects — and builds columns as the union of keys, so items with extra fields extend the table instead of losing data, and items missing a field get an empty cell. A value that is itself a list or object cannot be a CSV cell in any truthful way, so it is written as compact JSON text in the cell, visible and recoverable, rather than stringified into "[object Object]" rubbish the way naive converters do it.

Frequently Asked Questions

Why must the YAML be a list?

A CSV is rows and columns; only a list of objects has rows. A single mapping converts better via YAML to JSON, then JSON to CSV tools.

What happens to nested values?

They are written as JSON text inside the cell — preserved, visible, and parseable later.

Related Developer Tools

Embed this tool on your website — free

Add this tool to your own website or blog — it is completely free, needs no sign-up, and always shows the latest version. Copy the code below and paste it into your page where you want the tool to appear. Keeping the small “Powered by Loona Automation” credit line under the embed helps keep this tool free — but you are free to style or remove it; the tool works either way.