CSV to HTML

Turns a CSV table into HTML table code: header row, numbers right-aligned, styling in a <style> block or attributes, plus a preview.

Paste a CSV table or open a file โ€” a table and its HTML code will appear below the field. The delimiter is detected automatically, and exports from Excel and 1C in Windows-1251 encoding are supported as well.

What goes into the code

  • the first row becomes the header inside <thead>;
  • columns that contain only numbers are aligned to the right;
  • the characters <, >, & and quotes are escaped, and a line break inside a cell turns into <br>.

Styles as a block or as attributes

A <style> block works well for a website. Some email clients and website builders strip such a block, so for those cases the styles are written into the style attribute of every cell.

To turn a table from a page back into CSV, use HTML to CSV.

Rate this tool

Help us get better

Other tools