Text to HTML & Markdown Table Converter

Data can be split on different characters and rendered as an HTML, ASCII or Markdown table with an optional header row.

Input: TextResult: HTML with a sandboxed preview

Text input

Tool options

Examples

Turn quoted address rows into a Markdown table

Quoted commas belong to a cell, rather than starting a new column.

Input

Name,Age,Address
"Doe, John",30,"New York, NY"
"Smith, Jane",25,"Los Angeles, CA"

Expected answer

| Name        | Age | Address         |
| ----------- | --- | --------------- |
| Doe, John   | 30  | New York, NY    |
| Smith, Jane | 25  | Los Angeles, CA |
Cell delimiters
,
Row delimiters
Make first row header
On
Format
Markdown
Make an ASCII comparison of inner-planet moon counts

Input

Planet	Moons
Mercury	0
Venus	0
Earth	1
Mars	2

Expected answer

+---------+-------+
| Planet  | Moons |
+---------+-------+
| Mercury | 0     |
| Venus   | 0     |
| Earth   | 1     |
| Mars    | 2     |
+---------+-------+
Cell delimiters
Row delimiters
Make first row header
On
Format
ASCII
Create an HTML table from pipe-separated race splits

Input

Leg|Distance km|Minutes
Swim|1.5|30
Bike|40|80
Run|10|50

Expected answer

<table class='table table-hover table-sm table-bordered table-nonfluid'><thead class='thead-light'><tr><th>Leg</th><th>Distance km</th><th>Minutes</th></tr></thead><tbody><tr><td>Swim</td><td>1.5</td><td>30</td></tr><tr><td>Bike</td><td>40</td><td>80</td></tr><tr><td>Run</td><td>10</td><td>50</td></tr></tbody></table>
Cell delimiters
|
Row delimiters
Make first row header
On
Format
HTML
Keep a quoted line break inside a notes cell

The line break inside the quotation marks remains inside one cell.

Input

ID,Note
1,"First line
Second line"
2,Ready

Expected answer

<table class='table table-hover table-sm table-bordered table-nonfluid'><thead class='thead-light'><tr><th>ID</th><th>Note</th></tr></thead><tbody><tr><td>1</td><td>First line
Second line</td></tr><tr><td>2</td><td>Ready</td></tr></tbody></table>
Cell delimiters
,
Row delimiters
Make first row header
On
Format
HTML
Render a headerless semicolon log as an ASCII table

Input

200;GET;/health
404;GET;/missing

Expected answer

+-----+-----+----------+
| 200 | GET | /health  |
| 404 | GET | /missing |
+-----+-----+----------+
Cell delimiters
;
Row delimiters
Make first row header
Off
Format
ASCII
HTML cells escape active markup

Input

<img src=x onerror=alert(1)>,safe

Expected answer

<table class='table table-hover table-sm table-bordered table-nonfluid'><tbody><tr><td>&lt;img src=x onerror=alert(1)&gt;</td><td>safe</td></tr></tbody></table>
Cell delimiters
,
Row delimiters
\r\n
Make first row header
Off
Format
HTML

Supports the CSV (Comma Separated Values) file format by default. Change the cell delimiter argument to \t to support TSV (Tab Separated Values) or | for PSV (Pipe Separated Values). You can enter as many delimiters as you like. Each character will be treat as a separate possible delimiter.

Format reference: To Table background and specification

Parameters

ParameterDefault valueInput and choices
Cell delimiters","Escape sequences such as \n, \r and \t are supported
Row delimiters"\\r\\n"Escape sequences such as \n, \r and \t are supported
Make first row headerfalseOn or off
FormatASCIIASCII, HTML, Markdown

Related tools

Browse utils tools