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.

คำถามที่พบบ่อย

เอาต์พุตมีรูปแบบอะไร?

ตาราง Markdown แบบ GitHub: แถวหัวตาราง ตัวแบ่งการจัดตำแหน่ง แล้วตามด้วยแถวข้อมูล แสดงผลได้บน GitHub วิกิส่วนใหญ่ และโปรแกรมแก้ไข Markdown

การจัดตำแหน่งทำงานอย่างไร?

การจัดตำแหน่งที่คุณเลือกจะถูกเขียนลงในแถวตัวแบ่งโดยใช้โคลอน (:--- ซ้าย, :---: กลาง, ---: ขวา) ซึ่ง Markdown renderer ใช้จัดตำแหน่งทุกคอลัมน์

จะเกิดอะไรขึ้นกับจุลภาคหรือไปป์ภายในเซลล์?

ฟิลด์ CSV ที่อ้างอิงถูกแยกวิเคราะห์อย่างถูกต้อง และอักขระไปป์ในข้อมูลจะถูก escape เพื่อให้ตารางยังคงถูกต้อง การขึ้นบรรทัดใหม่ภายในเซลล์จะถูกแบน flat เป็นช่องว่าง

ข้อมูลของฉันถูกอัปโหลดไหม?

ไม่ ตารางถูกสร้างทั้งหมดในเบราว์เซอร์ของคุณ ไม่มีสิ่งที่คุณวางออกจากอุปกรณ์

แหล่งข้อมูล

ฝังเครื่องมือนี้

เพิ่มเครื่องมือนี้ลงในเว็บไซต์ของคุณเอง คัดลอกสคริปต์ด้านล่าง โดยจะอัปเดตให้เป็นปัจจุบันโดยอัตโนมัติ

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

เครื่องมือที่เกี่ยวข้อง