Markdown Table – Alignment, Formatting, and Conversion (GFM)

Everything about Markdown tables: syntax, alignment, header rows, multi-line cells, code in cells, images/links, CSV/Excel ⇄ Markdown, and Word/PDF export. Includes a live-friendly, copy-ready cheat sheet.

↔️
정렬 지원
📊
CSV 변환
🔗
링크 및 이미지
📱
멀티 플랫폼

🔄 CSV ↔ Markdown 변환기

CSV/Excel 데이터와 Markdown 표 형식을 즉시 변환합니다.

💡 사용 방법:

    CSV → Markdown: 왼쪽에 CSV 입력 후 'CSV → Markdown' 클릭• Markdown → CSV: 오른쪽에 Markdown 표 입력 후 'Markdown → CSV' 클릭• 복사: '📋 Markdown 복사' 버튼으로 결과 복사• 지우기: '지우기' 버튼으로 두 필드 초기화

Markdown Table Guide (GFM)

A complete guide to Markdown tables that actually works in real documents. Covers GitHub-Flavored Markdown (GFM) syntax, alignment, links/images/code inside cells, multi-line cells, and conversions between CSV/Excel ⇄ Markdown ⇄ Word/PDF.

Tip: On md2word.com, paste Markdown (or CSV/Excel), then export DOCX/PDF with real Word tables (borders & alignment preserved).


Table of Contents


Basic Syntax

| Feature | Supported? |
|--------|------------|
| Tables | ✅         |
| Alignment | ✅      |
  • First row is the header.
  • Second row of dashes defines the table and supports alignment markers.

Alignment

| Left | Center | Right |
|:-----|:------:|------:|
| a    |   b    |     c |
  • :--- = left, :---: = center, ---: = right.

| Type   | Example                         |
|--------|---------------------------------|
| Link   | [md2word](https://md2word.com)  |
| Image  | ![alt](https://example.com/i.png) |
| Code   | `inline code`                   |

Block-level elements (lists, blockquotes) are not reliably supported inside cells across parsers—prefer concise content per cell.


Multi-line Cells

CommonMark itself doesn’t support hard line breaks within a cell, but many renderers accept <br>:

| Feature | Note                    |
|--------|--------------------------|
| Lines  | Line1<br>Line2<br>Line3 |

For longer content, consider split rows or switch to HTML table for precise layout.


Column Width & Wrapping

Markdown has no native column width control. Use CSS/HTML if you need fixed widths.
When exporting via md2word, columns auto-fit like Word tables and keep alignment/borders.


CSV / Excel ⇄ Markdown

CSV → Markdown

  1. Paste CSV into the converter.
  2. Choose “CSV → Markdown table”.
  3. Adjust alignment; copy or export to DOCX/PDF.

Markdown → CSV/Excel

  • Export the detected table as CSV or .xlsx for spreadsheet editing.

Example CSV:

Name,Score,Passed
Alice,92,TRUE
Bob,78,TRUE
Cara,63,FALSE

Converted Markdown:

| Name  | Score | Passed |
|-------|------:|:------:|
| Alice |    92 |  ✅    |
| Bob   |    78 |  ✅    |
| Cara  |    63 |  ❌    |

HTML Table (when Markdown falls short)

Use HTML when you need rowspan/colspan, precise widths, or nested content:

<table>
  <thead>
    <tr><th>Quarter</th><th colspan="2">Revenue</th></tr>
  </thead>
  <tbody>
    <tr><td>Q1</td><td>$1.2M</td><td>$1.4M</td></tr>
  </tbody>
</table>

md2word converts HTML tables into true Word tables with merged cells.


Platform Differences

PlatformTablesAlignmentNotes
GitHub (GFM)Most common; no colspan/rowspan
ObsidianWorks in preview; exports vary by plugin
Notion⚠️⚠️Imports Markdown but uses native tables
Discord/Reddit⚠️⚠️Limited or none; consider screenshots/code blocks

FAQ

Q: Why are my columns misaligned in plain text editors?
Spaces are cosmetic. Rendering engines ignore them; use alignment markers in the header row.

Q: Can I merge cells?
Not in pure Markdown. Use HTML tables for rowspan/colspan or restructure data.

Q: My table breaks in Word after copy-paste
Use md2word export to get a proper DOCX table with consistent borders and alignment.

Q: How big can a table be?
Markdown parsers handle large tables, but browsers slow down. Consider chunking or switching to CSV/Excel for editing, then re-export.


Changelog

  • 2025-10-13: Initial release with CSV/Excel round-trip and HTML fallback guidance.

Next steps:

자주 묻는 질문

열 정렬은 어떻게 하나요?

구분선 행에 콜론을 사용하세요: `:---` 왼쪽, `:---:` 가운데, `---:` 오른쪽 정렬.

셀 병합이 가능한가요?

표준 Markdown은 지원하지 않습니다. 필요한 경우 HTML 테이블(`table`, `tr`, `td`)을 사용하세요.

Excel을 Markdown으로 변환하려면?

Excel을 CSV로 내보낸 후 위의 변환기를 사용하세요. 또는 셀을 복사하여 서식을 지정하세요.

왜 플랫폼마다 표가 다르게 보이나요?

GitHub, Obsidian, Notion 등 파서마다 스타일과 지원 수준이 약간씩 다르기 때문입니다.