Markdown Tables with Alignment

Create tables with left, center, and right alignment

Markdown Source

| Left | Center | Right |
|:-----|:------:|------:|
| A    | B      | C     |
| 1    | 2      | 3     |

Rendered HTML Output

<table>
  <thead><tr><th align="left">Left</th><th align="center">Center</th><th align="right">Right</th></tr></thead>
  <tbody><tr><td>A</td><td>B</td><td>C</td></tr><tr><td>1</td><td>2</td><td>3</td></tr></tbody>
</table>

Explanation

Tables use pipes (|) for column separators and dashes (-) for the header row. Add colons in the alignment row: :--- for left, :---: for center, ---: for right.

Tips & Common Mistakes

Related Markdown Examples

Try It

Markdown Preview Tool →

All Examples