Skip to main content

Table to HTML

Turn Excel, CSV, or JSON into semantic HTML table markup. Processed locally in your browser without uploading the file.

  • Clipboard
  • Export

Embed this widget

Customize the result, check the live preview, then copy the code.

Preview

Embed code type

Code to copy

Responsive and automatically resized by Bethemesh.

Turn an Excel, CSV, TSV, or JSON table into semantic HTML table markup with a header and body.

Your files are processed locally in your browser and are never sent to our servers.

Drop your file here

Recommended size: up to 30 MB

Was this tool useful?

On this page

How does this tool work?

An HTML table presents information in rows and columns on a web page. This converter generates a table element from CSV, a spreadsheet or flat JSON without building a complete website. Headings go into thead as th cells, while records go into tbody as td cells. The result is a readable fragment for documentation or an application. Review its display context, accessibility and public data exposure before publishing it; conversion alone does not provide the surrounding page design.

Import CSV, TSV, XLSX, XLS or flat tabular JSON through the drop zone, limited to 30 MiB per file. Processing stays in the browser, but a large table can consume substantial memory and generate a heavy HTML fragment. Workbooks use the first sheet in this interface. Styles, macros and merged-cell layouts are not copied. Spreadsheet formulas do not become executable HTML: only read values are converted. Prepare clear headings so the output columns remain meaningful.

The engine collects columns in first appearance order, writes one header row and then one body row per record. Missing JSON properties, null and empty cells produce empty cell content. Numbers and booleans become text without extra currency or locale formatting. No records are aggregated or removed. Spaces and line breaks remain in the generated source, but their visible rendering may collapse under normal HTML rules and the receiving site’s CSS.

Ampersands, angle brackets, quotation marks and apostrophes are escaped in both headings and values. A cell containing <b>urgent</b> therefore appears as text rather than a bold instruction. Links, images and scripts stored in cells do not become active elements. The result contains table, thead and tbody without a full document, CSS, caption, ARIA attributes or responsive behavior. Copy the fragment or download HTML, then test it within the actual receiving page before publication.

How to use this tool

  1. Prepare publishable data

    Remove private information and unnecessary columns before conversion. Local processing cannot prevent disclosure if you later publish the generated fragment.

  2. Generate and inspect markup

    Import the intended file and convert it. Check headings, accented characters, empty cells and a record containing special characters.

  3. Test in the target page

    Add a useful caption and appropriate styles. Check narrow-screen and keyboard behavior before publishing; the downloaded fragment does not replace integration work.

Use cases

Publish a small reference

Turn product specifications or opening hours into a static table for an information page.

Document results

Insert checked values into technical documentation without manually rebuilding every row and cell.

Prepare a styled component

Use the fragment as a starting point for an application table, adding the accessibility context it needs.

Examples

Two stock records

Both headings become th cells; each product creates a tr containing two td cells.

Input

product;stock
Notebook;12
Pen;7

Result

<table>
  <thead>
    <tr>
      <th>product</th>
      <th>stock</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Notebook</td>
      <td>12</td>
    </tr>
    <tr>
      <td>Pen</td>
      <td>7</td>
    </tr>
  </tbody>
</table>

Markup remains text

The ampersand and angle brackets are escaped. Cell-supplied markup does not execute inside the table.

Input

label;note
A&B;"<b>urgent</b>"

Result

<table>
  <thead>
    <tr>
      <th>label</th>
      <th>note</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>A&amp;B</td>
      <td>&lt;b&gt;urgent&lt;/b&gt;</td>
    </tr>
  </tbody>
</table>

Tips and best practices

  • Add an informative caption in the receiving page and review header associations if the structure becomes complex. Generated markup alone does not guarantee complete accessibility for every context.
  • Limit visible columns on small screens or provide a suitable scrolling container. Conversion retains all data and does not choose a responsive layout strategy for you.
  • Clean or select columns before conversion when the source contains internal fields. Copying the resulting HTML into a public page exposes those field values to its visitors.

Sources and references

Frequently asked questions

Is the output a complete web page?

No. It contains a table element, header and body. It does not provide a doctype, head, stylesheet or navigation. Integrate it into an existing page and add the caption, styles and behavior appropriate to that setting.

Can cells retain active HTML?

No. Special characters are escaped so data displays as text. Tags, links and scripts remain content rather than becoming active elements. Add links through a controlled integration afterwards if needed instead of expecting cell markup to execute.

Why are line breaks less visible?

Characters remain in the source, but ordinary HTML rendering often collapses whitespace and line breaks. Conversion adds neither br elements nor a white-space rule. Adjust the receiving page’s CSS if those breaks carry meaning in your data.

Are files uploaded to a server?

No. Reading and generation happen in your browser. You control the downloaded fragment. Publishing it on a website subsequently exposes its content according to that site’s access rules, so inspect the data before making it available online.

Related tools

Tools similar or complementary to this one.

Works well with

Convert Excel, CSV, or JSON into a copy-ready Markdown table.

Data & spreadsheetsUse this tool

Generate SQL INSERT statements from Excel, CSV, or JSON.

Data & spreadsheetsUse this tool

Convert Excel, CSV, and other spreadsheet formats directly in your browser.

Data & spreadsheetsFeaturedUse this tool
GuideBest practicesBeginner

Split a CSV or Excel table into smaller files

Discover when to split a large table by row count or by a column value, and how to preserve a useful structure in every output file.

29 August 20262 min