MarkdownCheatsheet

Complete reference guide for all Markdown syntax. Learn headers, lists, tables, code blocks, and more.

Headers

Create headings with different sizes

Markdown
# H1 Heading
Output
# H1 Heading
Markdown
## H2 Heading
Output
## H2 Heading
Markdown
### H3 Heading
Output
### H3 Heading
Markdown
#### H4 Heading
Output
#### H4 Heading
Markdown
##### H5 Heading
Output
##### H5 Heading
Markdown
###### H6 Heading
Output
###### H6 Heading

Text Formatting

Emphasize text with bold, italic, and more

Markdown
**bold text**
Output
**bold text**
Markdown
*italic text*
Output
*italic text*
Markdown
***bold and italic***
Output
***bold and italic***
Markdown
~~strikethrough~~
Output
~~strikethrough~~
Markdown
`inline code`
Output
`inline code`

Lists

Create ordered and unordered lists

Markdown
- Item 1
- Item 2
- Item 3
Output
- Item 1 - Item 2 - Item 3
Markdown
1. First item
2. Second item
3. Third item
Output
1. First item 2. Second item 3. Third item
Markdown
- Item 1
  - Nested item
  - Another nested
- Item 2
Output
- Item 1 - Nested item - Another nested - Item 2
Markdown
- [ ] Unchecked task
- [x] Checked task
Output
- [ ] Unchecked task - [x] Checked task

Links and Images

Add links and images to your content

Markdown
[Link text](https://example.com)
Output
[Link text](https://example.com)
Markdown
[Link with title](https://example.com "Title")
Output
[Link with title](https://example.com "Title")
Markdown
![Alt text](image.jpg)
Output
![Alt text](image.jpg)
Markdown
[![Image](image.jpg)](https://example.com)
Output
[![Image](image.jpg)](https://example.com)

Code Blocks

Display code with syntax highlighting

Markdown
```javascript
function greet() {
  return 'Hello';
}
```
Output
function greet() {
  return 'Hello';
}
Markdown
```python
def hello():
    print('Hello')
```
Output
def hello():
    print('Hello')
Markdown
```
Plain code block
```
Output
Plain code block

Tables

Create structured tables

Markdown
| Header 1 | Header 2 |
|----------|----------|
| Cell 1   | Cell 2   |
| Cell 3   | Cell 4   |
Output
| Header 1 | Header 2 | |----------|----------| | Cell 1 | Cell 2 | | Cell 3 | Cell 4 |
Markdown
| Left | Center | Right |
|:-----|:------:|------:|
| Left | Center | Right |
Output
| Left | Center | Right | |:-----|:------:|------:| | Left | Center | Right |

Blockquotes

Quote text or add callouts

Markdown
> This is a blockquote
Output
> This is a blockquote
Markdown
> Multi-line blockquote
> with multiple lines
Output
> Multi-line blockquote > with multiple lines
Markdown
> Nested quotes
>> Are also possible
Output
> Nested quotes >> Are also possible

Horizontal Rules

Create visual separators

Markdown
---
Output

Markdown
***
Output

Markdown
___
Output

Escaping Characters

Display special characters literally

Markdown
\*Not italic\*
Output
\*Not italic\*
Markdown
\# Not a heading
Output
\# Not a heading
Markdown
\`Not code\`
Output
\`Not code\`

Line Breaks

Control line spacing

Markdown
Line 1  
Line 2 (two spaces before newline)
Output
Line 1 Line 2 (two spaces before newline)
Markdown
Paragraph 1

Paragraph 2 (blank line)
Output
Paragraph 1 Paragraph 2 (blank line)

Quick Reference

Common Markdown syntax at a glance

# Header

H1 Header

## Header

H2 Header

**bold**

Bold text

*italic*

Italic text

`code`

Inline code

```code```

Code block

- List

Unordered list

1. List

Ordered list

[Link](url)

Create link

![Alt](img.jpg)

Insert image

> Quote

Blockquote

---

Horizontal rule

| Table |

Create table

- [ ] Task

Task list

~~text~~

Strikethrough

Ready to Convert Your Markdown?

Use our free Markdown to HTML converter to transform your Markdown documents into clean HTML code instantly.