Paste Your Markdown Table
Paste a Markdown table—or upload a Markdown document containing one or more tables.
Free Online Tool
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.
THE FORMATTER
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.
THREE SHORT STEPS
Paste, format, and copy. No installation needed.
Paste a Markdown table—or upload a Markdown document containing one or more tables.
Click Format Table to tidy up spaces and line up columns while keeping your text alignment.
Copy the result into your README, notes, or Markdown editor. You can also save it as a .md file.
MARKDOWN TABLE FORMATTING
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.
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.
BEFORE
|Name|Role|
|---|---|
|Alice|Developer|
|Bob|Designer|AFTER
| Name | Role |
| ----- | --------- |
| Alice | Developer |
| Bob | Designer |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.
BEFORE
| Left | Center | Right |
| :--- | :----: | ----: |
| A | B | C |AFTER
| Left | Center | Right |
| :--- | :----: | ----: |
| A | B | C |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.
BEFORE
| Type | Example |
| ---- | ------- |
| Code | `npm run build` |
| Link | [Docs](https://example.com) |
| Pipe | A \| B |AFTER
| Type | Example |
| ---- | --------------------------- |
| Code | `npm run build` |
| Link | [Docs](https://example.com) |
| Pipe | A \| B |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.
BEFORE
| Name | Score | Status |
| --- | --- | --- |
| Alice | 95 |
| Bob | 88 | Pass |AFTER
| Name | Score | Status |
| ----- | ----- | ------ |
| Alice | 95 | |
| Bob | 88 | Pass |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.
BEFORE
# Project status
|Name|Status|
|---|---|
|API|Ready|
Notes remain unchanged.
|Item|Qty|
|---|---:|
|Pens|2|AFTER
# Project status
| Name | Status |
| ---- | ------ |
| API | Ready |
Notes remain unchanged.
| Item | Qty |
| ---- | ---: |
| Pens | 2 |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.
BEFORE
| Name | Status | Language |
| --- | --- | --- |
| 東京 | ✅ | 日本語 |
| Alice | Ready | English |AFTER
| Name | Status | Language |
| ----- | ------ | -------- |
| 東京 | ✅ | 日本語 |
| Alice | Ready | English |TROUBLESHOOTING
Find out why your Markdown table looks wrong and how to fix it.
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.
Choose Pretty to line up the | characters and make the table easier to edit. Choose Compact for a shorter version with fewer spaces.
In the second row, use ---: to place text on the right, :---: for the center, or :--- for the left.
Put a backslash before a | character when you want it to appear inside a cell instead of splitting that cell into two: \|.
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.
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.
ALIGNMENT GUIDE
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.
FULL DOCUMENTS
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.
EVERYTHING INCLUDED
Align columns, keep your table’s formatting, preview the result, and copy clean Markdown.
Line up columns to make your Markdown tables easier to read and edit.
Keep text aligned left, center, or right in the displayed table when you tidy up the Markdown.
Clean up uneven spacing without changing your table’s contents.
See how the finished table will look before you copy it.
Copy the formatted table or save it as a .md file.
No signup needed. Your table stays in your browser.
CREATE OR CLEAN
Already have a table, or need to create one? Choose the right tool for the job.
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.
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.
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.
USING YOUR TABLE
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 TOOLS
COMMON QUESTIONS
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.
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.
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.
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.
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.
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.
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.
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.
No. GitHub Markdown tables do not support merged cells. Each value needs its own cell.