CSV to HTML Table – Convert CSV Data to Copyable HTML Table Code
Paste CSV, TSV or spreadsheet-copied text, or open a .csv / .tsv / .txt file, and press Generate: the HTML table code appears — the <table> source itself, ready to copy or download as an .html file and paste into a web page. One-time conversion, no install, nothing uploaded.
Files up to 10 MB are read locally as UTF-8 text. The output is HTML source code to paste into a web page — not a visual preview of the table, and the table cannot be edited here after generating.
What this CSV to HTML table converter does
Turning CSV into an HTML table by hand means wrapping every single cell in its own tags, keeping the rows straight, and escaping anything that looks like markup — one raw < or & in the data and the page breaks. This converter does the mechanical part for you: it parses the data with full CSV quoting rules, HTML-escapes every cell, and emits clean, indented <table> source code — one line per row — that you paste straight into a web page, CMS, documentation or HTML email.
How to use it
Code you paste, not a table you look at
The output is HTML source code — the markup as text in a code box, with Copy and Download buttons. It is not a visual preview: this page does not render your table, and the table cannot be edited here after generating. Paste the code into your own page and the browser does the rendering. Every cell is escaped on the way out, so data that happens to contain <script> or other markup arrives as visible text, never as executable HTML.
Three CSV tools, three jobs
Just want to read and search the data? The CSV Viewer opens or pastes a CSV, shows it as a table with a Find box, and downloads the original unchanged — it never produces code. Need to fix cells, add or remove rows and columns before exporting? That is the Markdown Table Generator's job — its table stays editable. This page sits between them: a one-time conversion that turns the data directly into HTML table code, with nothing to manage in between.
Input and output
Input: pasted CSV, semicolon-separated CSV or tab-separated text (a range copied from Excel or Google Sheets) up to 500,000 characters, or a .csv / .tsv / .txt file up to 10 MB read locally as UTF-8. Quoted cells, delimiters inside quotes and line breaks inside quoted cells are all respected. Output: indented <table> code — the first row becomes a <thead> of <th> cells when "First row is a header" is ticked, every other row is a <tr> of <td> cells, in-cell line breaks become <br>, and <, >, & and quotes become entities. Striped rows adds a background colour to every second data row; bordered table adds a border attribute with collapsed borders — both ride along in the code, so no CSS of your own is needed.
Limitations
- The output is code only — there is no visual preview of the rendered table on this page.
- One-time conversion: the table cannot be edited here after generating — use the Markdown Table Generator when you need to edit.
- Maximum input size: 500,000 pasted characters or a 10 MB file.
- Styling covers the striped and bordered options only — no custom CSS classes or per-column alignment in this version.
Turn this CSV data into a Markdown table instead
Need Markdown rather than HTML? The Markdown Table Generator converts the same CSV or Excel data into an editable Markdown table, and the Excel / CSV to Markdown converter gives you a one-time conversion with no editing step — handy when the data is headed for a README, a pull request or documentation instead of a web page.
Frequently asked questions
What does this CSV to HTML table converter do?
It converts delimited text into ready-to-paste HTML table code in one step: paste CSV / TSV text (a range copied from Excel or Google Sheets works too) or open a .csv / .tsv / .txt file, choose the header, striped and border options, press Generate, and copy or download the <table> source code.
How do I convert a CSV file to an HTML table?
Open the .csv file (up to 10 MB, UTF-8) or paste the text into the box. Keep "First row is a header" ticked when the first row names the columns, press Generate HTML Table, then use Copy HTML and paste the code into your web page, CMS, documentation or HTML email.
Is the output a table I can see, or code?
Code. The output box shows the HTML source — the <table>, <tr> and <td> markup itself — as plain text you copy or download as an .html file. Nothing is rendered as a visual table on this page; your browser renders the table once you paste the code into a web page.
What do the striped rows and bordered table options do?
Striped rows adds a light background colour to every second data row, and bordered table adds a border attribute with collapsed borders. Both travel inside the generated code, so the table looks right pasted into any web page — no stylesheet or CSS class of your own is required.
What is the difference between this tool and the CSV Viewer?
The CSV Viewer is for reading data: it opens or pastes a CSV, shows it as a table you can search, and hands the original file back unchanged. It never produces HTML. This page is the opposite direction — it does not display your data as a table at all; it produces the HTML table code for putting your data on a web page.
What is the difference between this tool and the Markdown Table Generator?
The Markdown Table Generator converts CSV or Excel data into a Markdown table and keeps it editable — fix cells, add or delete rows and columns, switch the header — before exporting Markdown. This page is a one-time conversion to HTML code with no editing step. Editing a table is the generator's job; getting HTML table code is this page's.
My CSV has no header row — what happens?
Untick "First row is a header" and every row stays a data row in <td> cells. Unlike the Markdown export, HTML tables do not require a header row, so no header cells are invented — you get exactly the rows your data has.
Is the generated code safe to paste into my site?
Yes. Every cell is HTML-escaped: <, >, & and quotes become entities, so data that looks like markup (a cell containing <script>) arrives as visible text, never as executable HTML. Quoted commas and line breaks inside quoted cells are respected, and in-cell line breaks become <br>.
How much CSV can it convert?
Pasted text up to 500,000 characters, or a file up to 10 MB. Both limits are enforced with a clear message before conversion starts; split larger data into parts.
Is my CSV uploaded anywhere?
No. Reading files, parsing and code generation all run locally in your browser. Nothing is sent to a server, and closing the tab erases the data.