CSV to HTML table code generator

Convert .csv and .txt file to HTML code for table


Choose or drag & drop .csv or .txt file
file_upload

Drag & drop file here

error Please select a file first cancel
description |
delete
Table Preview
...
Copy the HTML code for the table
...
Used styling (unnecessary)
<style>
    table {
        border-collapse: collapse;
    }

    table td, th {
        border: 0.0625rem solid #ccc;
        padding: 0.5rem;
    }
</style>

How to

To create a table, the text must be well prepared.

Text format

To create a table, the text must be in rows one after another according to the table rows, to divide the row into columns separate the text with commas, to create blank fields use more commas.

See the following example, this table is created from the given text, with one field left blank separated by an extra comma.

Text example in .csv and .txt file
S.,Name,Age,Address
1,Adil,22,UAE
2,John,34,USA
3,Jane,,UK
4,Amit,25,India
Result of text example
S. Name Age Address
1 Adil 22 UAE
2 John 34 USA
3 Jane UK
4 Amit 25 India

Ready to use Coding Templates

We've created some usable coding templates that you can use to save your valuable time and can improve your website.

HTML Structure Template

A simple HTML structure template, you can start creating your first HTML page with this template.

CSS templates

With these some basic CSS templates you can learn how to style your document.

Owl Carousel or Slider

With these some basic CSS templates you can learn how to style your document.

Related Articles

Question Answer and Communication

Have a question?

If you have any coding related question in your mind then check the Q&A series or ask a new question.

Say hello to the community

Visit the community page to interact with the coding community.

Share this page: