← All text tools

CSV to YAML converter

Convert a CSV table into a YAML list of mappings using the header row as keys, with numbers and booleans detected, quoting handled and an option to key by one column.

  • Free
  • No sign-up
  • Works on any device

About CSV to YAML converter

YAML stores structured data in a readable indented form. This tool turns a CSV table into a list of mappings: the header row gives the keys and every following row becomes one item. Numbers and true or false are written without quotes, while text that a YAML parser could misread, such as yes, null, 007 or 2026-03-02, is quoted so it stays a string. Empty cells can become null, an empty string or be omitted, and you can key the whole output by one column, producing a mapping from the key to the other fields.

How to use CSV to YAML converter

  1. Paste your CSV with a header row, or choose the separator if detection is wrong.
  2. Decide how numbers, empty cells and an optional key column should be handled.
  3. Copy or download the YAML.

Why use this tool?

Also known as

Frequently asked questions

Why are some values quoted in the YAML?

A value is quoted when it could be read as another type, for example yes, no, null, a date or a number with a leading zero. The quotes keep it a plain string.

How do I key the output by an ID column?

Type the name or number of that column in the key box. The output then has one entry per ID, and the ID values must all be different.

What happens to rows shorter than the header?

Missing cells are treated as empty, so they follow the empty cell option and become null by default.

Is CSV to YAML converter free?

Yes. CSV to YAML converter on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

Can I put CSV to YAML converter on my own website?

Yes. Use the Embed on your site button under the tool to copy a short piece of code and paste it into your page. It is free, needs no account, and the tool keeps working inside your page.

Related tools