Our Network


Coming Soon


Coming Later

YAML to CSV Converter

world's simplest csv tool

Free online YAML to CSV converter. Just upload your YAML file in the form below and it will automatically get converted to a CSV file. In the tool options, you can customize the output CSV field separator (comma by default), wrap the output CSV fields in quotes (and change quotation characters), and enable or disable CSV column names (header row). Created by programmers from team Browserling.

᠎᠎᠎          Tool Options

CSV Column Headers

Use YAML keys to create
headers for the CSV columns
on the first row of the file.

CSV Delimiter

Create a CSV separated by this
symbol. (By default, a comma
serves as the delimiter.)

CSV Quoting

Enclose CSV fields in quotes
using this symbol.
Enable quoting mode globally
for all output CSV fields.

What is a YAML to CSV Converter?

This tool transforms Yet Another Markup Language (YAML) data to Comma Separated Values (CSV) format. If we compare the two formats, YAML is a human-readable format used in software configuration files and it supports complex hierarchies, whereas CSV is a simpler tabular format utilized for storing data, with entries separated by commas (or a delimiter of your choice). Converting YAML to CSV is useful because the simple structure of a CSV file is easier to understand and manipulate for humans and computer programs alike. The CSV format is universally supported by almost all software (including spreadsheets) and it's ideal for analysis and sharing. In the options of this program, you can customize the CSV delimiter symbol (by default it's a comma) and enclose CSV values in quotes. The default quotation symbol is double-quotes (") but you can choose any other symbol. Additionally, you can choose whether to include or exclude CSV column headers. If the "Create CSV Headers" option is enabled, the program uses YAML keys as CSV column names, otherwise, the first row is skipped and the columns aren't given names. To convert CSV back to YAML, you can use our Convert CSV to YAML tool. Csv-abulous!


YAML to CSV Converter Examples

Click to try!

Convert Weather Data from YAML Format to CSV Format

In this example, we convert weather data from the complicated YAML format to the simple and universally parsable CSV format. The input data contains a list of YAML objects that include weather details about four of the biggest cities in the world – New York, London, Tokyo, and Paris. This data also includes the corresponding dates, Fahrenheit temperatures, and precipitation conditions. When we transform this YAML into a CSV file, the output headers are automatically generated from the YAML keys (city, date, temperature, precipitation). The temperature data in Celsius is not converted from the YAML, as it's added as a comment after the symbol # (comment symbol).

- city: New York date: '2024-02-19' temperature: 42 F # Equivalent to 5.5°C precipitation: Light Rain - city: London date: '2024-02-19' temperature: 50 F # Equivalent to 10°C precipitation: Cloudy - city: Tokyo date: '2024-02-19' temperature: 65 F # Equivalent to 18.3°C precipitation: Sunny - city: Paris date: '2024-02-19' temperature: 48 F # Equivalent to 8.8°C precipitation: Clear
city,date,temperature,precipitation New York,2024-02-19,42 F,Light Rain London,2024-02-19,50 F,Cloudy Tokyo,2024-02-19,65 F,Sunny Paris,2024-02-19,48 F,Clear
Required options
These options will be used automatically if you select this example.
Use YAML keys to create
headers for the CSV columns
on the first row of the file.
Create a CSV separated by this
symbol. (By default, a comma
serves as the delimiter.)
Enclose CSV fields in quotes
using this symbol.
Enable quoting mode globally
for all output CSV fields.

YAML Array of Animal Characteristics

In this example, we transform animal characteristics stored in the YAML format (as a list of lists) into a concise CSV structure. The input data contains information about various cat and dog breeds, their fur types, and running speeds. The cats include Siamese and Persian, and the dogs include Border Collie and Greyhound. The output CSV contains as many rows as there are YAML lists as the headers aren't created (the "Create CSV Headers" option is off).

- - Siamese - Shorthair - 30 mph - - Persian - Longhair - 25 mph - - Border Collie - Herding - 30 mph - - Greyhound - Hound - 45 mph
Siamese,Shorthair,30 mph Persian,Longhair,25 mph Border Collie,Herding,30 mph Greyhound,Hound,45 mph
Required options
These options will be used automatically if you select this example.
Use YAML keys to create
headers for the CSV columns
on the first row of the file.
Create a CSV separated by this
symbol. (By default, a comma
serves as the delimiter.)
Enclose CSV fields in quotes
using this symbol.
Enable quoting mode globally
for all output CSV fields.

Turn an Employee Configuration File into a CSV File with Custom Formatting

In this example, we convert employee information that's stored in a YAML file into a CSV file. The input configuration file consists of a list of YAML employee objects, which include their IDs, names, and corresponding departments. We use the YAML object keys to generate CSV data headers and configure the output CSV to use the non-standard en dash "–" symbol as a field delimiter. Additionally, for better readability, we wrap all CSV fields in double-quotes.

- id: '1234' name: John Smith department: Marketing - id: '5678' name: Jane Doe department: Sales - id: '9012' name: David Lee department: Engineering - id: '3456' name: Emma Jones department: HR - id: '7890' name: Michael Davis department: Finance
"id"–"name"–"department" "1234"–"John Smith"–"Marketing" "5678"–"Jane Doe"–"Sales" "9012"–"David Lee"–"Engineering" "3456"–"Emma Jones"–"HR" "7890"–"Michael Davis"–"Finance"
Required options
These options will be used automatically if you select this example.
Use YAML keys to create
headers for the CSV columns
on the first row of the file.
Create a CSV separated by this
symbol. (By default, a comma
serves as the delimiter.)
Enclose CSV fields in quotes
using this symbol.
Enable quoting mode globally
for all output CSV fields.

Pro tips Master online csv tools

You can pass input to this tool via ?input query argument and it will automatically compute output. Here's how to type it in your browser's address bar. Click to try!

https://onlinetools.com/csv/convert-yaml-to-csv?input=-%20city%3A%20New%20York%0A%20%20date%3A%20%272024-02-19%27%0A%20%20temperature%3A%2042%20F%20%23%20Equivalent%20to%205.5%C2%B0C%0A%20%20precipitation%3A%20Light%20Rain%0A-%20city%3A%20London%0A%20%20date%3A%20%272024-02-19%27%0A%20%20temperature%3A%2050%20F%20%23%20Equivalent%20to%2010%C2%B0C%0A%20%20precipitation%3A%20Cloudy%0A-%20city%3A%20Tokyo%0A%20%20date%3A%20%272024-02-19%27%0A%20%20temperature%3A%2065%20F%20%23%20Equivalent%20to%2018.3%C2%B0C%0A%20%20precipitation%3A%20Sunny%0A-%20city%3A%20Paris%0A%20%20date%3A%20%272024-02-19%27%0A%20%20temperature%3A%2048%20F%20%23%20Equivalent%20to%208.8%C2%B0C%0A%20%20precipitation%3A%20Clear&convert-headers=true&char-delimiter=%252C&char-quote=%2522&convert-quote=false

All CSV Tools

Didn't find the tool you were looking for? Let us know what tool we are missing and we'll build it!

Quickly convert a CSV file to a JSON data structure.

Quickly convert a JSON data structure to a CSV file.

Quickly convert a CSV file to an XML file.

Quickly convert an XML file to a CSV file.

Quickly convert a CSV file to a YAML file.

Quickly convert a YAML file to a CSV file.

Quickly convert a CSV file to a TSV file.

Quickly convert a TSV file to a CSV file.

Quickly convert a CSV file to evenly aligned text columns.

Quickly convert text columns to a CSV file.

Quickly encode CSV to base64.

Quickly decode base64 to CSV.

Quickly convert CSV to URL-encoding.

Quickly decode CSV from URL-encoding.

Quickly change the CSV column delimiter to a new symbol.

Quickly prepend columns at the beginning of a CSV file.

Quickly append one or more new columns at the end of a CSV file.

Quickly insert one or more new columns anywhere in a CSV file.

Quickly export one or more columns from a CSV file.

Quickly replace any column in a CSV file with a new one.

Quickly delete one or more columns from a CSV file.

Quickly swap two columns in a CSV file.

Quickly exchange columns with rows in a CSV file.

Quickly exchange rows with columns in a CSV file.

Quickly transpose a CSV file.

Quickly truncate columns in a CSV file.

Quickly left-trim and right-trim column values in a CSV file.

Quickly sort data in one or more CSV columns.

Quickly remove double quotes from all CSV fields.

Quickly wrap all CSV fields in double quotes.

Quickly change the character that CSV fields are wrapped in.

Quickly make sure the given CSV file doesn't have errors.

Quickly find rows and columns in CSV that are missing values.

Quickly fill missing CSV values with placeholder values.


Coming Soon

These CSV tools are on the way!
Edit CSV in the Browser

Edit the contents of a CSV file in a neat editor.

Deduplicate CSV Data

Remove duplicate rows in a CSV file.

Print CSV Statistics

Display detailed information about a CSV file.

Convert CSV to HTML

Convert a CSV file to an HTML table.

Convert HTML to CSV

Convert an HTML table to a CSV file.

Convert CSV to Markdown

Convert a CSV file to a Markdown table.

Convert Markdown to CSV

Convert a Markdown table to a CSV file.

Convert CSV to ASCII Table

Draw an ASCII table from CSV data.

Convert CSV to ANSI Table

Draw an ANSI table from CSV data.

Convert CSV to Unicode Table

Draw a Unicode table from CSV data.

Convert CSV to PDF

Convert CSV to a PDF document.

Convert PDF to CSV

Extract data from a PDF and create a CSV file.

Convert CSV to a Screenshot

Create a screenshot of CSV data.

Convert CSV to an Image

Draw a CSV file as a PNG, JPG or GIF picture.

Convert Image to CSV

Extract data from an image and create a CSV file.

Convert CSV to Excel

Convert a CSV file to an Excel spreadsheet.

Convert Excel to CSV

Convert an Excel spreadsheet to a CSV file.

Convert CSV to vCard

Convert a CSV file to a vCard file.

Convert vCard to CSV

Convert a vCard file to a CSV file.

Convert CSV to LaTeX

Convert CSV to a LaTeX table.

Convert CSV to SQL

Generate SQL insert queries from a CSV file.

Convert SQL to CSV

Create a CSV file from SQL query results.

Convert CSV to qCSV

Convert a CSV file to a qCSV (quoted CSV) file.

Convert qCSV to CSV

Convert a qCSV (quoted CSV) file to a CSV file.

Convert CSV to INI

Convert a CSV file to an INI file.

Convert INI to CSV

Convert an INI file to a CSV file.

Convert CSV to JSONL

Convert a CSV file to a JSONL (JSON Lines) file.

Convert JSONL to CSV

Convert a JSONL (JSON Lines) file to a CSV file.

Convert CSV to TXT

Convert a CSV file to a plain text file.

Convert TXT to CSV

Convert a plain text file to a CSV file.

Convert CSV to 0SV

Convert a CSV file to a null-separated values file (0SV).

Convert 0SV to CSV

Convert a null-separated values file (0SV) to a CSV file.

Convert CSV to SSV

Convert a CSV file to a semicolon-separated file (SSV).

Convert SSV to CSV

Convert a semicolon-separated file (SSV) to a CSV file.

Convert CSV to HSV

Convert a CSV file to a hash-separated file (HSV).

Convert HSV to CSV

Convert a hash-separated file (HSV) to a CSV file.

Convert CSV to PSV

Convert a CSV file to a pipe-separated file (PSV).

Convert PSV to CSV

Convert a pipe-separated file (PSV) to a CSV file.

Convert CSV to SQLite

Create an SQLite database from the given CSV file.

Convert SQLite to CSV

Export tables from an SQLite database as CSV files.

Convert CSV to GeoJSON

Convert a CSV file to a GeoJSON file.

Convert GeoJSON to CSV

Convert a GeoJSON file to a CSV file.

Merge CSV Files

Merge together two or more CSV files.

Compare Two CSV Files

Visually show the differences between two CSV files.

Diff Two CSV Files

Run the diff algorithm on two CSV files.

Find Data in CSV

Find CSV cells that contain certain data.

Filter CSV Cells

Return data in a CSV file that matches a pattern.

Slice CSV

Extract a slice from a CSV file.

Cut CSV

Cut a fragment from a CSV file.

Rotate CSV Columns

Move CSV columns to the left or right.

Rotate CSV Rows

Move CSV data rows up or down.

Sort CSV Rows

Sort the data in one or more CSV rows.

Shuffle CSV Columns

Randomly change the positions of CSV columns.

Shuffle CSV Rows

Randomly change the order of CSV rows.

Shuffle CSV Values

Randomly change the order of all CSV values.

Rename CSV Columns

Change the name of CSV columns.

Create a Random CSV

Generate a random CSV of any size.

Create an Empty CSV File

Generate a CSV file that contains nothing.

Create a Large CSV File

Generate a large CSV file for testing.

Create a Custom CSV File

Generate a custom CSV file with m rows and n columns.

Delete Empty CSV Columns

Remove CSV columns that are completely empty.

Delete Empty CSV Rows

Remove CSV rows that are completely empty.

Delete Empty CSV Values

Remove all fields in a CSV file that are empty.

Delete Empty CSV Lines

Remove all empty lines in a CSV file.

Remove CSV Separator

Delete the comma separator from CSV files.

Remove Extra CSV Commas

Delete extra commas around CSV values.

Delete CSV Comments

Delete comments (lines starting with # or //) from CSV files.

Delete CSV Header

Delete the column header from a CSV file.

Delete First CSV Line

Delete the first line from a CSV file.

Compress a CSV File

Minify a CSV file and remove unnecessary whitespaces.

Optimize CSV File Size

Reduce the file size of a CSV file.

Change CSV Encoding

Change the character encoding of a CSV file to UTF8 or ISO-8859-1.

Add Extra Spaces in CSV

Add extra spaces between CSV columns.

Convert CSV to a Matrix

Convert a CSV file to an m-by-n matrix.

Convert CSV to an Array of Arrays

Convert a CSV file to an array of arrays of fields.

Convert an Array of Arrays to CSV

Convert an array of arrays of fields to a CSV file.

Convert CSV Columns to a List

Create a list from one or more CSV columns.

Convert CSV Rows to a List

Create a list from one or more CSV rows.

Convert CSV Columns to an Array

Create an array from one or more CSV columns.

Convert CSV Rows to an Array

Create an array from one or more CSV rows.

Find CSV Dimensions

Find the number of rows and columns of a CSV file.

Count CSV Columns

Find the number of columns in a CSV file.

Count CSV Rows

Find the number of rows in a CSV file.

Sum CSV Columns

Find the sum of CSV columns.

Sum CSV Rows

Find the sum of CSV rows.

Average CSV Columns

Find the average value of CSV columns.

Average CSV Rows

Find the average value of CSV rows.

Add Color to CSV

Use different colors for CSV data, quotes, and commas.

Animate a CSV File

Animate CSV data by showing column after column.

Fix a Broken CSV

Automatically fix a broken CSV.

Add Errors to CSV

Introduce random errors to a CSV file for fuzz testing.

Anonymize CSV Data

Hide personal or sensitive information in a CSV file.

Censor CSV Data

Mask data in a CSV file.

Hide a Message in a CSV

Hide a secret message in a CSV.

Encrypt CSV

Encrypt a CSV file and hide information in it.

Decrypt CSV

Decrypt a previously encrypted CSV file and make it readable.

Visualize CSV

Create a visual drawing that shows the CSV structure.

Create a CSV File

Create a new CSV file in the browser.

Unleash Zalgo on CSV

Distort a CSV file by infusing it with Zalgo characters.

Purge Zalgo from CSV

Neutralize the chaotic Zalgo and restore CSV integrity.

CSV Viewer

Preview the contents of a CSV file in an interactive editor.


Subscribe!

Subscribe to our updates. We'll let you know when we release new tools, features, and organize online workshops.

Enter your email here


Feedback. We'd love to hear from you! 👋