PrivateCSV

Convert CSV to an HTML table

Turn CSV into clean HTML table markup.

CSV file

  • Nothing is uploaded
  • Free · no account
  • Tested on 400k-row files

Reference

CSV to HTML: how it works

The tool is above. Below: a short overview, optional step-by-step detail, honest browser limits, and answers to common questions.

Last updated 2 min read

About this tool

PrivateCSV converts a CSV file into an HTML table: clean, indented <table> markup with a <thead> of <th scope="col"> cells, every value escaped, line breaks kept and number columns marked for right alignment. Paste it into a website, a CMS or an email template, or tick “Complete HTML page” to get a styled page that opens in any browser. The conversion runs in your browser, so the data is not uploaded.

How to check that your file is never uploaded

Read the step-by-step guideHow-to, example and use cases (~2 min)

How to convert CSV to an HTML table

  1. Drop the CSV file on the picker or paste the CSV text.
  2. Optionally add a caption, and tick “Complete HTML page” if you want a file that opens on its own.
  3. Click Convert to HTML.
  4. Copy the markup into your page or CMS, or download the .html file.

Example

Two rows as an HTML table (table markup only).

team.csv
Name,Role
Ana,Lead
Ben,Ops & support
team.html
<table>
  <thead>
    <tr>
      <th scope="col">Name</th>
      <th scope="col">Role</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Ana</td>
      <td>Lead</td>
    </tr>
    <tr>
      <td>Ben</td>
      <td>Ops &amp; support</td>
    </tr>
  </tbody>
</table>

When you need it

Publish a table on a website or blog
WordPress (Custom HTML block), Webflow, Ghost and most CMSs accept table markup. Paste the <table> and style it with your site's CSS.
Tables in HTML emails
Email clients render HTML tables reliably. Paste the markup into your email template or newsletter tool's HTML block.
A quick report that opens in any browser
With the complete page option, the file opens with a readable layout in any browser and prints cleanly, without Excel.

The markup

  • Header cells use <th scope="col"> inside <thead>, so screen readers announce the column for every value.
  • &, <, > and quotes are escaped, so values like “A < B” or HTML snippets are shown as text and cannot break the page.
  • Line breaks inside a value become <br>.
  • Columns holding only numbers get class="num"; the complete page right-aligns them with tabular figures.
  • The optional caption is written as <caption>, the accessible way to title a table.

Browser and file limits (not a trial)

These are technical limits of running in your browser—device memory, encoding and what this tool does not do. They are not a free trial, account quota or paid plan. There is no subscription.

  • No inline styles are added to the bare table, so it takes the look of the page it is pasted into.
  • Up to 100,000 rows. Very long HTML tables are slow in browsers; consider splitting the file.

Frequently asked questions

How do I convert a CSV file to an HTML table?

Choose the CSV above and click Convert to HTML. You get a <table> with a header row and one <tr> per CSV row, with every value escaped. Copy it or download it as .html.

How do I display a CSV file on a web page?

Convert it to an HTML table here and paste the markup into the page. For data that changes often, a script that loads the CSV and builds the table is better, but for a fixed table static markup is the simplest and fastest option.

How do I add a CSV table to WordPress?

Convert the CSV here, copy the result, and paste it into a Custom HTML block in the WordPress editor. The table then uses your theme's table styles.

Related tools

Go further

Your files never leave your device

PrivateCSV runs this tool in your browser. No upload, no account, no trial and nothing to install.