CSV

CSV to HTML Table Converter

Converts delimited rows into semantic HTML table markup with escaped values.

Loading the tool…

Processing happens locally in your browser. What you paste or load is processed by this page and is not uploaded to a server. Nothing is stored unless you use a control that says it stores something, and you can clear anything this site has kept from the privacy page.

How to use this tool

  1. Paste the CSV.
  2. Add a class attribute if your stylesheet needs one.
  3. Generate the markup and copy it into your page.

What csv to html table does

The markup produced here is deliberately plain: a table element with a thead and a tbody, a th for each header and a td for each cell, and an optional class attribute so your own stylesheet can take it from there. No inline styles, no wrapper divs and no framework-specific attributes, because those are far easier to add than to strip out.

Every value is escaped for HTML, so ampersands and angle brackets in the data appear as text rather than being interpreted as markup. That is the difference between a table that renders correctly and one where a stray less-than sign swallows the rest of the row, and it is the part that is easy to forget when generating markup by hand.

Frequently asked questions

No. It writes a plain table with thead and tbody and an optional class attribute, so your own stylesheet decides how it looks.

Yes. Ampersands and angle brackets in the data are escaped so they appear as text rather than being read as markup.

The markup is valid, but email clients need inline styles rather than a class, so you would have to add those yourself.