Developer Tools
Markdown Table Formatter
Reformat Markdown pipe tables so columns line up. Aligned or compact output, per-column alignment, missing alignment row insertion. Runs in your browser.
Reformats GitHub-Flavored Markdown pipe tables in place. Headings, lists, code blocks, and other Markdown around each table are preserved. Backslash-escaped pipes (\|) and inline backtick code spans inside cells are protected.
Padding
Outer pipes
Use the alignment row from the input.
Tables detected
0
Rows padded for width
0
Rows that had fewer cells than the widest row and were extended with empty cells.
Alignment rows inserted
0
Tables that lacked an alignment row in the source and had one added.
Mode
aligned, outer pipes
About GFM table alignment
GitHub-Flavored Markdown defines a pipe table as a header row, an alignment row, and zero or more data rows. The alignment row uses colons to mark per-column alignment: :--- for left, :---: for center, and ---: for right. A bare ---falls back to the renderer default, which is left in GitHub. This formatter preserves that semantics: pick "Keep source alignment" to mirror the input, or override it globally or per column.
Aligned padding makes the source easy to scan inside a code review or README diff. Compact padding emits the smallest legal table and is useful when bytes matter (for example, inside a long static site page where every line is rendered to HTML and source size leaks into bundle size). Both forms render identically in GFM viewers.
How to use
- Paste a Markdown document into the source box. Multiple tables in the same input are detected and formatted individually.
- Pick Aligned padding to pad columns so the source lines up, or Compact for the smallest legal table.
- Choose Outer pipes (GFM style) or No outer pipes (tight Pandoc style).
- Keep the source alignment, or override globally with Left, Center, or Right. Use the per-column toggles for finer control of the first detected table.
- Leave Insert alignment row on so tables that arrived without a separator row get one added; the result renders correctly in every GFM viewer.
- Copy the formatted Markdown and paste it back into your README, issue, or wiki.
About this tool
Markdown Table Formatter rewrites GitHub-Flavored Markdown pipe tables so columns line up, the alignment row is normalized, and the source is easy to read in a diff or code review. Paste a whole document and every pipe table in it is re-rendered in place; headings, paragraphs, lists, blockquotes, and fenced code blocks around the tables are preserved verbatim. The parser handles tables that hand-typed Markdown editors often leave messy: missing leading or trailing pipes, uneven row widths, no alignment row at all, mixed content with backslash-escaped pipes, and inline backtick code spans that contain pipes. Choose Aligned padding so cells are padded with spaces to the widest value in each column (great for README diffs), or Compact padding for the smallest legal table. Outer pipes can be added in GFM style or removed for tight Pandoc style. Column alignment can be kept from the source, forced globally (all left, center, or right), or overridden per column for finer control. When the source has data rows but no separator row, the Insert alignment row toggle adds one so the result renders correctly on GitHub, GitLab, Bitbucket, Gitea, Notion, Obsidian, Bear, Joplin, MkDocs, GitBook, Docusaurus, Hugo, Jekyll, Astro, and any other GFM-compatible viewer. Widths are calculated in monospace columns and East Asian Wide and Fullwidth code points (CJK, emoji) count as two columns so the table still lines up visually with mixed content. The tool runs entirely in your browser; the Markdown you paste is never sent to a server.
Free to use. Works in your browser. No signup, no login.
Related tools
You may also like
Markdown Table Generator
Editable grid, column alignment, paste from spreadsheet, live preview.
Open tool
ConverterMarkdown Table to CSV Converter
Extract every Markdown pipe table from a document as RFC-4180 CSV or TSV.
Open tool
ConverterCSV to Markdown Table Converter
Turn CSV or TSV into a clean Markdown pipe table with alignment and a live preview.
Open tool
TextMarkdown Editor
Live markdown editor with toolbar, preview, table of contents, and .md or .html download.
Open tool
ConverterMarkdown to HTML Converter
Convert Markdown to clean HTML with a live preview and copy button.
Open tool
ConverterHTML Table to CSV Converter
Extract HTML tables to RFC-4180 CSV with colspan, rowspan, and link handling.
Open tool