HTML Table Generator

Fill in the grid and copy real HTML: a table with a thead, a tbody and th cells for the header. You can add a class for your own styles and wrap the whole thing in a div for horizontal scrolling.

From

The only part of this site that uses a server. The address is sent to it so the page can be fetched, because a browser is not allowed to fetch someone else's page itself. Your own files are never involved.

Nothing here is uploaded. The parsing happens on this page.
Edit
Paste or upload something above and it will appear here.
ToDataMarkupDocumentsCodeSchemasImages

The output will appear here once there is a table to convert.

Semantic markup, not a grid of divs

A table element with th cells tells a screen reader that the first row labels the columns, so a cell can be read as its column name followed by its value. A grid built from divs tells it nothing, and the same content becomes a stream of unlabelled numbers.

It also means the table is styleable with plain CSS selectors and sortable by any script that expects a table, rather than needing everything wired up by hand.

Escaping

Angle brackets, ampersands and quotes in your data are escaped on the way out. A cell containing <script> is written as &lt;script&gt; and shows on the page as text rather than running. Copying unescaped user data into a page is one of the older ways to introduce a cross-site scripting bug.

Making it fit on a phone

A wide table will push a page sideways on a narrow screen. Wrapping it in a div with overflow-x set to auto keeps the scrolling inside the table instead of moving the whole page. That is what the wrap option produces.

Questions

Does it add inline styles?

No. The markup is unstyled so it inherits from your stylesheet. Add a class in the options and target that instead, which keeps the presentation where the rest of your presentation lives.

Can I generate a table without a header row?

Yes. Turn the header option off and you get a tbody only. Use that when the first row is data rather than labels.

Already have the data somewhere else?

Other generators