轉換為表格

按照相應標准将輸入轉換為表格。

輸入: 文本結果: 在沙盒中预覽的 HTML

文本輸入

工具選項

範例

Turn quoted address rows into a Markdown table

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

輸入

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
,
行 delimiters
将首行設為表头
On
格式
Markdown
Make an ASCII comparison of inner-planet moon counts

輸入

Planet	Moons
Mercury	0
Venus	0
Earth	1
Mars	2

Expected answer

+---------+-------+
| Planet  | Moons |
+---------+-------+
| Mercury | 0     |
| Venus   | 0     |
| Earth   | 1     |
| Mars    | 2     |
+---------+-------+
Cell delimiters
行 delimiters
将首行設為表头
On
格式
ASCII
Create an HTML table from pipe-separated race splits

輸入

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
|
行 delimiters
将首行設為表头
On
格式
HTML
Keep a quoted line break inside a notes cell

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

輸入

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
,
行 delimiters
将首行設為表头
On
格式
HTML
Render a headerless semicolon log as an ASCII table

輸入

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

Expected answer

+-----+-----+----------+
| 200 | GET | /health  |
| 404 | GET | /missing |
+-----+-----+----------+
Cell delimiters
;
行 delimiters
将首行設為表头
Off
格式
ASCII
HTML cells escape active markup

輸入

<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
,
行 delimiters
\r\n
将首行設為表头
Off
格式
HTML

参數

参數默認值輸入與選項
Cell delimiters","支持 \n、\r 和 \t 等跳脫序列
行 delimiters"\\r\\n"支持 \n、\r 和 \t 等跳脫序列
将首行設為表头false開啟或关閉
格式ASCIIASCII, HTML, Markdown

相关工具

實用工具

操作参考

查看原始技术文檔 (English)