1xA2ZOne Data. Any Format.
Live syncLocal-first · no data upload

Convert CSV to HTML

Paste your CSV into Quick paste and the HTML tab returns a <table> with the header row inside <thead>. Copy the markup into a web page, a CMS or an email template.

Runs entirely in your browser. Your data is never uploaded. Tiếng Việt

01

Spreadsheet

SheetsExcelCSVTSV
✦ Quick pasteSheets / Excel, CSV, TSV, Markdown, JSON, HTML, LaTeX, wiki…
0 rows · 0 columnsSelected cell: A1
02

Live Output

Markdowntwo-way
SyncedEdit directly; the table on the left updates itself
0 characters
Every change is processed right in your browserReady · LocalUTF-8 · by xuanhieu.org

When you need to convert CSV to HTML

You turn CSV into HTML to show a product list, a price table or a system export on a page that has no table tool. CSV carries no types or styling, so you get a plain table and your own CSS does the prettying. Characters like <, > and & inside cells must be escaped so they cannot break the page.

How to do it

  1. Paste the CSV into Quick paste and press Load into table ↵, or press Import file and choose a .csv file.
  2. Check the grid: the first row should be the column names and the column count right. If everything is in one column, the file's delimiter is not what you expected, so look at the source.
  3. Open the HTML tab and ⚙ Options to switch <thead> on, set a class or minify.
  4. Press Copy result and paste into your page source, or Download file to save an .html file.

A real example

The cell Keyboard | mechanical keeps its pipe because in HTML that is ordinary text. Column names sit in <th> inside <thead>, and a price like 145.00 stays text exactly as written.

Input · CSV

SKU,Product,Price,Stock
KB-01,Keyboard | mechanical,145.00,21
MS-04,Wireless mouse,29.90,47
MN-24,24-inch monitor,325.00,8

Result · HTML

<table>
  <thead><tr><th>SKU</th><th>Product</th><th>Price</th><th>Stock</th></tr></thead>
  <tbody>
    <tr><td>KB-01</td><td>Keyboard | mechanical</td><td>145.00</td><td>21</td></tr>
    <tr><td>MS-04</td><td>Wireless mouse</td><td>29.90</td><td>47</td></tr>
    <tr><td>MN-24</td><td>24-inch monitor</td><td>325.00</td><td>8</td></tr>
  </tbody>
</table>

Options worth changing

Use <thead> and <th>
Keep it on when the CSV's first row holds column names, so screen readers and CSS can recognise the header. Turn it off for data-only CSV.
<table> class
Enter your framework's class such as table or table table-striped. Leave it empty if your page styles the bare <table> tag.
Minify
Strips newlines and indentation, which is handy inside an email template or a single-line field. Leave it off while you still read and edit the markup.

Common problems

Limits

Frequently asked questions

Is this HTML safe to put on a page?

Cell content is escaped (<, >, &, double quotes), so text in the CSV cannot inject tags or scripts into the table.

How do I get a striped Bootstrap table?

Type table table-striped in the table class field under ⚙ Options. Your page must load Bootstrap's CSS for the class to take effect.

My CSV uses semicolons. Is that a problem?

The Quick paste box only splits on tabs or commas, so a semicolon file lands in one column. Open the CSV tab, pick semicolon under Delimiter in ⚙ Options, then paste the file into the result box on the right (select all there and paste).

Can I convert HTML back to CSV?

Yes. Paste HTML that starts with <table into Quick paste; the first <table> is read (text only), then open the CSV tab.

Does my CSV leave my computer?

No. Every step runs in your browser.

Related conversions

1xA2Z · Guide

Table statistics