Markdown Table Formatter

Paste a messy Markdown table, get perfectly aligned columns back. Because life's too short to count spaces.

100% Free
Privacy-First
Instant Conversion

Markdown Input (Messy)

Formatted Output

Formatted output will appear here

Paste a Markdown table on the left to format it

Why Aligned Tables Matter

Auto-Align Every Column

Trying to line up columns manually in vim or VS Code? Painful. This tool measures the widest cell in each column and pads everything to match. You get a table that's easy to read in raw text AND renders perfectly. Need to create a table from scratch? Try our JSON to Markdown or CSV to Markdown tools first.

Cleaner Pull Request Diffs

When you change one cell in an unformatted table, the diff looks like noise. When the table is formatted, only the changed cell shows up as modified. Reviewers can see exactly what changed in 2 seconds instead of squinting at pipe positions. I started using this after getting complaints from reviewers about my messy table diffs.

Handles Whatever You Throw At It

Quick copy-paste with no trailing pipes? A table from a code generator with minimal spacing? Something you typed in a rush at 2am? All fine. The formatter normalizes everything into a consistent, readable format. After formatting, you can export to Excel with our Markdown to Excel tool, or generate the table from a spreadsheet using TSV to Markdown.

When You'd Reach for This

Before Opening a Pull Request

You just added a row to the feature matrix table in your README. Paste the table here, grab the formatted version, commit that instead. Your reviewers will thank you. Or at least they won't complain about the table formatting.

Enforcing Team Style Guides

If your team or open-source project requires formatted tables (many do), this tool gets you there in one paste. Faster than configuring a local linter just to fix one table in a docs PR you're reviewing.

After Converting Data to Markdown

Converted a CSV or JSON file to a Markdown table? The output is valid but usually has uneven columns. One paste through this formatter and it looks like you hand-typed every space. Takes 3 seconds.

Cleaning Up API Docs

Endpoint tables, parameter tables, error code tables -- they all get messy over time as people add rows without aligning them. Paste the whole table here, get the clean version, drop it back in. Instant cleanup.

Frequently Asked Questions

It takes a messy Markdown table -- columns all different widths, spacing all over the place -- and pads every cell so all the pipes line up. The result looks clean in raw text, in code reviews, and in rendered Markdown. I use it every time I edit a table in a README because aligning columns by hand drives me crazy.
Any pipe-delimited Markdown table. Even ugly ones. Missing trailing pipes? Fixed. Wildly inconsistent spacing? Fixed. A separator row that's just |---|? Fixed. The formatter figures out the widest cell in each column and pads everything to match.
Paste your Markdown table on the left. There's a Sample button if you want to see a before-and-after with a deliberately messy table. The formatted version shows up on the right. Copy it or download it as a .md file. Everything happens locally in your browser.
No. It only touches whitespace. Your cell content stays exactly the same -- the tool just adds or removes spaces around it so the columns line up. The separator row gets normalized to plain dashes (---), but that doesn't change how the table renders.
Compare a formatted table to an unformatted one in a git diff. Night and day. When columns are aligned, you can instantly spot which cell changed. In code reviews, aligned tables let reviewers actually read the data instead of counting pipes. Some linters like markdownlint will flag unformatted tables too.
Yes. The formatting is pure JavaScript running in your browser tab. Your data doesn't go anywhere. No server, no API call, no logging.
Always free. You might also want: JSON to Markdown, CSV to Markdown, TSV to Markdown, and Markdown to Excel.
Definitely. Tables from database exports, CSV converters, JSON-to-Markdown output, hand-typed tables -- all of them. It works great as a second step after using our CSV to Markdown converter or JSON to Markdown converter. Generate the table, then format it here.
Right now the formatter strips alignment markers and normalizes to plain --- dashes. Left-aligned is the default, and that's what 95% of Markdown tables use anyway. I may add alignment preservation in a future update.
This is a quick web tool for one-off formatting. For CI/CD, you'd want something like markdownlint or prettier with the Markdown plugin. But for quick formatting before a commit or during a code review, this is faster than setting up a CLI tool.