Text To HTML Table Generator

Email Extract Hash Generator URL Encode & Decode Text to HTML Table Text to HTML List UNIX Timestamp Calculator LED Resistor Calculator Mortgage Calculator
Email Extract Hash Generator URL Encode & Decode Text to HTML Table Text to HTML List UNIX Timestamp Calculator LED Resistor Calculator Mortgage Calculator

This page allows you to convert a block of comma (CSV) or tab (TSV) separated text into an HTML table.

This text can include data cut and pasted from Microsoft Excel and Word.

Paste your text into the text box below and click 'Convert'. If the first row contains column headings these will be marked using as <th> tags.

Separator :
First row is header :

HTML Table

Preview

Header 1Header 2Header 3
Test 1Test 2Test 3

HTML

<table border="1">
<tbody>
<tr><td>Header 1</td><td>Header 2</td><td>Header 3</td></tr>
<tr><td>Test 1</td><td>Test 2</td><td>Test 3</td></tr>
</tbody>
</table>

Example CSS

The table markup is fairly basic but you can use CSS to style the table. The following example stylesheet provides some basic formatting :

table {
font-size: 12px;
margin-left:auto;
margin-right:auto;
border-collapse: collapse;
}
table th {
font-size: 14px;
font-weight: bold;
border: 1px solid #999999;
padding: 0px 5px;
}
table td {
border: 1px solid #999999;
padding: 5px 5px;
}