100% Private

Markdown Cheat Sheet: Complete Syntax Guide

A comprehensive reference for Markdown syntax covering everything from basic text formatting to advanced GitHub Flavored Markdown features.

Headings

Create headings using # symbols:

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

Alternative Syntax

Heading 1
=========

Heading 2
---------

Text Formatting

StyleMarkdownResult
Bold**bold text** or __bold text__bold text
Italic*italic text* or _italic text_italic text
Bold + Italic***bold italic***bold italic
Strikethrough~~deleted text~~deleted text
Inline code`code`code

Horizontal Rules

---
***
___

(Three or more dashes, asterisks, or underscores)

Lists

Unordered Lists

- Item 1
- Item 2
  - Nested item
  - Another nested
- Item 3

* Also works with asterisks
+ Or plus signs
  • Item 1
  • Item 2
    • Nested item
    • Another nested
  • Item 3

Ordered Lists

1. First item
2. Second item
3. Third item

1. Numbers don't matter
1. Markdown renumbers them
1. Automatically
  1. First item
  2. Second item
  3. Third item

Task Lists (GFM)

- [x] Completed task
- [ ] Incomplete task
- [ ] Another todo item

Code

Inline Code

Use `backticks` for inline code.

To include a backtick: ``code with ` backtick``

Code Blocks

```
Plain code block
No syntax highlighting
```

```javascript
// With language specified
function hello() {
  console.log("Hello, World!");
}
```

```python
# Python code
def greet(name):
    return f"Hello, {name}!"
```

Indented Code Blocks

    // Indent with 4 spaces or 1 tab
    function example() {
      return true;
    }

Common Language Identifiers

javascript, js, python, py, java, cpp, c, css, html, json, bash, shell, sql, ruby, go, rust, typescript, ts

Tables

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

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

Result

LeftCenterRight
LCR
LeftCenterRight

Note: Tables are a GitHub Flavored Markdown feature, not standard Markdown.

Blockquotes

> This is a blockquote.
> It can span multiple lines.

> Blockquotes can be nested.
>> Like this.
>>> And even deeper.

> Blockquotes can contain
> - Lists
> - **Formatting**
> - `code`

Result

This is a blockquote. It can span multiple lines.
Blockquotes can be nested.
Like this.

GitHub Flavored Markdown (GFM)

GFM extends standard Markdown with additional features:

Task Lists

- [x] Completed task
- [ ] Incomplete task

Strikethrough

~~strikethrough text~~

Autolinks

Visit https://toolsdock.com

Email me@toolsdock.com

GitHub: @username
Issue: #123

Footnotes

Here's a sentence with a footnote.[^1]

[^1]: This is the footnote content.

Alerts (GitHub specific)

> [!NOTE]
> Useful information

> [!TIP]
> Helpful advice

> [!WARNING]
> Important warning

> [!CAUTION]
> Potential danger

Tools and Resources

Markdown to HTML

Convert Markdown to HTML with live preview.

Convert Now

Quick Reference Card

Basic
  • # Heading
  • **bold**
  • *italic*
  • `code`
  • [link](url)
Lists
  • - unordered
  • 1. ordered
  • - [x] task
Blocks
  • > quote
  • ``` code ```
  • ---

Privacy Notice: This site works entirely in your browser. We don't collect or store your data. Optional analytics help us improve the site. You can deny without affecting functionality.