CSV to HTML Table Converter

Turn CSV into clean, accessible HTML table markup with a header row, scoped headings and an optional class and caption.

Processed on your device. Files are not uploaded

How to turn CSV into an HTML table

  1. Paste your CSV

    Paste or type it into the box, or press Try an example.

  2. Add a class or caption

    Both are optional. A class helps your stylesheet find the table.

  3. Copy or download

    Paste the table into your page.

Worked example

This is what CSV to HTML Table Converter gives for its own sample values. Open the tool above and change anything to try your own.

CSV

id,name,email,active,score
1,Ada Lovelace,ada@example.com,true,9.5
2,Linus Torvalds,linus@example.com,false,7
3,"Hopper, Grace",grace@example.com,true,10
Delimiter
Detect automatically
Class name (optional)
Caption (optional)

HTML

<table>
  <thead>
    <tr>
      <th scope="col">id</th>
      <th scope="col">name</th>
      <th scope="col">email</th>
      <th scope="col">active</th>
      <th scope="col">score</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>1</td>
      <td>Ada Lovelace</td>
...

About CSV to HTML Table Converter

Turn CSV into clean HTML table markup with a header row, scoped column headings and escaped text. A live preview shows how it will look.

FAQs

Is the markup accessible?

Yes. Header cells use scope="col", and you can add a caption.

Can I style it?

Add a class name, then style that class in your CSS.

Can I start from JSON?

Use JSON to HTML Table Converter.

Related tools