Developer tools TOOL
Table → HTML
Convert a table copied from a spreadsheet to HTML.
Enter your text
On-device processingTable → HTML · How to use
Convert a table copied from a spreadsheet to HTML.
Example
Copy a spreadsheet header and data rows together and convert them into an HTML table.
Things to know
Use tab-separated input. The first row is the header; HTML special characters in cells are escaped.
Your files and results are never sent to a server. Everything is processed in this browser.
How to turn a spreadsheet table into HTML table code
Use this when a blog post, internal wiki, or HTML email needs a table and writing every tag by hand is tedious. Paste a copied cell range and the header row becomes th cells while the remaining rows become td cells.
When to use this tool
- Add a price table in a blog or CMS HTML editor
- Move spreadsheet data into a web page table
- Insert a schedule into an HTML email template
- Carry cells containing < or & over without breaking markup
Step-by-step instructions
- In Excel or Google Sheets, copy the table range including the header row.
- Paste it into the input box. Cells are separated by tabs.
- Choose Convert.
- Copy the generated code or download it as table-to-html.html.
Frequently asked questions
Why do some characters appear as codes like é or 中?
Along with HTML special characters such as < and &, every non-ASCII character is written as a character reference, either named like é or numeric like 中. Browsers display the original character, so you can paste the code as is.
Are merged cells, font colors, or borders kept?
Only cell values are used, so merges, colors, and borders are not carried over. The output is a plain table with no class or style attributes, ready to be styled by your site's CSS.
Why do I get an error or a single column?
Every row must have the same number of cells as the header row, and up to 10,000 rows are converted. A blank line in the middle breaks that rule, and comma-separated CSV puts each whole line into one cell, so copy the range from the spreadsheet again to get tab-separated text.