⚡
usefultools.dev
⊞

CSV to HTML Table Converter – with Preview

NOVO

CSV to HTML table converter: turn CSV or TSV into clean, escaped <table> code with thead, class names or inline styles, plus a live preview. Free, in-browser.

Funciona 100% no seu navegador — o que você insere nunca é enviado nem armazenado nos nossos servidores.

Esta ferramenta ainda não está totalmente traduzida, por isso parte do texto continua em inglês. A ferramenta funciona da mesma forma em todos os idiomas.

Preview (3 rows)

CityCountryPopulationNote
TokyoJapan37400068Largest metro area
DelhiIndia28514000Includes "NCR" suburbs
São PauloBrazil21650000<b>escaped</b>
⚡

Exemplos rápidos

Entradas típicas e os resultados que esta ferramenta gera.

Header
a,b 1,2
<table><thead><tr><th scope="col">a</th>…
Escaped
x <b>
…<td>&lt;b&gt;</td>…
No header
"a,b"
<table><tbody><tr><td>a,b</td></tr></tbody></table>
Semicolon
n;m 1;2
…<th scope="col">n</th><th scope="col">m</th>…
📖

Visão geral

This CSV to HTML table converter turns comma-, semicolon-, tab- or pipe-separated data into ready-to-paste <table> markup. The first row can become a <thead> with <th scope="col"> cells, you can add class names such as a Bootstrap or Tailwind table class, or switch on minimal inline styles so the table has borders and padding in an email or a CMS that strips CSS.

It follows RFC 4180, so quoted fields with commas, doubled quotes and line breaks are read correctly, and the delimiter is detected for you. Every cell is HTML-escaped, which means a value like <script> shows as text instead of running, both in the code and in the live preview.

Bloggers, support teams and developers use it to publish spreadsheet exports on a web page. Conversion happens in your browser; the data is not uploaded.

Por que usar esta ferramenta?

  • Paste CSV, get valid HTML instantly
  • Handles quotes, commas and multi-line cells
  • Escapes every cell to prevent broken markup
  • Optional thead, classes and inline styles
  • Private: no upload
⭐

Recursos

🔍

Delimiter detection

Recognises comma, semicolon, tab and pipe, or let you pick one manually.

📑

RFC 4180 parsing

Quoted fields, "" escapes and line breaks inside quotes are handled; short rows are padded.

🏷️

Header and classes

Optional <thead> with scoped <th> cells and any class names on the <table>.

🎨

Inline styles

One click adds border and padding styles that work in emails and locked-down editors.

👁️

Safe live preview

See the table rendered as you type, with every cell escaped.

💾

Copy or download

Copy the code or download it as table.html, indented or on one line.

🛠️

Como usar

1

Paste CSV or TSV

Paste your data into the CSV or TSV data box, or press Sample.

2

Check the delimiter

Auto-detect shows what it found; pick another one if needed.

3

Set the options

Toggle the header row, add a class, inline styles or indentation.

4

Copy the HTML

Check the preview, then press Copy or Download.

🤔

Perguntas frequentes