CSV to HTML Table
Create an HTML table from spreadsheet-style CSV.
Also called: CSV to table, HTML table generator.
CSV to HTML Table
Create an HTML table from spreadsheet-style CSV.
Watch: how to use the CSV to HTML Table (12 seconds)
Recorded on a phone, steps written on screen, no sound.
About the CSV to HTML Table
Paste CSV or spreadsheet rows and get an HTML <table>, with the first row as the header if you want. Ready to paste into a website or email.
The table code
The first row can be the header (th cells in a thead) or an ordinary row; tick or untick First row is the header. Every cell is escaped, so &, < and quotes show as text and cannot break the page.
The table has no styles, so it takes the look of your website or CMS. Paste it into an HTML block in WordPress, Blogger or an e-mail editor; quoted values with commas stay in one cell.
How to use the CSV to HTML Table
- Enter your textType or paste CSV.
- Pick the optionsfirst row is the header (the defaults suit most uses).
- Press Run toolThe result appears right under the button.
- Copy or download the resultCopy text results with Copy output; when the tool makes a picture or file, use its Download button.
This tool works inside your browser: what you enter stays on your device.
Example
A sample input and the result the CSV to HTML Table gives for it (produced by the tool itself, not typed by hand).
- CSV
- name,city,orders Ali,Lahore,12 Sara,Karachi,7 Bilal,Dubai,15
Result:
<table>
<thead>
<tr><th>name</th><th>city</th><th>orders</th></tr>
</thead>
<tbody>
<tr><td>Ali</td><td>Lahore</td><td>12</td></tr>
<tr><td>Sara</td><td>Karachi</td><td>7</td></tr>
<tr><td>Bilal</td><td>Dubai</td><td>15</td></tr>
</tbody>
</table>Good to know
- What you need
- You type or choose: CSV
- Where it runs
- In your browser, on your device.
- Cost
- Free, no sign-up.
Questions
Can I style it?
Yes, add your own CSS classes.
Need Markdown instead?
Use CSV to Markdown Table.