CSV to HTML Table
Generate an escaped HTML table from CSV with an optional header and caption. Inspect a sandboxed preview before copying.
Preview
How to use
Each CSV row becomes a table row. Enable the header option to put the first row in thead with th cells; other rows use tbody and td. A caption adds a table title without changing the data.
Cell contents and the caption are HTML-escaped. A cell containing <script> is displayed as text, not executed. The preview is isolated in a sandbox with no scripts, forms or external resource loading.
Behavior and limits
The output is semantic table markup without inline styling, ready for your own stylesheet. Ragged rows are padded with empty cells. Limits: 200,000 source characters and 100,000 cells.
Questions & answers
Will links in cells become clickable?
No. Cell values remain text. Add trusted link markup separately when editing your final HTML.
Is my input sent to a server?
No. Processing runs in your browser and input is not submitted to an API. Original files and remote databases are not modified.
Other Languages
References
How we make sure
We check this tool with the automated test suites linked below. Example checks are shown in their original language.
- Verification method
- Check escaping of cell, caption and attribute content instead of creating executable markup.
- Comparison reference
- Explicit table fixtures and output-HTML assertions.
- Verification scope
- These samples and boundaries do not prove correctness for every input.
Test source and cases (select a file to read it)
-
data-tools.test.js
- CSV-to-HTML escapes cell content, attributes and captions instead of creating executable markup
These checks cover the listed examples and boundaries, not every possible input. Round trips and checks using the same library are not independent verification.