About this tool
Type into the grid to build a table, or paste cells copied from Excel, Google Sheets, Numbers, a CSV file or a Markdown table, and get clean, accessible HTML with matching CSS. The preview shows exactly what the code produces.
How to use it
- Edit cells directly. Use the buttons to add or remove rows and columns, and Tab to move between cells.
- Or open Paste data, paste your cells and click Load into table. Tabs, commas, semicolons and Markdown pipes are detected automatically.
- Choose headers, a caption and a style, then copy the HTML and CSS.
Accessible tables
Screen readers announce a cell’s headers as you move through a table, but only when the markup says which cells are headers. The generator uses <th> for header cells with scope="col" or scope="row", puts the header row in <thead>, and adds a <caption> when you give one. Cell text is HTML-escaped, so characters like < and & display correctly.
Tables on phones
Wide tables overflow small screens. Turn on Scroll wrapper to wrap the table in a <div> that scrolls sideways, which keeps the page itself from scrolling horizontally. Use tables for tabular data only; for page layout, use CSS Grid or Flexbox.
FAQ
How do I make a table in HTML?
Use <table> with a <tr> for each row, <th> for header cells and <td> for data cells. This generator writes that markup for you from the grid.
Can I paste from Excel or Google Sheets?
Yes. Copy the cells, open “Paste data”, paste and click Load. Tab-separated, comma-separated, semicolon-separated and Markdown tables all work.
How do I make a table responsive?
Turn on “Scroll wrapper”. The table scrolls sideways inside its container on narrow screens instead of breaking the layout.
What does scope do?
scope="col" or scope="row" on a <th> tells screen readers which cells the header applies to, so the right header is read with each cell.
Is my data stored?
No. Everything stays in your browser and is cleared when you leave the page.