不喜欢广告? 无广告 今天

Markdown Table Formatter & Aligner

文本
广告 · 消除?

Formatting Options

Table Preview

导出选项

验证

广告 · 消除?

指导

Markdown Table Formatter & Aligner

Markdown Table Formatter & Aligner

Format and align Markdown tables with perfectly padded columns. Paste a messy Markdown table and instantly get clean, aligned output with equal column widths. Includes a rendered HTML preview, export to CSV/HTML/JSON, and validation for common table issues. Handles multiple tables in one input.

如何使用

Paste your Markdown table into the input area. The formatter instantly aligns all columns to equal widths, padding cells with spaces so pipe characters line up perfectly. Configure column alignment (left, center, right, or auto-detect), padding style (spaced or compact), separator style, and whether to include outer pipes. View the formatted output, check the HTML preview, and export as CSV, HTML table, or JSON.

特征

  • Column Alignment — Auto-detect alignment from separator markers (:—:, :—, —:), or force all columns to left, center, or right alignment. Alignment markers are preserved in the formatted output.
  • Perfect Padding — Each column is padded to the maximum width of its content, so all pipe characters align vertically. Choose spaced padding (| value |) or compact (|value|).
  • Separator Styles — Minimal dashes (—) or full-width separators that match the column width with dashes for maximum visual alignment.
  • HTML Preview — Rendered preview showing exactly how the Markdown table will look when published. Helps verify formatting before copying.
  • Multi-Table Support — If your input contains multiple tables mixed with other text, each table is formatted independently while surrounding text is preserved.
  • 导出选项 — Copy as CSV (properly quoted), HTML table, or JSON array of objects (headers as keys). Each with a copy button.
  • Sort by Column — Optionally sort rows by any detected column header.
  • 验证 — Detects inconsistent column counts, missing separator rows, and empty cells. Shows column and row counts.

Markdown Table Syntax

Markdown tables use pipes (|) to separate columns and dashes (-) for the separator row between headers and data. Alignment is controlled by colons in the separator: :--- (left), :---: (center), ---: (right). Example:
| Name | Age |
|:-----|----:|
| Alice | 30 |

广告 · 消除?

How do I align columns in a Markdown table?

Column alignment is controlled by colons in the separator row (the row of dashes between headers and data). Left-align: :— (colon on left). Right-align: —: (colon on right). Center-align: :—: (colons on both sides). Default (no colons): left-aligned. This formatter auto-detects existing alignment markers and preserves them, or you can force all columns to a specific alignment.

Why do my Markdown tables look misaligned in the source?

Markdown tables look misaligned in source code because cell content varies in length, causing pipe characters to appear at different positions on each line. This is purely a source-code readability issue — the table renders correctly regardless of alignment. This formatter fixes the visual alignment by padding each cell to the maximum width of its column, so all pipes line up vertically. The formatted table is functionally identical but much easier to read in source form.

Can I format multiple tables at once?

Yes — if your input contains multiple Markdown tables mixed with other text (like paragraphs or headings), each table is detected and formatted independently. Non-table text is preserved exactly as-is between the formatted tables. This is useful when formatting entire Markdown documents that contain several tables.

Which Markdown renderers support tables?

Markdown tables are supported by GitHub Flavored Markdown (GFM), GitLab Markdown, Bitbucket, Reddit, Stack Overflow, most static site generators (Jekyll, Hugo, Gatsby), and documentation tools (MkDocs, Docusaurus, VuePress). Standard CommonMark does not include tables in its spec, but most implementations add table support as an extension. If your renderer doesn’t support tables, use this tool’s HTML export to get a standard HTML table instead.

想要享受无广告的体验吗? 立即无广告

安装我们的扩展

将 IO 工具添加到您最喜欢的浏览器,以便即时访问和更快地搜索

添加 Chrome 扩展程序 添加 边缘延伸 添加 Firefox 扩展 添加 Opera 扩展

记分板已到达!

记分板 是一种有趣的跟踪您游戏的方式,所有数据都存储在您的浏览器中。更多功能即将推出!

广告 · 消除?
广告 · 消除?
广告 · 消除?

新闻角 包含技术亮点

参与其中

帮助我们继续提供有价值的免费工具

给我买杯咖啡
广告 · 消除?