Monu Tools

CSV ⇄ Markdown 表格轉換器

將 CSV 轉為 Markdown 表格,也可將 Markdown 表格轉回 CSV,雙向均可。

如何使用 Markdown 表格

  1. 01

    貼上你的 CSV,第一行作為表頭。

  2. 02

    選擇分隔符和欄位對齊方式。

  3. 03

    複製產生的 Markdown 表格。

What it does

This tool converts CSV data into a clean Markdown table you can drop into READMEs, issues, wikis and documentation, and converts Markdown tables back into CSV. The first row becomes the header, and you can set the column alignment.

Writing Markdown tables by hand is fiddly: every row needs the right number of pipes and the alignment divider has to line up. Pasting CSV and getting a correct table back removes all of that busywork.

Everything is processed locally in your browser; nothing you paste leaves your device.

The CSV it reads

It reads standard CSV with comma, semicolon or tab delimiters and handles quoted fields, so data exported from a spreadsheet converts without breaking on commas inside values.

The Markdown it produces

The output is a GitHub-Flavored Markdown table: a header row, an alignment divider, then the data rows. It renders in GitHub, GitLab, most wikis and Markdown editors.

Alignment and escaping

Alignment is written into the divider row using colons, :--- for left, :---: for center and ---: for right, which Markdown renderers use to align each column. Pipe characters in the data are escaped and line breaks inside cells are flattened so the table always stays valid.

常見問題

輸出是什麼格式?

GitHub 風格的 Markdown 表格:一個表頭行、一個對齊分隔行,然後是資料行。它能在 GitHub、大多數 Wiki 和 Markdown 編輯器中渲染。

對齊如何運作?

你選擇的對齊方式會用冒號寫入分隔行(:--- 靠左、:---: 置中、---: 靠右),Markdown 渲染器據此對齊每一欄。

儲存格內的逗號或直線怎麼辦?

帶引號的 CSV 欄位會被正確解析,資料中的任何直線字元都會被跳脫以保持表格有效。儲存格內的換行會被展平為空格。

我的資料會被上傳嗎?

不會。表格完全在你的瀏覽器中產生;你貼上的內容不會離開你的裝置。

來源

嵌入此工具

將此工具加入你自己的網站。複製下方的程式碼片段,它會自動保持最新。

<iframe src="https://monu.tools/embed/zh-Hant/markdown-table-converter" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>

相關工具