DEVELOPER & DATA

HTML Table Generator

CSV, TSV or Markdown text into an HTML <table> with thead, tbody, tfoot, caption, row headers, right-aligned numeric columns — cells escaped — with a preview.

Indented, escaped HTML table markup ready to paste, a rendered preview, the row and column counts, which columns were treated as numeric and any ragged rows padded.

Example: Name,Qty,Price / Apple,3,1.20 / Pear,10,0.95 with a footer row Total,13,13.10 → <thead> with scope="col" headers, Qty and Price right-aligned, a <tfoot>, and <x> escaped as &lt;x&gt;.

v0.1.0 · last reviewed 22 September 2026
Loading the workspace…
BUILT TO BE UNDERSTOOD

Escaped cells,
semantic markup.

How the data is split, what markup is produced, and why numbers are right-aligned.

Reading the data

Rows are lines; cells are split on the delimiter you pick or, on auto, the one most frequent in the first line (tab, pipe, semicolon, comma). Double-quoted CSV cells may contain the delimiter. A Markdown table works as pipe input — the |---|:--:| separator row is dropped. Rows shorter than the widest are padded so the table stays rectangular, and the page says how many.

The markup

The first row becomes <thead> with <th scope="col"> cells, the last row optionally <tfoot>, everything else <tbody>; with row headers the first cell of each body row is <th scope="row">. A caption, id and class are added when given. Every cell and attribute is HTML-escaped (& < > "), so pasted data cannot inject markup — which is also why the preview can be rendered safely from the generated string.

Numbers and styling

A column whose non-empty body cells all look like numbers (digits, thousands separators, a decimal point, an optional currency sign or %) gets align="right", the convention that makes figures comparable at a glance. No other styling is emitted; the inline border option exists for pasting into places without a stylesheet (e-mail, CMS fields). Nothing leaves the browser; the same four anonymous usage counts as the rest of the site apply.

SOURCES

  • HTML Living Standard table model: <caption>, <thead>/<tbody>/<tfoot>, <th scope>; cells escaped (& < > "); numeric detection by pattern on the body cells

Last reviewed 22 September 2026. How results are checked: How we verify.