Markdown Cheatsheet

A complete reference guide for Markdown syntax. Browse examples of all Markdown formatting options including headings, text styling, links, images, lists, code blocks, tables, and GitHub Flavored Markdown extensions.

Interactive Markdown Cheatsheet
27 examples

Headings
6

Heading 1
# Heading 1
Result / Description

Largest heading

<h1>Heading 1</h1>
Heading 2
## Heading 2
Result / Description

Second level heading

<h2>Heading 2</h2>
Heading 3
### Heading 3
Result / Description

Third level heading

<h3>Heading 3</h3>
Heading 4
#### Heading 4
Result / Description

Fourth level heading

<h4>Heading 4</h4>
Heading 5
##### Heading 5
Result / Description

Fifth level heading

<h5>Heading 5</h5>
Heading 6
###### Heading 6
Result / Description

Smallest heading

<h6>Heading 6</h6>

Text Formatting
5

Bold
**bold text**
Result / Description

Use double asterisks or underscores

<strong>bold text</strong>
Italic
*italic text*
Result / Description

Use single asterisks or underscores

<em>italic text</em>
Bold + Italic
***bold italic***
Result / Description

Combine both

<strong><em>bold italic</em></strong>
Strikethrough
~~deleted~~
Result / Description

Use double tildes

<del>deleted</del>
Inline Code
`code`
Result / Description

Use backticks

<code>code</code>

Links & Images
4

Link
[text](url)
Result / Description

Text in brackets, URL in parentheses

<a href="url">text</a>
Link with Title
[text](url "title")
Result / Description

Add title in quotes

<a href="url" title="title">text</a>
Image
![alt](url)
Result / Description

Same as link with ! prefix

<img src="url" alt="alt">
Image with Title
![alt](url "title")
Result / Description

Image with tooltip

<img src="url" alt="alt" title="title">

Lists
3

Unordered List
- Item 1
- Item 2
- Item 3
Result / Description

Use -, *, or +

<ul><li>Item 1</li><li>Item 2</li><li>Item 3</li></ul>
Ordered List
1. First
2. Second
3. Third
Result / Description

Numbers with periods

<ol><li>First</li><li>Second</li><li>Third</li></ol>
Nested List
- Parent
  - Child
  - Child
Result / Description

Indent with 2 spaces

Nested list structure

Blockquotes & Code
4

Blockquote
> Quote text
Result / Description

Use > at start

<blockquote>Quote text</blockquote>
Nested Quote
> Level 1
>> Level 2
Result / Description

Multiple > for nesting

Nested blockquotes
Code Block
```
code
```
Result / Description

Triple backticks

<pre><code>code</code></pre>
Code with Language
```javascript
code
```
Result / Description

Add language after backticks

<pre><code class="language-javascript">code</code></pre>

Other Elements
3

Horizontal Rule
---
Result / Description

Three dashes, asterisks, or underscores

<hr>
Line Break
Line 1  \nLine 2
Result / Description

Two spaces at end of line

Line 1<br>Line 2
Escape Character
\*not italic\*
Result / Description

Backslash to escape

*not italic*

Tables
2

Basic Table
| Header 1 | Header 2 |
| -------- | -------- |
| Cell 1   | Cell 2   |
Result / Description

Pipes separate columns, dashes for header separator

HTML table
Aligned Table
| Left | Center | Right |
|:-----|:------:|------:|
| L    | C      | R     |
Result / Description

Colons indicate alignment

Table with alignment

Quick Reference

# - ######Headings
**text**Bold
*text*Italic
[text](url)Link
![alt](url)Image
`code`Inline Code
- itemUnordered List
1. itemOrdered List
> quoteBlockquote
---Horizontal Rule
~~text~~Strikethrough
```langCode Block

FAQ

What Markdown flavors are covered?

This cheatsheet covers standard Markdown syntax plus GitHub Flavored Markdown (GFM) extensions including tables, task lists, strikethrough, and fenced code blocks with syntax highlighting.

Is Markdown hard to learn?

Not at all! Markdown is designed to be readable and intuitive. Most people can learn the basics in just a few minutes. This cheatsheet helps you quickly find the syntax you need.

Where can I use Markdown?

Markdown is widely supported on platforms like GitHub, GitLab, Reddit, Stack Overflow, Discord, Notion, and many documentation systems. It is also the standard for README files and technical docs.

Related Tools