Zero Signup ToolsFree browser tools

Converter Tools

CSV to YAML Converter

Convert CSV, TSV, semicolon, or pipe-delimited tables to YAML 1.2 in your browser. Header row, type inference, block or flow style, copy and download.

Input options

Delimiter

Parsing

Output options

Shape

Indent

String quotes

267 chars, 267 B

Parsing and conversion run entirely in your browser. The CSV pasted here never leaves your device.

What is preserved

  • Quoted fields, embedded commas, escaped double quotes, and embedded newlines parse correctly per RFC 4180.
  • With type inference on, cells that read as numbers, booleans, or null become real YAML scalars. With it off, every cell stays a string.
  • Strings that look like reserved YAML words (yes, no, on, off, true, false, null) are quoted automatically so the round trip preserves type.
  • Keys and values that contain colons, hashes, flow indicators, or leading whitespace are quoted with the chosen quote style.
  • Empty header cells are renamed column_N. Extra columns past the header become column_N too.
  • Switch to List of lists when the CSV has no header row or when the consumer expects positional data.

How to use

  1. Paste CSV (or TSV / semicolon / pipe-delimited) data into the CSV input panel, or click Load sample to see a working example.
  2. Pick the delimiter that matches your file: Comma, Tab, Semicolon, or Pipe.
  3. Toggle First row is header if the first line of the CSV holds column names. Toggle Infer numbers, booleans, and null when you want unquoted scalar types in the YAML output.
  4. Pick a shape: List of mappings (one YAML mapping per row, keyed by the header) or List of lists (one YAML sequence per row).
  5. Adjust indent (2 or 4 spaces) and string quote style (Auto, Single, or Double) until the YAML output reads the way you want.
  6. Click Copy YAML or Download .yaml to save the result. Nothing is uploaded.

About this tool

CSV to YAML Converter turns a comma, tab, semicolon, or pipe-delimited table into clean YAML 1.2 output, entirely in your browser. The parser follows RFC 4180: quoted fields, commas inside cells, escaped double quotes (""), and embedded newlines all survive the round trip. Choose List of mappings (the default) to emit one YAML mapping per row keyed by the header line, or List of lists when the CSV has no header row or the consumer expects positional data. Optional type inference promotes cells that read as integers, decimals, true, false, or null into real YAML scalars; turn it off when columns hold values you want to keep as strings (zip codes, phone numbers, leading-zero IDs, version strings, ISBNs). Strings that collide with YAML 1.2 reserved words (yes, no, on, off, true, false, null) are quoted automatically so the output parses back to the same type. The emitter picks between plain, single-quoted, and double-quoted strings, falls back to a YAML literal block scalar for cells containing newlines, and renames empty header cells as column_1, column_2, and so on. The output preview shows row count, column count, line count, and byte size; the side panel includes Copy YAML and Download .yaml buttons. Useful for converting spreadsheet exports into Kubernetes ConfigMaps, Ansible host inventories, Helm chart values, GitHub Actions matrix inputs, Docker Compose snippets, OpenAPI example sections, Rails or Laravel database fixtures, and any other YAML-shaped configuration that started life in a spreadsheet. Parsing, type inference, and YAML emission all run locally; the CSV pasted here never leaves your device.

Free to use. Works in your browser. No signup, no login.

Related tools

You may also like

All tools
All toolsConverter Tools