Markdown Cheat Sheet
Master Markdown with this comprehensive syntax guide. Search and find the exact formatting you need with examples and usage tips.
Try Our Markdown Editor
Want to practice Markdown? Check out our Markdown Editor - a powerful tool that lets you write and preview Markdown in real-time. Perfect for testing syntax and creating content!
#
HeadersCreate H1 header
Syntax:
# Header 1
Examples:
# This is an H1
Creates a level 1 headerHeader 1
========
Alternative H1 syntax with underlineNotes:
Use one # for the largest header
##
HeadersCreate H2 header
Syntax:
## Header 2
Examples:
## This is an H2
Creates a level 2 headerHeader 2
--------
Alternative H2 syntax with underlineNotes:
Use two ## for the second largest header
###
HeadersCreate H3 header
Syntax:
### Header 3
Examples:
### This is an H3
Creates a level 3 headerNotes:
Use three ### for the third largest header
####
HeadersCreate H4 header
Syntax:
#### Header 4
Examples:
#### This is an H4
Creates a level 4 headerNotes:
Use four #### for the fourth largest header
#####
HeadersCreate H5 header
Syntax:
##### Header 5
Examples:
##### This is an H5
Creates a level 5 headerNotes:
Use five ##### for the fifth largest header
######
HeadersCreate H6 header
Syntax:
###### Header 6
Examples:
###### This is an H6
Creates a level 6 header (smallest)Notes:
Use six ###### for the smallest header
**text**
Text FormattingMake text bold
Syntax:
**bold text**
Examples:
**This is bold**
Creates bold text__This is also bold__
Alternative bold syntax using underscoresNotes:
You can use either ** or __ for bold text
*text*
Text FormattingMake text italic
Syntax:
*italic text*
Examples:
*This is italic*
Creates italic text_This is also italic_
Alternative italic syntax using underscoresNotes:
You can use either * or _ for italic text
***text***
Text FormattingMake text bold and italic
Syntax:
***bold and italic***
Examples:
***This is bold and italic***
Creates bold and italic text**_This is also bold and italic_**
Alternative using mixed syntaxNotes:
Combine bold and italic formatting
~~text~~
Text FormattingStrike through text
Syntax:
~~strikethrough~~
Examples:
~~This text is crossed out~~
Creates strikethrough textNotes:
Use double tildes for strikethrough effect
`code`
Text FormattingInline code formatting
Syntax:
`code`
Examples:
Use `console.log()` to print
Creates inline code formatting`` `backtick` ``
Use double backticks to include backticks in codeNotes:
Use backticks for inline code formatting
* item
ListsCreate unordered list
Syntax:
* List item
Examples:
* Item 1
* Item 2
* Item 3
Creates a bulleted list- Item 1
- Item 2
- Item 3
Alternative using hyphens+ Item 1
+ Item 2
+ Item 3
Alternative using plus signsNotes:
You can use *, -, or + for unordered lists
1. item
ListsCreate ordered list
Syntax:
1. List item
Examples:
1. First item
2. Second item
3. Third item
Creates a numbered list1. Item one
1. Item two
1. Item three
You can use 1. for all itemsNotes:
Numbers can be in any order, Markdown will auto-number
* item
ListsCreate nested list
Syntax:
* Nested item
Examples:
* Item 1
* Nested item
* Another nested
* Item 2
Creates nested lists with indentationNotes:
Use 2-4 spaces or 1 tab for nesting
- [ ] task
ListsCreate task list with checkboxes
Syntax:
- [ ] Task item
Examples:
- [x] Completed task
Checked task item- [ ] Incomplete task
Unchecked task itemNotes:
Use [x] for completed tasks, [ ] for incomplete
[text](url)
LinksCreate inline link
Syntax:
[link text](URL)
Examples:
[Google](https://google.com)
Creates a link to Google[Link with title](https://example.com "Title")
Link with hover titleNotes:
URL can be relative or absolute
[text][ref]
LinksCreate reference-style link
Syntax:
[link text][reference]
Examples:
[Google][1]
[1]: https://google.com
Reference link with number[Google][google-link]
[google-link]: https://google.com
Reference link with nameNotes:
Define the reference anywhere in the document
<url>
LinksCreate automatic link
Syntax:
<URL>
Examples:
<https://example.com>
Creates automatic link<email@example.com>
Creates automatic email linkNotes:
Angle brackets create automatic links

ImagesEmbed inline image
Syntax:

Examples:

Embeds an image with alt text
Image with title attributeNotes:
Very similar to links, but with ! at the beginning
![alt][ref]
ImagesEmbed reference-style image
Syntax:
![alt text][reference]
Examples:
![Logo][logo]
[logo]: logo.png
Reference-style imageNotes:
Define the image reference separately
```code```
CodeCreate fenced code block
Syntax:
```language
code
```
Examples:
```javascript
console.log('Hello');
```
JavaScript code block with syntax highlighting```
Plain code block
```
Code block without language specificationNotes:
Use three backticks for code blocks
code
CodeCreate indented code block
Syntax:
code line
Examples:
function hello() {
console.log('Hello');
}
Code block using 4-space indentationNotes:
Indent with 4 spaces or 1 tab for code blocks
| col1 | col2 |
TablesCreate table
Syntax:
| Header 1 | Header 2 |
| -------- | -------- |
Examples:
| Name | Age |
| ---- | --- |
| John | 25 |
| Jane | 30 |
Simple table with headers and dataNotes:
Use pipes | to separate columns, dashes for header separator
| :--- | :---: | ---: |
TablesCreate table with column alignment
Syntax:
| Left | Center | Right |
| :--- | :----: | ----: |
Examples:
| Left | Center | Right |
| :--- | :----: | ----: |
| L | C | R |
Table with left, center, and right alignmentNotes:
Use :--- for left, :---: for center, ---: for right alignment
> quote
BlockquotesCreate blockquote
Syntax:
> Quote text
Examples:
> This is a blockquote
Simple blockquote> Multi-line
> blockquote
> example
Multi-line blockquoteNotes:
Use > at the beginning of each line
>> quote
BlockquotesCreate nested blockquote
Syntax:
>> Nested quote
Examples:
> Outer quote
>> Nested quote
> Back to outer
Nested blockquotesNotes:
Use multiple > for nesting levels
---
Horizontal RulesCreate horizontal rule
Syntax:
---
Examples:
---
Horizontal rule with dashes***
Horizontal rule with asterisks___
Horizontal rule with underscoresNotes:
Use 3 or more -, *, or _ on their own line
Create line break
Syntax:
Line 1
Line 2
Examples:
First line
Second line
Line break with two trailing spacesFirst line\
Second line
Line break with backslash (some parsers)Notes:
End line with 2 spaces for line break
[^ref]
FootnotesCreate footnote reference
Syntax:
Text[^1]
Examples:
Text with footnote[^1]
[^1]: Footnote content
Numbered footnoteText with footnote[^note]
[^note]: Named footnote
Named footnoteNotes:
Define footnotes at the bottom of the document
<tag>
HTMLUse HTML tags directly
Syntax:
<tag>content</tag>
Examples:
<div>HTML content</div>
HTML div element<span style="color: red">Red text</span>
Inline HTML with stylingNotes:
Most HTML tags work directly in Markdown
<!-- -->
HTMLAdd HTML comments
Syntax:
<!-- comment -->
Examples:
<!-- This is a comment -->
HTML comment (not displayed)Notes:
Comments are not rendered in the output
\char
EscapingEscape special characters
Syntax:
\special_character
Examples:
\*Not italic\*
Escape asterisks to prevent italic formatting\# Not a header
Escape hash to prevent header formatting\[Not a link\]
Escape brackets to prevent link formattingNotes:
Use backslash to escape Markdown special characters
: definition
ListsCreate definition list
Syntax:
Term
: Definition
Examples:
Apple
: A red fruit
Banana
: A yellow fruit
Definition list with terms and definitionsNotes:
Not supported by all Markdown parsers
*[abbr]:
Text FormattingDefine abbreviations
Syntax:
*[HTML]: HyperText Markup Language
Examples:
The HTML specification
*[HTML]: HyperText Markup Language
Abbreviation with hover definitionNotes:
Not supported by all Markdown parsers
Complete Markdown Reference
Below is the complete visual reference guide showing Markdown syntax alongside rendered output examples.
Headers
Syntax
Result
H1
H2
H3
H4
H5
H6
Alt-H1
Alt-H2
Emphasis
Syntax
Result
italic or italic
bold or bold
bold and italic
strikethrough
Lists
Syntax
Result
Unordered list:
- Item 1
- Item 2
- Nested item 2.1
- Nested item 2.2
- Item 3
Alternate syntax:
- Item 1
- Item 2
- Item 3
Ordered list:
- First item
- Second item
- Third item
- Nested ordered item
- Another nested item
Links
Syntax
Result
Inline-style:
Link text
Inline with title:
Link with title
Reference-style:
Reference link
Automatic links:
https://example.com
Plain URLs:
https://example.com
Images
Syntax
Result
Inline-style: [Image: Alt text]
With title: [Image: Alt text with title]
Reference-style: [Image: Alt text]
Code
Syntax
Result
Inline code: code
Code block with syntax highlighting:
Indented code block:
Blockquotes
Syntax
Result
Single blockquote
Blockquote with multiple lines
Nested blockquotesNested quote
Blockquotes with Markdown inside
Tables
Syntax
Result
Header 1 | Header 2 | Header 3 |
---|---|---|
Cell 1 | Cell 2 | Cell 3 |
Cell 4 | Cell 5 | Cell 6 |
Alignment with colons:
Left | Center | Right |
---|---|---|
Aligned | Aligned | Aligned |
Left | Center | Right |
Horizontal Rule
Syntax
Result
Three or more:
Line Breaks
Syntax
Result
Line 1 with two spaces at end
Line 2
Paragraph 1 with empty line between
Paragraph 2
Footnotes
Syntax
Result
Here's a sentence with a footnote1.
1 This is the footnote text.
You can also use named footnotes2.
2 Named footnotes still appear numbered.
Task Lists
Syntax
Result
- Completed task
- Uncompleted task
- Task with bold text
- Another unchecked task
Inline HTML
Syntax
Result
You can use HTML tags directly in Markdown:
Click to expand
Hidden content here...