Skip to main content

Accessible table generator

Turns CSV data into an HTML table with header cells and a short text description.

Last updatedHow we build & check our tools

Interactive Tool

Loading interactive tool…

Enter your values once it appears to see your results.

Results will appear here once the tool finishes loading. Everything runs locally in your browser.

What the generator builds

Paste CSV data (comma, semicolon, or tab separated) and the generator builds an HTML table you can copy or download: a caption element on top, the header row as th cells with scope="col" in a thead, body rows in tbody, and th scope="row" cells for row names when you tick "The first column holds row names". Cell text is escaped and rows with missing cells are padded so nothing breaks. The preview shows the table with your own header and row settings.

Alongside the HTML it warns about what makes tables unusable: no caption, no header row, empty header cells, the same header name used for two columns, ragged rows, and tables over 1,000 rows or 50 columns. It also writes a short plain-text description of the data — columns and the first rows in words — which you can use as the text alternative for a chart of the same data (WCAG 1.3.1 and 1.1.1).

From spreadsheet to published page

The typical flow starts in your spreadsheet: copy the data range, paste it here, and pick the separator your data uses. Quote any cell that contains the separator itself, such as "1,200", so it stays one cell. Type a caption that names the table ("Visitors by region"), tick the header options that match your data, and check the preview before copying or downloading.

The download is a table fragment, not a full page — paste it into your CMS's HTML block or hand it to whoever builds the page. If your first data row is really column names, tick "The first row is a header row" or use the add column names button and rename them; a table with no header cells fails WCAG 1.3.1 and should not be published. For chart data, copy the text description into the page near the chart as its text alternative — see how to describe a chart.

Where the generator stops

The generator is built for simple data tables, and it says so in its own output:

  • Complex tables are out of scope — merged cells and multi-level headers need id and headers markup and a design pass by hand; the tool produces neither.
  • The description is a summary — it lists the columns and the first rows, then stops; check that it reads as a fair stand-in for a chart, or write a fuller one yourself.
  • Data accuracy is yours — nothing here checks that the numbers are right, only that the table is usable.

Styling is left out on purpose: the HTML carries structure only — caption, th cells, scope attributes — so your site's own styles decide how it looks. The table rules guide covers when a simple table is the wrong shape for the data.

Frequently Asked Questions

Common questions about the Accessible table generator

Quote any cell that contains the separator, for example '1,200', and the parser keeps it as one cell — quoted fields, including newlines inside quotes, are supported. If your data uses a different character, switch the separator dropdown to semicolon or tab instead of reformatting the whole file.

Sources & References

Tables tutorial

Shows how header cells and scope make an HTML data table readable by screen readers.

Info and Relationships 1.3.1

Table structure must be in the code, not only in the visual layout.