How to use
- Copy a table from Excel or Google Sheets.
- Paste it into the input box.
- Click "Convert" to generate the HTML TABLE code.
🎯 Use Cases
- Paste an Excel table into a blog or forum post
- Generate table HTML for an email newsletter
- Insert a data table into a static web page
Example
Input
Name Role Alice Engineer
Output
<table>
<tr>
<th>Name</th>
<th>Role</th>
</tr>
<tr>
<td>Alice</td>
<td>Engineer</td>
</tr>
</table>Pasting a two-row tab-separated table with "Treat first row as header (th)" enabled turns the first row into th cells and the rest into td cells. Any special characters in a cell (<, >, &) are automatically escaped to HTML entities.
How pasted data converts
Copied cells arrive as tab-separated columns and newline-separated rows — the same structure maps directly onto HTML table tags.
| Element | Role |
|---|---|
<table> | Container wrapping the whole table |
<tr> | One pasted line = one table row |
<td> | Regular data cell |
<th> | First row becomes header cells when the "header row" option is on |
FAQ
- Is cell formatting (color, bold) preserved?
- No. Only the text content is converted — cell formatting is not carried over.
- How do I stop the first row from becoming a header?
- Uncheck "Treat first row as header (th)" and every row will be converted as regular data (td).
- Is the pasted data sent to a server?
- No. It's converted entirely in your browser.
- Does Google Sheets work too?
- Yes — Sheets, Numbers and Excel all paste as tab-separated text, so they convert the same way.
- What if a cell contains a newline?
- A newline is read as a row break, which can shift the table. Clean multi-line cells before copying.
More Coding Tools
📘
JSON Formatter
Prettify, validate & minify JSON
🗓️
Timestamp Converter
Convert Unix timestamp ↔ date
🧩
JSON String Encoder
Convert text ↔ JSON string literal
✨
JS/CSS Formatter
Indent & tidy JS/CSS code
✂️
JS/CSS Minifier
Strip comments & whitespace
🧽
HTML Formatter
Indent HTML by tag structure
🧹
XML Formatter
Indent XML by tag structure
🗃️
SQL Formatter
Break SQL into clauses & indent
🔣
HTML Entity Encoder
Convert special chars ↔ HTML entities
⛓️
Link Extractor
Extract href/src links from HTML
🎨
Color Picker
Get HEX, RGB & HSL color codes
🐘
PHP Syntax Checker
Check bracket/string pairing (practical checker)
🗄️
MySQL Syntax Checker
Check bracket/quote pairing (practical checker)
🔍
HTML5 Validator
Check tag pairing, duplicate id, missing alt
✍️
Online HTML Editor
Write & edit HTML visually