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...
π What is Markdown?
Markdown is a lightweight markup language created by John Gruber in 2004 with significant contributions from Aaron Swartz. Designed to be easy to read and write, Markdown allows you to format text using simple, intuitive syntax that converts to HTML. With its philosophy of "easy to write, easy to read," Markdown has become the standard for documentation, README files, blogs, and technical writing across the software industry and beyond.
π Core Benefits
- β Simplicity: Learn the entire syntax in minutes, not hours
- β Readability: Plain text format readable without rendering
- β Portability: Works anywhere plain text works
- β Platform-independent: No vendor lock-in or proprietary formats
- β Web-ready: Converts cleanly to HTML for web publishing
- β Version control friendly: Perfect for Git and collaborative workflows
π‘ Why Use Markdown?
- β’ Focus on content: Write without worrying about formatting
- β’ Fast writing: No need to reach for mouse or complex menus
- β’ Future-proof: Plain text will always be readable
- β’ Universal support: Supported everywhere from GitHub to blogs
- β’ Easy collaboration: Share and edit with anyone, any editor
- β’ Multiple outputs: Convert to HTML, PDF, Word, slides, etc.
π Markdown Philosophy
"Easy to Write"
Markdown syntax should be intuitive and quick to type. No complex tags or memorizing dozens of formatting codes.
"Easy to Read"
The raw Markdown text should be readable and make sense even without being rendered to HTML.
Example Comparison
Markdown:
**Bold text** and *italic text*
HTML:
<strong>Bold text</strong> and <em>italic text</em>
π― Common Use Cases
Software Development
- β’ README files and documentation
- β’ GitHub/GitLab issues and comments
- β’ Code documentation and wikis
- β’ Release notes and changelogs
- β’ API documentation
Content Creation
- β’ Blog posts and articles
- β’ Technical writing and tutorials
- β’ Books and e-books
- β’ Academic papers and notes
- β’ Personal journaling
Team Collaboration
- β’ Meeting notes and agendas
- β’ Project documentation
- β’ Task lists and project planning
- β’ Knowledge base articles
- β’ Email formatting (some clients)
π Markdown Everywhere
Popular Platforms
- β’ GitHub: READMEs, issues, pull requests, discussions
- β’ Reddit: Comments and posts formatting
- β’ Discord/Slack: Message formatting and rich text
- β’ Notion: Page content and documentation
- β’ Obsidian: Note-taking and knowledge management
- β’ Jekyll/Hugo: Static site generators for blogs
Tools & Editors
- β’ Typora: WYSIWYG Markdown editor
- β’ Mark Text: Real-time preview editor
- β’ VS Code: Built-in Markdown preview and extensions
- β’ Zettlr: Academic writing and research
- β’ Bear: Note-taking app with Markdown support
- β’ Pandoc: Universal document converter
π§ Markdown Flavors
Standard Markdown
Original specification by John Gruber with basic formatting elements.
CommonMark
Standardized specification that clarifies ambiguities in original Markdown.
GitHub Flavored Markdown (GFM)
GitHub's extended version with tables, task lists, strikethrough, and more.
Extended Features
- β’ Tables: Pipe-separated table syntax
- β’ Task Lists: Checkboxes with - [x] syntax
- β’ Strikethrough: ~~crossed out text~~
- β’ Syntax Highlighting: Code blocks with language
- β’ Emoji: :emoji: shortcode support
- β’ Math: LaTeX math expressions (some flavors)
π Getting Started with Markdown
1. Choose Your Editor
Start with any text editor β’ Try online editors like our Markdown Editor β’ Use VS Code with Markdown preview for development
2. Learn the Basics
Master headers (#), bold (**text**), italic (*text*) β’ Practice links and lists β’ Experiment with code blocks
3. Practice with Real Content
Write a README for a project β’ Create documentation β’ Try our interactive Markdown Editor for immediate feedback
4. Explore Advanced Features
Learn tables, task lists, and code syntax highlighting β’ Explore your platform's specific Markdown flavor
βοΈ Markdown vs. Alternatives
Markdown Advantages
- β’ Lightweight and fast to write
- β’ Human-readable source format
- β’ Platform and tool independent
- β’ Version control friendly
- β’ Wide ecosystem support
- β’ Easy to learn and remember
Alternatives
- β’ HTML: More powerful but verbose and complex
- β’ reStructuredText: More features but steeper learning curve
- β’ AsciiDoc: More structured, better for large documents
- β’ LaTeX: Academic standard, complex but powerful
- β’ Rich Text Editors: WYSIWYG but not portable
π Markdown Best Practices
Writing Style
- β’ Use consistent heading hierarchy
- β’ Add blank lines around headers and lists
- β’ Prefer ATX-style headers (# instead of underlines)
- β’ Use meaningful link text, not "click here"
- β’ Keep lines under 80 characters when possible
Organization
- β’ Structure content with clear headings
- β’ Use tables of contents for long documents
- β’ Organize files in logical directory structures
- β’ Include cross-references between related documents
- β’ Use consistent naming conventions
Markdown Mastery: "The best way to learn Markdown is to start writing with it. Its simplicity means you'll be productive immediately, and its power will grow with your needs." Use this cheat sheet as your guide and start creating! βοΈ