Text to HTML Table Converter

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 :
Header 1Header 2Header 3
Test 1Test 2Test 3
<table border="1">
<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>
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: 10px;
  border-collapse: collapse;

table th {
  font-size: 12px;
  font-weight: bold;
  border: 1px solid #999999;
  padding: 0px 5px;

table td {
  border: 1px solid #999999;
  padding: 5px 5px;
Web Tools
A set of quick and basic online tools for web designers and software developers :