CSV to YAML Converter

Live

CSV to YAML Converter converts a CSV file to YAML, either as a list of records or as a list of lists.

Runs in your browser: what you enter is processed on your device and not uploaded to MyToolDock.

Choose a CSV file.

What is CSV to YAML Converter?

CSV to YAML Converter converts a CSV file to YAML, either as a list of records or as a list of lists. Text that YAML could mistake for something else, such as yes, no or 007, is put in quotes so it stays text. Up to 2,000,000 cells.

How It Works

  1. Enter a CSV file with a header row (optional) in the input fields on this page.
  2. Press the button to run CSV to YAML Converter.
  3. Read a YAML file you can download or copy in the result area, and copy or download it.

Common Uses

Good to Know

Tick the typed option to get real numbers, true/false and null instead of text.

How it works

Choose a CSV file, say whether the first row is a header, and pick records (name: value lines) or a list of lists. Optionally put the list under a key, leave out empty cells, or turn numbers, true/false and empty cells into real YAML values.

Download the YAML or copy it. The preview shows the first lines.

Worked example

Output was read back with PyYAML and compared with the original rows: 60 random files with about 60 awkward values each (yes, no, null, ~, 007, 1:30, 2020-01-01, text with colons, hashes, brackets, quotes, leading and trailing spaces, tabs, new lines, accents, emoji), in both layouts, typed and untyped, with and without a key. Types and key order were also checked.

Limits

Text that YAML could read as another type is put in quotes so it stays text, so a plain number is quoted unless you tick the typed option. Large whole numbers over 15 digits stay text. Empty or repeated column names get a number added. Up to 2,000,000 cells.

Frequently Asked Questions

Why is my number quoted?

To keep it text. Tick the typed option to get real numbers.

What happens to multi-line cells?

They are written as one quoted line with \n inside.

Is my file uploaded?

No. It is read in your browser.

What does CSV to YAML Converter do?

CSV to YAML Converter converts a CSV file to YAML, either as a list of records or as a list of lists. Text that YAML could mistake for something else, such as yes, no or 007, is put in quotes so it stays text. Up to 2,000,000 cells.

What do I need to enter in CSV to YAML Converter?

A CSV file with a header row (optional).

Is my data private in CSV to YAML Converter?

Files are read in your browser and never uploaded.

Is MyToolDock CSV to YAML Converter free to use?

Yes, MyToolDock CSV to YAML Converter is 100% free with no registration, subscriptions, or limits. All features are fully unlocked.

Where can I learn more about CSV to YAML Converter and related workflows?

MyToolDock publishes written guides on the topic: CSV to JSON: Simplifying Web Data Imports; YAML to JSON: Why Developers Transition Formats. Each guide links back to the tools it covers.

Related Tools

CSV and Markdown Table Converter CSV to Excel Converter CSV to HTML Table Converter CSV to JSON CSV to XML Converter Data Storage Converter

Guides

More in Converter Tools · Browse all tools

Developer Scratchpad

Copied to clipboard!