CSV to HTML Table
Convert CSV (or other delimited) data into a self-contained HTML <table>. The first row becomes table headers and every following row becomes a table row. Optionally add minimal inline CSS for a tidy, readable table. Great for publishing data in web pages, emails, and Static-site templates.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Options
Your result will appear here
Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.
How it works
What comes out
Paste delimited text and the tool emits a self-contained HTML fragment: the first row becomes table header cells, every following row becomes a body row, and each value is HTML-escaped so angle brackets and ampersands cannot turn into markup. It is just the table with no html or body wrapper, ready to drop into a page, an email or a static-site template.
How the delimiter is applied
The parser uses exactly the separator you choose from comma, tab, semicolon or pipe, and choosing the wrong one collapses every row into a single column. Quoting follows RFC 4180: a quoted field may contain the delimiter and line breaks, and a doubled quote inside it is unescaped to one literal quote.
Plain or minimal styling
Plain emits a bare table with a thead. Minimal prepends a small style block that adds borders, padding and zebra striping, handy for email bodies, but the rules are not scoped, so several generated tables pasted into one page share them. The stats line reports the data row and column counts.
Row quirks and privacy
Blank lines are skipped, rows shorter than the widest row are padded with empty cells, and when the header row is narrower than the data the extra columns are titled Column N. There is no row limit on the paste, and the parse, escape and styling all run in the tab with nothing uploaded, so it works offline.
Questions
How does the parser handle quoted fields?
It follows RFC 4180: fields wrapped in double quotes may contain the delimiter and newlines, and doubled quotes inside a field are unescaped.
Is the output safe to embed?
Yes, every cell value is HTML-escaped, so special characters like <, >, and & are never interpreted as markup.
What do the two styles do?
Plain produces a bare <table> with headers in <thead>. Minimal adds a small inline <style> block with borders, padding, and Zebra striping so it looks clean without external CSS.
Can I change the separator?
Yes. Choose from comma, tab, semicolon, or pipe in the delimiter option. The parser detects the field separator exactly as configured.
Related tools
See categoryCSV to JSON
Parse CSV (RFC 4180) into a JSON array, with delimiter sniffing and type inference.
CSV to Markdown Table
Convert a CSV table into a clean GitHub-Flavored Markdown pipe table with optional alignment.
CSV Profiler
Profile a CSV file: per-column type inference, missing values, unique counts, and numeric stats.
HTML to Plain Text
Strip HTML tags to clean, readable plain text — entities decoded, block layout preserved.