Text to HTML Table Converter
Introduction

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.

Text
Separator : First row is header :
 
HTML
Preview
Header 1Header 2Header 3
Test 1Test 2Test 3
HTML
<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>
</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: 10px;
  margin-left:auto;
  margin-right:auto;
  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 :