Hashdraft
← All free tools
tables

Markdown table formatter

Paste a ragged, hand-typed Markdown table and get it back with neatly aligned columns and tidy separators — alignment preserved. Other content passes through untouched. Runs in your browser.

Markdownpaste, or drop a .md file


Starting from scratch?

Build one with the Table generator or from CSV.

Download Hashdraft

Markdown table formatting

Align a messy Markdown table without changing its content

A Markdown table formatter measures the text in every column, rebuilds the separator row, and pads the source so columns line up. The rendered table may look the same, but the Markdown becomes much easier to read, review, and edit.

Preserves alignment rules

Left, centered, and right-aligned columns keep their colon markers while the surrounding dashes and cell widths are normalized.

Formats tables in full documents

Paste more than an isolated table. Paragraphs and other Markdown between tables are left in place while recognized tables are rebuilt.

Lets you verify the result

Use the source tab to inspect spacing and the Preview tab to confirm that the formatted table still renders as intended.

How to format a Markdown table

  1. Paste the table or the surrounding Markdown document into the input panel.
  2. Review the aligned output and confirm that escaped pipes and column alignment are correct.
  3. Copy the formatted Markdown back into the original file.

Markdown table formatter questions

Does formatting change table values?

The tool rebuilds spacing and table delimiters from parsed cells. Always review code-like values and unusual inline syntax before replacing the original.

Can it create a new table?

This page is for existing Markdown. Use the Markdown table generator to add rows and columns in a grid first.

Hashdraft for Windows

See every table render while you edit the file

Work on the surrounding prose and table source in one place, with the native preview kept beside the current document position.

  • Rendered tables in Preview and Split modes
  • Syntax highlighting and formatting shortcuts
  • Offline PDF and standalone HTML export
Hashdraft desktop Markdown editor showing source and rendered preview in Split mode