HTML Table Generator
Build HTML, Markdown, and CSV tables visually and copy the code with one click.
How to use HTML Table Generator
Frequently Asked Questions
What table formats does the generator output?
Three formats: HTML (using standard table, thead, tbody, tr, th, and td tags), Markdown (using the pipe-and-dash syntax used by GitHub, GitLab, and most Markdown processors), and CSV (plain comma-separated values for spreadsheet import). Switch between them using the format tabs — the table content stays the same, only the output syntax changes.
Can I import existing data into the table builder?
Yes. Paste CSV data into the CSV import field and the table grid fills automatically — each comma-separated column becomes a column, each line becomes a row. You can also paste tab-separated data (TSV) from a spreadsheet copy-paste, which the tool detects and parses correctly.
Does the HTML output use inline styles or CSS classes?
By default, the HTML uses inline styles for borders, padding, and width so the table works immediately without any external CSS. If you prefer class-based styling, enter a class name in the settings panel — the output will add that class to the table element and remove inline styles, letting you control appearance through your own stylesheet.
Can I merge cells (colspan or rowspan) in the generated table?
Basic cell merging is available by selecting a cell and setting its colspan or rowspan value in the cell properties panel. The HTML output correctly adds the colspan and rowspan attributes, and adjacent cells are removed from the output to account for the merge. Markdown does not support cell merging natively, so merged cells fall back to standard output in Markdown mode.
How do I make a sortable table from the generated HTML?
The generated HTML is a static table. To make it sortable, add a JavaScript sorting library like DataTables or Tablesort after your HTML. Link the library script, add the appropriate class or data attribute to your table element, and the library handles click-to-sort on column headers. The generated HTML structure is compatible with both libraries without modification.
Recommended
Related Tools
CSV to JSON Converter
Convert CSV files to JSON instantly — handles headers, custom delimiters, and nested output.
Data Converter
Convert JSON, CSV, XML, YAML, and TOML between any format instantly in your browser.
JSON Formatter
Format, validate, minify and analyze JSON with syntax highlighting and stats.