Markdown Cheat Sheet: Headings, Lists, Links, Tables and Code

Markdown lets you format text with simple symbols. It’s used on GitHub, Notion, Reddit, Slack, Discord and many blogs.

Ⓜ️Free Markdown to HTML
Live Markdown preview and clean HTML output.
Open tool →

Text formatting

# Heading 1, ## Heading 2, ### Heading 3. **bold**, *italic*, ~~strikethrough~~, `inline code`.

Lists and quotes

Bullets: start lines with – or *. Numbered: 1. 2. 3. Indent two or four spaces for nested items. Quotes: start a line with >.

Links, images and code

Link: [text](https://example.com). Image: ![alt text](image.png). Code block: put three backticks on the lines before and after the code.

Tables

| Name | Price | on the first line, |—|—| on the second, then one row per line. Use :— , :—: or —: to align columns left, centre or right.

Try it live

Paste Markdown into Markdown to HTML to see a live preview and copy the clean HTML for your website or email.

Frequently asked questions

How do I add a line break?

Leave a blank line for a new paragraph, or end a line with two spaces.

Does Markdown support colours?

Not in standard Markdown – use HTML if allowed.

What is GitHub-flavoured Markdown?

A popular dialect that adds tables, task lists and strikethrough.

Ⓜ️Free Markdown to HTML
Live Markdown preview and clean HTML output.
Open tool →

More guides