CSV to HTML Table Converter

Paste CSV or choose a file and get the HTML for a table, with a live preview. Your data stays in your browser.

  • Runs in your browser
  • No sign-up
  • No watermark

This tool reads CSV (comma, semicolon, tab or pipe separated, with quoted fields and line breaks inside cells) and writes a plain HTML table. You can mark the first row as the header, add a class name to the table, wrap it in a div, and choose the indentation. Characters such as &, < and quotes in your data are escaped, so the result is safe to paste into a page.

The output is only the table markup. It has no styling, no sorting and no scripts, so style it with your own CSS. Files up to 50 MB are accepted, but a table with many thousands of rows makes a very long page, so consider paginating it. The preview shows the first 30 rows; Copy and Download include every row. Nothing is uploaded.

How to use CSV to HTML Table

  1. Choose a CSV file, or paste the CSV text into the box.
  2. Pick the delimiter (or leave it on automatic) and set the header, class name and wrapper options.
  3. Check the source and the rendered preview.
  4. Select Copy to paste the HTML into your page, or Download to save an .html file.

Frequently asked questions

Is my CSV uploaded anywhere?

No. The conversion runs in your browser and the data is never sent to a server.

Is the HTML safe to paste into a web page?

Cell text is escaped (ampersands, angle brackets and quotes), so data cannot add tags or scripts to the table. Class names are limited to letters, digits, hyphens and underscores. You are still responsible for where you place the result on your site.

What about line breaks inside a cell?

Quoted cells with line breaks are read correctly. By default each line break becomes a br tag in the HTML, and you can switch that off to keep the break as plain whitespace.

Does it add styling or borders?

No. You get plain table, thead, tbody, tr, th and td elements. Add the class name you want and style it in your own stylesheet.

What happens to rows with missing cells?

Short rows are padded with empty cells so every row has the same number of columns, and the tool tells you how many rows needed it.

How large a file can I use?

Up to 50 MB. Very large tables work, but the browser may be slow to show the preview, which is limited to the first 30 rows.

Why are the first characters of my file odd?

Files saved as UTF-8 with a byte order mark are handled, as is UTF-16. If a file is not valid UTF-8 it is read as Windows-1252 and you are told.