Learn more

Markdown Syntax Cheat Sheet

Quick reference for all essential Markdown syntax

Try Live Preview

This cheat sheet provides a quick reference for all common Markdown syntax. Bookmark this page and use it as you write. Each section includes the Markdown syntax and what it produces.

Text Formatting

ElementSyntaxResult
Bold**bold**bold
Italic*italic*italic
Bold + Italic***both***both
Strikethrough~~struck~~struck
Inline Code`code`code

Headings

# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6

Always include a space after the hash symbols.

Lists

Unordered List

- Item one
- Item two
  - Nested item
- Item three

Ordered List

1. First
2. Second
3. Third

Task List

- [x] Completed task
- [ ] Incomplete task

Links and Images

Links

[Link Text](https://example.com)
[Link with Title](https://example.com "Title")

Images

![Alt Text](image.jpg)
![Alt Text](image.jpg "Image Title")

Reference Links

[Link Text][ref]

[ref]: https://example.com

Code

Inline Code

Use `backticks` for inline code.

Code Block

```
Code block without syntax highlighting
```

Syntax Highlighted Code Block

```javascript
const greeting = "Hello, World!";
console.log(greeting);
```

Tables

| Header 1 | Header 2 | Header 3 |
|----------|----------|----------|
| Cell 1   | Cell 2   | Cell 3   |
| Cell 4   | Cell 5   | Cell 6   |

Table Alignment

| Left | Center | Right |
|:-----|:------:|------:|
| L    | C      | R     |

Blockquotes

> This is a blockquote.
>
> It can have multiple paragraphs.

Horizontal Rule

---

You can also use *** or ___.

Escaping Characters

Use a backslash to display literal characters:

\*not italic\*
\# not a heading

Characters you can escape: \ ` * _ {} [] () # + - . !

Related Resources

Markdown Syntax Cheat Sheet | Markdown2ANY | Markdown2ANY