CSV → HTML Table
Convert CSV into a semantic HTML table with <thead> and <tbody>, escaping special characters. Optional custom CSS class.
HTML:
—
Pasted spreadsheet, table ready to ship
You have forty rows of a spreadsheet and you need them on a page, in an email, or inside a CMS that only takes HTML. Typing tr and td forty times is the kind of chore nobody should do by hand. Paste the CSV and get back a table with separate thead and tbody, indented and ready for your template. The field ships with a filled example so you can see the output shape right away.
The first line always becomes the header. The parser follows RFC 4180 quoting, so Rio, RJ inside quotes stays a single cell, and two consecutive quotes collapse into one literal quote in the text. Ampersands and angle brackets are escaped, so a cell with a tag typed inside it shows up as text in the table instead of turning into markup and breaking the table around it. Fully empty lines are dropped.
The separator is hardcoded to a comma. Excel in locales that use a decimal comma, Brazil included, saves CSV with semicolons, so convert before pasting. Be careful replacing ; with , in a text editor: cells that already contain a comma have to be quoted, otherwise the column splits in half. Rows with fewer fields than the header are not padded, they come out with fewer td and the table goes crooked.
Frequently asked questions
Does it handle semicolon-separated files?
Can I get a table with no header row?
Do accented characters need HTML entities?
Related Tools
JSON to HTML Table Converter
Convert an array of JSON objects into a ready HTML table, with header and rows. Paste the JSON and copy the code to drop straight into your page or email.
CSV to Markdown Table
Convert CSV to a Markdown table ready for READMEs, docs and Wikis. Auto-detects separator (comma, semicolon or tab) and supports per-column alignment. Everything in your browser.
CSV ↔ NDJSON
Two-way conversion between CSV and NDJSON (Newline Delimited JSON), preserving numeric types when detected.
TSV → Markdown Table
Convert TSV (tab-separated) to a GFM Markdown table with configurable alignment (left, center, right).
HTML to JSX
Convert HTML to React JSX automatically. Transforms class→className, for→htmlFor, converts attributes to camelCase and closes void tags.
CSV → JSON Lines
Convert CSV to JSONL (one JSON object per line). Common format in logs, ML pipelines and document databases.