Skip to content

TSV to YAML Converter

Convert TSV (Tab-Separated Values) data into YAML, with optional automatic type detection for numbers, booleans, and null.

Category: data
Use Case: Config Generation, Data Migration, CI/CD Pipelines
Privacy: 100% browser-based

Conversion Options

Recommended Settings

Pro Tips

  • The header row's column names become the YAML keys for every record in the list
  • With type inference on, 'true'/'false' become YAML booleans, numeric text becomes numbers, and empty cells become null
  • Enable unescaping if your TSV has literal \t, \n, or \r sequences that should become real characters
  • Disable 'First row contains headers' if your TSV has no header row - generic column1, column2... keys will be used instead
  • By default, keys appear in the same order as the TSV column list - enable sorting for alphabetical order instead

Most Popular

Most users keep header detection and type inference enabled for well-typed YAML

When to Use This Tool

Config Generation

Turn a TSV table of settings or feature flags into a YAML config file that your application, CI pipeline, or infrastructure tooling can load directly.

Data Migration

Bridge TSV-exporting tools and YAML-based APIs or configuration systems by converting tab-delimited exports directly into YAML documents.

CI/CD Pipelines

Convert a TSV table of build steps, environment variables, or matrix values into YAML for GitHub Actions, GitLab CI, or other pipeline definitions.

Test Fixtures & Seed Data

Write sample data as an easy-to-edit TSV table (e.g., pasted from a spreadsheet), then convert it to YAML fixtures for tests or mock APIs.

How It Works

1

Split the TSV input into rows on newlines, and each row into cells on tab characters

2

Optionally unescape literal \t, \n, and \r sequences back into real characters

3

Use the first row as column headers, or generate generic column1, column2... keys if there's no header row

4

Map each remaining row's cells to the header's key names to build one record per row

5

Optionally infer numbers, booleans, and null from the cell text, then serialize the records as YAML

100% Private

Files never leave your device. All processing happens locally in your browser.

Lightning Fast

Powered by js-yaml for optimal performance on modern browsers.

Secure

No data collection, no tracking, no sign-up required.

Frequently Asked Questions

What TSV format does this tool expect?

Standard tab-delimited data: rows separated by newlines, columns separated by tab characters. By default, the first row is treated as column headers.

How does type inference work?

With type inference enabled, 'true'/'false' become YAML booleans, whole or decimal numbers become YAML numbers, 'null' and empty cells become YAML null, and everything else stays a string. Disable it to keep every value as the literal text from the TSV.

What does 'unescape special characters' do?

Some TSV exports represent literal tabs or newlines inside a value as the escape sequences \t, \n, or \r. This option converts those sequences back into their actual characters before building the YAML.

What if my TSV doesn't have a header row?

Disable 'First row contains headers' and every row will be treated as data, with generic keys like column1, column2 generated based on the widest row.

What does 'Sort keys alphabetically' do?

By default, keys in each YAML record appear in the same order as the TSV's column list. Enabling this option instead sorts the keys alphabetically within each record.