Excel To YAML

Login

Email
Password

Don't have an account yet?

Go to Sign up

{{ workbook ? 'Online Table Editor' : 'Input Data' }}
Change File Enter Data
Row Col Row Col
Transpose Clear Delete Empty Deduplicate
ABC abc Abc
Replace
First Row as Header
{{ displayRows.length }} rows x {{ displayHeaders.length }} columns{{ firstRowAsHeader ? ' (1 header)' : '' }} {{ selectedRows.length > 0 ? selectedRows.length + ' selected' : '' }}
Output Data
{{ copied ? 'Copied!' : 'Copy to Clipboard' }} Download File
Properties
Convert Excel to YAML online — paste, edit, and download YAML.

Array Style:
Block Flow Block: one item per line; Flow: inline format
Quote Style:
None Single Double String quote style for values
Indent Size:
2 4 8 Tab Spaces per indent level
Convert Restart
Insert Row Below
Insert Row Above
Insert Column Right
Insert Column Left
Delete Row {{ contextMenu.row + 1 }}
Delete Column {{ contextMenu.col + 1 }}
Clear Cell
Clear Row
Case sensitive Use regex Cancel Replace All

What Is YAML?

YAML (YAML Ain't Markup Language) is a human-readable data serialization format. It uses indentation and minimal punctuation to represent structured data, making it easier to read and edit than JSON or XML.

name: Alice
age: 30
address:  
   city: Berlin  
   country: Germany
hobbies:  
   - reading  
   - hiking

YAML is the standard configuration format for:

  • Docker Composedocker-compose.yml

  • Kubernetes — resource manifests

  • CI/CD pipelines — GitHub Actions, GitLab CI, CircleCI

  • Ansible — playbooks and inventory

  • Static site generators — Jekyll, Hugo front matter

  • OpenAPI / Swagger — API definitions

Why Convert Excel to YAML?

Excel spreadsheets are common for data management, but YAML is the preferred format for configuration and infrastructure-as-code. Converting Excel to YAML bridges these worlds:

  • Infrastructure config — Maintain Kubernetes or Docker Compose configs in Excel, export as YAML

  • CI/CD variables — Manage pipeline configurations in spreadsheets, generate .yml files

  • Ansible inventory — Keep server lists in Excel, convert to Ansible-compatible YAML

  • API specs — Draft OpenAPI parameters in Excel, output as YAML

  • Jekyll/Hugo data — Maintain site data in Excel, export as YAML data files

  • Batch configuration — Convert product catalogs, feature flags, or environment configs from Excel to YAML

Supported File Formats

The converter accepts three Excel formats:

FormatExtensionNotes
Excel Workbook.xlsxDefault format since Excel 2007
Legacy Excel.xlsExcel 97–2003 format
Macro-Enabled.xlsmExcel with VBA macros (data only, macros not processed)

Multi-sheet workbooks are supported — if the file contains multiple worksheets, a sheet selector appears in the toolbar.

Core Features

Array Style: Block vs Flow

YAML supports two styles for representing lists (sequences).

Block style — one item per line with - prefix:

employees:  
 - name: Alice
   age: 30
   city: Berlin  
 - name: Bob
   age: 25
   city: Tokyo

Flow style — inline comma-separated in [...]:

employees: [{name: Alice, age: 30, city: Berlin}, {name: Bob, age: 25, city: Tokyo}]
StyleBest For
BlockReadability, configuration files, manual editing
FlowCompact output, embedding in larger documents

Quote Style

Control how string values are quoted in the output:

StyleExampleBest For
Nonename: AliceClean output, values without special characters
Singlename: 'Alice'Values containing colons or special YAML characters
Doublename: "Alice"Values with escape sequences (\n, \t)

When None is selected, the converter adds quotes only when required by YAML syntax (values containing :, #, {, [, or leading/trailing whitespace).

Indent Size

Choose the number of spaces per indentation level:

SizeConvention
2 spacesYAML standard, most common
4 spacesPython-heavy teams
8 spacesLegacy systems
TabMinimal file size

YAML does not allow mixing tabs and spaces within the same file. Use Tab only if your toolchain expects tab-indented YAML.

Full Table Editor

After uploading your Excel file, the built-in editor lets you:

  • Add, delete, and reorder rows and columns

  • Transpose rows to columns

  • Remove empty rows and duplicate rows

  • Apply case transformations (UPPERCASE, lowercase, Capitalize)

  • Find and replace values (with regex support)

Privacy

All processing happens in your browser. Your Excel files are never uploaded to any server.

How to Use the Excel to YAML Converter

Step 1 — Upload Your Excel File

Drag and drop an .xlsx, .xls, or .xlsm file onto the upload area, or click to browse. If the workbook has multiple sheets, select the desired sheet from the dropdown in the toolbar.

Step 2 — Edit (Optional)

Use the toolbar to modify your data. Insert or remove rows and columns, transpose the table, deduplicate rows, or apply bulk case changes.

Step 3 — Choose Array Style

In the Properties panel, select Block for readable output or Flow for compact output.

Step 4 — Configure Options

  • Quote Style — select None, Single, or Double for string quoting

  • Indent Size — choose 2, 4, or 8 spaces, or tabs

Step 5 — Convert

Click Convert. The YAML output appears in the Output Data panel.

Step 6 — Copy or Download

Click Copy to Clipboard to paste the YAML into your configuration file, or use Download File (Premium) to save the .yml file.

YAML vs JSON vs XML

FeatureYAMLJSONXML
Human-readableHighMediumLow
Comments# commentNot supported<!-- -->
Multi-document--- separatorNot supportedNot standard
Anchors/aliases& / *Not supportedNot supported
Data typesRich (dates, null, bool)Basic (string, number, bool, null, array, object)Text only
PunctuationMinimalBraces and bracketsTags and attributes
Primary useConfigurationAPIs and data exchangeLegacy enterprise systems

Use Cases

  1. Kubernetes manifests — Maintain deployment specs in Excel, export as YAML for kubectl apply

  2. Docker Compose — Define services in a spreadsheet, generate docker-compose.yml

  3. CI/CD pipelines — Manage GitHub Actions or GitLab CI job configurations in Excel

  4. Ansible playbooks — Keep inventory and variable data in Excel, convert to YAML

  5. Static site data — Export Excel catalogs as YAML data files for Jekyll or Hugo

  6. OpenAPI specs — Draft API parameters in Excel, output as YAML for Swagger

  7. Feature flags — Maintain feature flag tables in Excel, generate YAML configs for deployment

FAQ

  • What Excel file formats does the converter accept?

    The converter accepts .xlsx (Excel Workbook), .xls (Excel 97–2003), and .xlsm (Macro-Enabled Workbook) files. Multi-sheet workbooks are supported with a sheet selector.

  • Does the tool upload my Excel data to a server?

    No. All conversion happens entirely in your browser using client-side JavaScript. Your files are never uploaded, transferred, or stored on any server.

  • What is the difference between Block and Flow array styles?

    Block style outputs one YAML item per line with dash prefixes, producing readable output. Flow style uses inline comma-separated values in square brackets, producing compact output. Block is preferred for configuration files; Flow is useful for embedding in larger documents.

  • When should I use quote styles in the YAML output?

    Use None for clean output when values don't contain special YAML characters. Use Single quotes when values contain colons, hashes, or brackets. Use Double quotes when values contain escape sequences like \\n or \\t. When None is selected, the converter adds quotes automatically when required by YAML syntax.

  • Can I convert a multi-sheet Excel workbook?

    Yes. When you upload a multi-sheet workbook, a sheet selector appears in the toolbar. Select the sheet you want to convert to YAML.

  • What indent size should I use for YAML?

    2 spaces is the YAML standard and the most common convention. 4 spaces is used by some Python-heavy teams. Tab indentation is valid in YAML but less common. Avoid mixing tabs and spaces within the same file.

  • Can I edit my Excel data before converting to YAML?

    Yes. After uploading your file, a full table editor opens where you can add or remove rows and columns, transpose the table, deduplicate rows, change text case, and find and replace values.

  • What is YAML used for?

    YAML is primarily used for configuration files. Common uses include Docker Compose files, Kubernetes manifests, CI/CD pipeline definitions (GitHub Actions, GitLab CI), Ansible playbooks, OpenAPI specifications, and static site generator data files (Jekyll, Hugo).

Featured Tools

Featured tools that you might find useful.

Popular Tools

List of popular tools that users love and frequently use.

New Tools

The latest tools added to our collection, designed for you.

Topics

The tools grouped by topics to quickly find what you need.
Free online Excel to JSON converter. Transform XLSX, XLS, XLSM files into JSON arrays, objects, or keyed formats instantly in your browser — no upload, 100% private.

Excel To JSON

Free online Excel to JSON converter. Transform XLSX, XLS, XLSM files into JSON arrays, objects, or keyed formats instantly in your browser — no upload, 100% private.
Free Excel to CSV converter. Convert XLSX, XLS, XLSM to CSV instantly in your browser. No upload, 100% private. Edit, transpose, deduplicate before exporting.

Excel To CSV

Free Excel to CSV converter. Convert XLSX, XLS, XLSM to CSV instantly in your browser. No upload, 100% private. Edit, transpose, deduplicate before exporting.
Free online Excel to SQL converter. Generate CREATE TABLE and INSERT statements from spreadsheets for MySQL, PostgreSQL, SQLite, and SQL Server. Supports batch insert, primary keys, and type inference.

Excel To SQL

Free online Excel to SQL converter. Generate CREATE TABLE and INSERT statements from spreadsheets for MySQL, PostgreSQL, SQLite, and SQL Server. Supports batch insert, primary keys, and type inference.
Free online Excel to ASCII table converter with 10 border styles (MySQL, Unicode, reStructuredText, and more). Add code comment wrappers in 8 languages. Supports text alignment. Client-side processing.

Excel To ASCII Table

Free online Excel to ASCII table converter with 10 border styles (MySQL, Unicode, reStructuredText, and more). Add code comment wrappers in 8 languages. Supports text alignment. Client-side processing.