Free Online Tool

Markdown Table Formatter

Paste a Markdown table, fix uneven spacing, and line up its columns in seconds. Keep the text alignment you already use on GitHub, without uploading your file.

Auto-Align Columns GitHub Compatible Private & Free
Markdown Table Formatter
YOUR MARKDOWN TABLEPASTE OR TYPE · 73 chars · 4 lines
1 TABLE · 119 chars · 4 lines
Keep text alignment
Keep the text left-, center-, or right-aligned as it is now.
Format as you type
Update the result as you make changes.
Your table stays in your browser. No upload is needed.

Format Markdown Tables Online

Already have a Markdown table that looks messy? Paste it here and click Format Table to make its columns easier to read and edit. The formatter fixes uneven spaces and lines up the | characters.

Your existing left, center, or right text alignment stays the same by default. Everything happens in your browser, and you can copy the result into a README, note, or Markdown editor.

How to Format a Markdown Table

Paste, format, and copy. No installation needed.

01

Paste Your Markdown Table

Paste a Markdown table—or upload a Markdown document containing one or more tables.

02

Format and Align Columns

Click Format Table to tidy up spaces and line up columns while keeping your text alignment.

03

Copy the Formatted Markdown

Copy the result into your README, notes, or Markdown editor. You can also save it as a .md file.

Markdown Table Formatting Examples

Six practical ways to clean up your Markdown tables. Load any example into the tool, then click Format Table to see the same result live.

Fix Uneven Column Spacing

Tables copied from chats or edited by hand often have uneven spacing. They may display correctly on GitHub but be hard to read while editing.

Formatting lines up the columns and cleans up spacing. Your table’s contents stay the same.

Choose Pretty for neatly aligned columns, or Compact for less spacing.

|Name|Role|
|---|---|
|Alice|Developer|
|Bob|Designer|
| Name  | Role      |
| ----- | --------- |
| Alice | Developer |
| Bob   | Designer  |

Preserve Left, Center, and Right Alignment

The colons in the second row control where text appears in the finished table: `:---` for left, `:---:` for center, and `---:` for right.

Lining up the | characters makes your Markdown easier to edit. The Preserve alignment setting keeps the text in the displayed table positioned as you intended.

Turn Preserve alignment off to left-align every column.

| Left | Center | Right |
| :--- | :----: | ----: |
| A | B | C |
| Left | Center | Right |
| :--- | :----: | ----: |
| A    |   B    |     C |

Format Tables with Links and Code

You can format tables containing links, inline code, and pipe characters without removing them first.

Links and code stay in place. A backslash before a | character keeps it inside the same cell.

Load this example and select Preview to check that the link, code, and | character still look right.

| Type | Example |
| ---- | ------- |
| Code | `npm run build` |
| Link | [Docs](https://example.com) |
| Pipe | A \| B |
| Type | Example                     |
| ---- | --------------------------- |
| Code | `npm run build`             |
| Link | [Docs](https://example.com) |
| Pipe | A \| B                      |

Fix Rows with Missing Cells

A row with fewer entries than the headings may leave gaps in your table.

Empty cells are added where needed. Review the warning to make sure the result matches what you intended.

If a row has extra entries, those values are kept instead of being cut off.

| Name | Score | Status |
| --- | --- | --- |
| Alice | 95 |
| Bob | 88 | Pass |
| Name  | Score | Status |
| ----- | ----- | ------ |
| Alice | 95    |        |
| Bob   | 88    | Pass   |

Format Multiple Tables in One Markdown Document

Paste a complete README or Markdown document to tidy up all the tables at once.

Headings and paragraphs stay as they are, and table examples inside code blocks are not changed.

# Project status

|Name|Status|
|---|---|
|API|Ready|

Notes remain unchanged.

|Item|Qty|
|---|---:|
|Pens|2|
# Project status

| Name | Status |
| ---- | ------ |
| API  | Ready  |

Notes remain unchanged.

| Item |  Qty |
| ---- | ---: |
| Pens |    2 |

Align Tables with Chinese, Japanese, and Emoji

Chinese and Japanese characters, as well as emoji, can make columns look uneven in Markdown text.

Pretty adjusts the spacing for these characters, although columns may look slightly different depending on the font you use.

| Name | Status | Language |
| --- | --- | --- |
| 東京 | ✅ | 日本語 |
| Alice | Ready | English |
| Name  | Status | Language |
| ----- | ------ | -------- |
| 東京  | ✅     | 日本語   |
| Alice | Ready  | English  |

How to Fix Common Markdown Table Problems

Find out why your Markdown table looks wrong and how to fix it.

My Markdown table is not recognized

A Markdown table needs a heading row followed by a row of dashes, such as | --- | --- |. Add these rows if they are missing, then try formatting again.

My columns do not line up

Choose Pretty to line up the | characters and make the table easier to edit. Choose Compact for a shorter version with fewer spaces.

Numbers appear left-aligned

In the second row, use ---: to place text on the right, :---: for the center, or :--- for the left.

A pipe character creates an extra cell

Put a backslash before a | character when you want it to appear inside a cell instead of splitting that cell into two: \|.

A row has missing or extra cells

Missing entries become blank cells, and extra entries are kept. Check the warning to make sure the table still says what you intended. Try the missing-cells example above.

My table is too large to format

Tables with more than 5,000 rows or 200 columns cannot be formatted in one go. Your original text stays unchanged; split the table into smaller parts and try again.

Markdown Table Alignment Explained

To make your Markdown easier to read, choose Pretty. It lines up the | characters and cleans up spaces. To choose where text appears in the finished table, use :--- for left, :---: for center, or ---: for right in the second row.

These are two different things: neat Markdown text helps you edit the table, while left, center, or right alignment changes how the finished table looks. The formatter keeps your existing text alignment unless you turn off Preserve alignment.

For more examples, see GitHub’s official Markdown table rules.

Format Multiple Tables in a Markdown Document

Paste or upload a Markdown file with several tables. You can format them together without changing the surrounding headings, paragraphs, or examples inside code blocks. Try the multiple-tables example above.

Markdown Table Formatter Features

Align columns, keep your table’s formatting, preview the result, and copy clean Markdown.

Neat, Readable Columns

Line up columns to make your Markdown tables easier to read and edit.

Keep Your Text Alignment

Keep text aligned left, center, or right in the displayed table when you tidy up the Markdown.

Clean Table Spacing

Clean up uneven spacing without changing your table’s contents.

Preview Before Copying

See how the finished table will look before you copy it.

Copy or Download

Copy the formatted table or save it as a .md file.

Private and Free

No signup needed. Your table stays in your browser.

Markdown Table Formatter vs. Generator

Already have a table, or need to create one? Choose the right tool for the job.

Use the Formatter

You already have a Markdown table with messy spacing or uneven columns. Paste it here, format, and copy the result. You can also format several tables in a full document at once.

Use the Generator

You are building a table from scratch or from spreadsheet data. Open the Markdown Table Generator to fill in cells or paste data from Excel or CSV, then copy the Markdown.

Use both

Start with the Generator to create a table, then use the Formatter if you want the Markdown to look tidier. If you already have a table, you can come straight to the Formatter.

Format Tables for GitHub README Files

Where to use your formatted table and what GitHub Markdown supports.

Copy your formatted table into a GitHub README, issue, or pull request. GitHub can display these tables when they have a heading row and a second row of dashes.

The formatter tidies up the Markdown without changing your existing left, center, or right text alignment by default. Check the Preview tab before copying to see how the table will look.

Need a table without column headings? Leave the headings blank but keep the first row. GitHub Markdown does not support merging several cells into one.

More Markdown Tools

Frequently Asked Questions

How do I format a Markdown table?+

Paste your Markdown table, click Format Table, and copy the result. The tool tidies up spacing and keeps your existing left, center, or right text alignment.

Can I format a Markdown table online for free?+

Yes. This Markdown table formatter is free to use in your browser. There is no signup, and your table is not uploaded to a server.

How do I align columns in a Markdown table?+

Click Format Table to line up the | characters in your Markdown. To change where text appears in the finished table, use :--- for left, :---: for center, or ---: for right in the second row.

What is the difference between formatting and aligning Markdown tables?+

Formatting tidies up the Markdown so it is easier to edit. Text alignment changes how the table looks when displayed. By default, the formatter keeps your existing text alignment.

Does the formatter preserve GitHub Markdown table alignment?+

Yes. The formatter keeps the left, center, or right text alignment you already chose, so the table should look the same in GitHub READMEs, issues, and pull requests.

Can I format Markdown tables without changing their data?+

The formatter keeps your cell values, links, and code. If a row has too few entries, blank cells are added and you will see a warning. Tables over 200 columns or 5,000 rows must be split into smaller tables so no content gets cut off.

What is the difference between a Markdown table formatter and generator?+

A formatter cleans a table you already have. A generator helps you build a new table from a visual grid, Excel paste, or CSV. Use the Markdown Table Generator when you need to create a table from scratch.

Can I make a Markdown table without a header?+

GitHub Markdown tables need a first row for headings and a second row made of dashes. You can leave the headings blank, but you cannot remove the first row altogether.

Does Markdown support merged table cells?+

No. GitHub Markdown tables do not support merged cells. Each value needs its own cell.