Build, check, copy

HTML Table Generator

Turn plain text or spreadsheet data into a real HTML table. Edit the cells, choose the headers, then copy escaped markup with a caption and optional styling.

Runs in this browser tab. Up to 60 rows, 12 columns and 360 cells. No signup or data upload.

1. Import data or edit the sample

120,000 characters maximum. Select the separator. Quotes around a field allow separators and line breaks inside it; use two quotes for a literal quote. Text and spaces stay literal.

CSV, TSV or TXT only, up to 512 KiB. Choosing a file loads its text; Import data applies it. Imports replace the current grid and can be undone.

2. Edit your table

Each cell accepts up to 4,000 characters, with 100,000 total. Use Tab to move between fields and Enter for a line break. The grid scrolls horizontally on small screens.

3. Set headers and presentation

Up to 300 characters. Oversized text is retained for correction and prevents export.

A header describes the cells in its row or column. The first row is a header only when selected. Plain output still includes whitespace-preserving styles. No cell text is interpreted as HTML.

Preparing the sample table.

4. Preview and export

    Preview uses this site's fonts. Your site's CSS or editor may change the final appearance or remove inline styles. Verify the published table.

    Copy into an HTML block on your page. The download is a UTF-8 HTML fragment, not a complete document. Keep the whitespace styles to preserve visible spaces and newlines.

    How to make a useful HTML table

    1. Paste data and choose its separator, or edit the example. Import data replaces the grid. Use Undo last change to restore the preceding grid and table settings.
    2. Set the total rows and columns. Resizing keeps cells within the new rectangle. The discard option must be checked to remove nonempty cells.
    3. Add a short caption and select the header row or column that describes your data. Fill in empty header labels.
    4. Review the preview and table checks, then copy or download the HTML. Test it in the destination page, including keyboard navigation and screen-reader reading order.

    What the output means

    The generator uses table, caption, thead and tbody elements. Selected headers become th cells with scope="col" or scope="row". Other cells use td. Counts include the header cells. An empty or whitespace-only table has no export.

    Characters such as < and & are escaped. For example, typing &amp; produces that literal text in the rendered cell, not an ampersand. Line endings are normalized to LF; ordinary spaces, tabs, newlines, leading zeros and formula-looking text are otherwise preserved. Formulas are never calculated.

    Import rules and limits

    CSV follows the quoting conventions in RFC 4180, an informational format reference. Comma, tab and semicolon are separate, explicit modes. All use doubled quotes inside quoted fields. CRLF, LF and CR record endings are accepted. A final record terminator does not add a row; other blank rows remain data. Uneven row lengths are rejected unless padding is selected. Trailing separators create empty cells. Quotes inside unquoted fields, unfinished quotes and characters after a closing quote are rejected.

    Only UTF-8 CSV, TSV and TXT files are accepted. Import removes at most one initial BOM from pasted or file-loaded text. Additional, quoted and internal U+FEFF characters are preserved. Limits are 60 rows, 12 columns, 360 cells, 4,000 characters per cell, 100,000 cell characters in total, 120,000 import characters, 300 caption characters, 512 KiB per file and 800,000 output characters. Character limits count UTF-16 code units, so some symbols count as two. Local file reads time out after five seconds.

    Accessibility and supported tables

    Use this tool for simple rectangular data tables, not page layouts. It does not support merged cells, multi-level headers, row or column spans, source HTML import, spreadsheets such as XLSX, rich links or images. Complex tables need explicit relationships beyond this tool's options. Checks are reminders, not a WCAG certification. See the W3C guide to row and column headers and table captions.

    Privacy and saving your work

    The tool processes pasted text and local files in this tab. It makes no tool-specific network requests and saves no data to browser storage or the server. Shared site analytics are managed separately by the site. Copy or download before leaving; reloading loses your work. Exported content is visible wherever you publish it.