HTML Table to YAML Converter
This HTML to YAML converter turns a table on a page into a YAML list of mappings, keyed by the header row — the shape configuration files, fixtures and seed data take. Cell markup is reduced to text and HTML entities are decoded first, so values read as the page displays them. Type detection gives you real numbers and booleans rather than quoted strings, and any value YAML would otherwise misread — things like yes, no, on, a bare date, or a number with a trailing zero — is quoted automatically so it loads back as the string it started as. Everything runs in your browser.
How it works
Turns a table on a page into a YAML list of mappings, keyed by the header row — the shape fixtures and config files take.
Cell markup is reduced to text, entities are decoded, and values that YAML would otherwise misread as dates or booleans are quoted so they load back as the strings they started as.
The conversion runs entirely in your browser — nothing you paste or upload is sent to a server.
How to convert an HTML table to YAML
- Paste the page source — or just the
<table>element — into the input on the left. - If the page has several tables, step through them with the table number box.
- Copy the result, or download it as a
.yamlfile.
A table is already the right shape
A YAML list of mappings and a table of rows describe the same thing: repeated records with named fields. That makes this conversion unusually direct — no structure has to be invented, only the syntax changes.
Values YAML would misread
YAML is eager about interpreting bare text. Left unquoted, yes and no become booleans,
2026-08-18 becomes a date, and 1.20 becomes the number 1.2 with the trailing zero gone.
Any value that would be misread is quoted automatically, so it loads back as the string it started as.
What happens to cell markup
Links, spans, line breaks and bold runs inside a cell are reduced to the text they display, and HTML entities are decoded, so the YAML holds the content of the page rather than its source.
Common use cases
- Lifting a reference table out of documentation into something you can work with.
- Capturing a report from a web admin panel that has no export button.
- Turning a wiki table into data you can sort, filter or load.
Frequently asked questions
How do I convert an HTML table to YAML?
Paste the page source or just the table element into the left panel. The YAML list appears on the right, ready to copy or download.
Why would I convert a table to YAML?
A table of rows is the same shape as a YAML list of mappings, which is what fixtures, seed data and many configuration files use. It saves retyping a reference table by hand.
Are types detected?
Yes. Numbers and booleans are written unquoted so they load with the right type. Values with leading zeros stay strings so identifiers are not damaged.
What about values YAML would misread?
Words like yes, no and on, along with bare dates and numbers with trailing zeros, are quoted automatically — otherwise YAML would load them as booleans, dates or a different number.
What happens to markup inside cells?
It is reduced to the text a reader would see, and entities are decoded first.
Is anything uploaded?
No. Everything runs in your browser.
Related tools
HTML Table to JSON Converter
This HTML to JSON converter turns a table on a page into an array of typed objects.
YAML to JSON Converter
This YAML to JSON converter parses YAML into JSON online, supporting anchors, aliases, and multi-document files.
HTML Table to CSV Converter
This HTML to CSV converter pulls a table off a page and gives you a spreadsheet file.