FAST MARKDOWN REFERENCE

Markdown Cheat Sheet: Syntax & Examples

Quickly find the Markdown formatting you need. Browse headings, bold text, links, lists, tables, checkboxes and code examples. Copy any example or print this free Markdown cheat sheet for later.

35 examples Copy syntax Print-friendly

FIND AND COPY MARKDOWN

Markdown Syntax Quick Reference

Search by name, copy the example you need, and paste it into your document.

Open Markdown Editor

What do the labels mean? CommonMark: basic Markdown that works in most apps. GFM: GitHub-style features, including tables and checklists. Extended: extra formatting that some apps support. GitHub-specific: special GitHub features that may look different elsewhere.

Showing 35 of 35 examples.

BASIC REFERENCE

Basic Markdown Syntax

Headings, bold and italic text, paragraphs, quotes and everyday formatting.

11 examples

Heading 1

Type # followed by a space at the start of a line for your main heading.

CommonMark
MARKDOWN TO COPY
# Main Heading
WHAT IT LOOKS LIKE
Main Heading

Heading 2

Type ## and a space to add a section heading.

CommonMark
MARKDOWN TO COPY
## Section Heading
WHAT IT LOOKS LIKE
Section Heading

Heading 3

Type ### and a space for a smaller heading. You can use up to six # symbols.

CommonMark
MARKDOWN TO COPY
### Smaller Heading
WHAT IT LOOKS LIKE
Smaller Heading

Bold

Put two asterisks on each side of text to make it bold.

CommonMark
MARKDOWN TO COPY
**important text**
WHAT IT LOOKS LIKE

important text

Italic

Put one asterisk on each side to make text italic.

CommonMark
MARKDOWN TO COPY
*emphasized text*
WHAT IT LOOKS LIKE

emphasized text

Bold and Italic

Three asterisks on each side make text both bold and italic.

CommonMark
MARKDOWN TO COPY
***very important***
WHAT IT LOOKS LIKE

very important

Paragraphs

Leave a blank line between paragraphs.

CommonMark
MARKDOWN TO COPY
First paragraph.

Second paragraph.
WHAT IT LOOKS LIKE

First paragraph.

Second paragraph.

Line Break

Add two spaces at the end of the first line, then press Enter. This moves text to the next line without starting a new paragraph. You can also end the line with a backslash.

CommonMark
MARKDOWN TO COPY
First line  
Second line
WHAT IT LOOKS LIKE

First line
Second line

Blockquote

Start a line with > and a space to create a quotation.

CommonMark
MARKDOWN TO COPY
> A useful quotation.
WHAT IT LOOKS LIKE

A useful quotation.

Horizontal Rule

Type --- on its own line to separate two sections.

CommonMark
MARKDOWN TO COPY
---
WHAT IT LOOKS LIKE

Escape a Character

Add a backslash before an asterisk or other Markdown symbol when you want to show the symbol itself.

CommonMark
MARKDOWN TO COPY
\*not italic\*
WHAT IT LOOKS LIKE

*not italic*

LISTS REFERENCE

Markdown Lists

Bulleted lists, numbered steps and nested items.

3 examples

Bulleted List

Start each list item with a hyphen and space.

CommonMark
MARKDOWN TO COPY
- First item
- Second item
- Third item
WHAT IT LOOKS LIKE
  • First item
  • Second item
  • Third item

Numbered List

Start each line with a number, period and space.

CommonMark
MARKDOWN TO COPY
1. First step
2. Second step
3. Third step
WHAT IT LOOKS LIKE
  1. First step
  2. Second step
  3. Third step

Nested List

Indent a bullet beneath another bullet to make a smaller list within it. Keep the spacing consistent.

CommonMark
MARKDOWN TO COPY
- Main item
  - Sub-item
  - Another sub-item
WHAT IT LOOKS LIKE
  • Main item
    • Sub-item
    • Another sub-item

TABLES REFERENCE

Markdown Table Syntax

Create tables and choose how text lines up in each column.

5 examples

Basic Table

Separate cells with | and add a dashed row below the column names. Tables work on GitHub and in other apps that support Markdown tables.

GFM
MARKDOWN TO COPY
| Name | Score |
| --- | --- |
| Alice | 95 |
| Bob | 88 |
WHAT IT LOOKS LIKE
NameScore
Alice95
Bob88

Left-Aligned Table

Put : before the dashes to align the text in that column to the left.

GFM
MARKDOWN TO COPY
| Name | Role |
| :--- | :--- |
| Ada | Writer |
WHAT IT LOOKS LIKE
NameRole
AdaWriter

Centered Table

Put : at both ends of the dashes to center the text in a column.

GFM
MARKDOWN TO COPY
| Task | Status |
| :---: | :---: |
| Review | Done |
WHAT IT LOOKS LIKE
TaskStatus
ReviewDone

Right-Aligned Table

Put : after the dashes to align the text in that column to the right.

GFM
MARKDOWN TO COPY
| Item | Price |
| :--- | ---: |
| Pen | $2 |
WHAT IT LOOKS LIKE
ItemPrice
Pen$2

Pipe Character in a Table

Write \| when you want a visible | inside one table cell, not a new column.

GFM
MARKDOWN TO COPY
| Text |
| --- |
| Left \| right |
WHAT IT LOOKS LIKE
Text
Left | right

CODE REFERENCE

Markdown Code Formatting

Add short code snippets or longer code examples to your text.

4 examples

Inline Code

Put one backtick on each side of a short command or piece of code.

CommonMark
MARKDOWN TO COPY
Use `npm install` to install it.
WHAT IT LOOKS LIKE

Use npm install to install it.

Code Block

Put three backticks above and below the code you want to show.

CommonMark
MARKDOWN TO COPY
```
Hello, Markdown!
```
WHAT IT LOOKS LIKE
Hello, Markdown!

Code Block with Language

Add a language name, such as js, after the opening backticks. Some apps will highlight the code in color.

CommonMark
MARKDOWN TO COPY
```js
console.log("Hello!");
```
WHAT IT LOOKS LIKE
console.log("Hello!");

Indented Code

Start a line with four spaces to show it as code instead of normal text.

CommonMark
MARKDOWN TO COPY
    const answer = 42;
WHAT IT LOOKS LIKE
const answer = 42;

GITHUB REFERENCE

GitHub Flavored Markdown

Use checklists, crossed-out text, footnotes and highlighted GitHub notes.

7 examples

Strikethrough

Put ~~ on both sides of text to cross it out.

GFM
MARKDOWN TO COPY
~~Outdated text~~
WHAT IT LOOKS LIKE

Outdated text

Unchecked Task

Start a list item with - [ ] to add a task you have not finished.

GFM
MARKDOWN TO COPY
- [ ] Write the first draft
WHAT IT LOOKS LIKE
  • Write the first draft

Completed Task

Start a list item with - [x] to mark a task as done.

GFM
MARKDOWN TO COPY
- [x] Review the draft
WHAT IT LOOKS LIKE
  • Review the draft

Automatic URL in GitHub Markdown

On GitHub, a web address often becomes a clickable link even without [text](url) formatting.

GFM
MARKDOWN TO COPY
https://example.com
WHAT IT LOOKS LIKE

Footnote

Use [^1] beside a sentence and add the matching note lower down. GitHub supports footnotes in Markdown files, but not in wikis.

Extended
MARKDOWN TO COPY
This has a note.[^1]

[^1]: Extra information.
WHAT IT LOOKS LIKE

This has a note.1

Footnotes
  1. Extra information. ↩

GitHub Note Alert

On GitHub, this appears as a highlighted note. Other apps may display it as a normal quote.

GitHub-specific
MARKDOWN TO COPY
> [!NOTE]
> Useful information for readers.
WHAT IT LOOKS LIKE
How it looks on GitHub

GitHub highlights this message. Other Markdown apps may show it as a normal quote.

GitHub Warning Alert

On GitHub, this appears as a highlighted warning. Other Markdown apps may display it as a normal quote.

GitHub-specific
MARKDOWN TO COPY
> [!WARNING]
> Check this before continuing.
WHAT IT LOOKS LIKE
How it looks on GitHub

GitHub highlights this message. Other Markdown apps may show it as a normal quote.

What Is a Markdown Cheat Sheet?

A Markdown cheat sheet is a quick reference for the symbols used to format plain text. It pairs Markdown syntax with examples of the formatted result, so you can find a heading, link, list, table or code example without memorizing every symbol.

Use the searchable reference above when writing notes, project READMEs or documentation. For a full writing experience, copy an example into our online Markdown editor and see the document update as you type. If you already have a file to read, try the Markdown Viewer.

How to Use This Markdown Cheat Sheet

Look up a format, copy the text, then paste it wherever you write Markdown.

01

Find what you need

Search for something like “table” or “link”, or choose a category to browse examples.

02

Copy an example

Select Copy beside an example. The copied text keeps spaces and line breaks, even when those are hard to see.

03

Paste and edit

Paste the example into your document or try it in our Markdown Editor.

Markdown Examples for Real Documents

Want to write a README, meeting notes or release notes? Copy one of these complete examples, paste it into the Markdown Editor, and make it your own.

GitHub README Example

Introduce your project, list its features and show readers how to get started.

MARKDOWN TO COPY
# Sample Project

A short description of what this project does.

## Features
- [x] Works in the browser
- [ ] Add more examples

## Getting Started
```bash
npm install
```

Read the [documentation](https://example.com).
PREVIEW
Sample Project

A short description of what this project does.

Features
  • Works in the browser
  • Add more examples
Getting Started
npm install

Read the documentation.

Meeting Notes and Checklist

Keep a meeting summary, decisions and follow-up tasks together.

MARKDOWN TO COPY
# Team Meeting

**Date:** Add a date

## Decisions
- Publish the first draft
- Review the design

## Action Items
- [x] Share meeting notes
- [ ] Send the final update

> Next review: Friday.
PREVIEW
Team Meeting

Date: Add a date

Decisions
  • Publish the first draft
  • Review the design
Action Items
  • Share meeting notes
  • Send the final update

Next review: Friday.

Release Notes with a Table

Summarize what changed, what is new and what has been completed.

MARKDOWN TO COPY
# Release Notes

## Version 1.1

This release improves **performance** and documentation.

### Changes
- Faster search
- Updated Markdown examples

| Change | Status |
| :--- | :---: |
| Search | Done |
| Documentation | Done |
PREVIEW
Release Notes
Version 1.1

This release improves performance and documentation.

Changes
  • Faster search
  • Updated Markdown examples
ChangeStatus
SearchDone
DocumentationDone

Basic Markdown vs. GitHub Flavored Markdown

Headings and links work in most Markdown apps. Tables, checklists and alerts may look different depending on where you open the file.

FormattingCommonMarkGitHub-style MarkdownWhat to know
Headings, links, bold, italic and listsYesYesThese are widely supported Markdown basics.
Tables, checkboxes and crossed-out textNoYesUse GitHub or another app that supports Markdown tables and checklists.
Code blocks with a language nameYesYesCode may have different colors depending on the app.
GitHub Alerts such as NOTE or WARNINGNo special stylingAvailable on GitHubOther apps may show a normal quote instead of a colored alert.

The same Markdown can look different from one app to another. GitHub supports footnotes in many places, but not in wikis. Colored GitHub alerts also need an app that supports them.

For detailed syntax rules, see the CommonMark specification and GitHub Flavored Markdown specification.

Markdown Table Syntax and Alignment

To make a Markdown table, write column names on the first line and a row of dashes underneath. Use | between cells and a colon in the dashed row to set alignment. Make sure there is one dashed section for every column. If a paragraph comes before the table, leave a blank line between them.

SeparatorAlignment
:---Left
:---:Center
---:Right

To show | inside a table cell, write \|. If your table appears as plain text, the app you are using may not support Markdown tables.

Working with larger tables?

Create a table without typing every |, or tidy up an existing Markdown table.

GitHub Markdown: Tasks, Footnotes and Alerts

GitHub adds features such as checklists, tables and footnotes. Write - [ ] for a task you still need to do, or - [x] for one you have finished. To add a footnote, put [^1] beside the text and write the matching note lower down in your document.

On GitHub, > [!NOTE] and > [!WARNING] create highlighted notes and warnings. Copy their Markdown here, but remember that other apps may show them as ordinary quotes.

See GitHub's Markdown documentation for the latest platform details.

Printable Markdown Cheat Sheet

Choose Print / Save as PDF above to open your browser's print window. Select a printer for a paper copy, or choose the browser's Save as PDF option when it is available. Printing uses a simplified layout with the Markdown examples and results.

Want a copy you can edit? Choose Download .md to save the full reference as a Markdown file. You can open the downloaded file in the Markdown Editor or any compatible text editor.

Common Markdown Mistakes

If the text does not look right, check the spacing and symbols first. Some features may also be unavailable in your Markdown app.

A heading stays plain text

Type a space after the #. Write # Heading, not #Heading.

Two lines appear as one paragraph

Add two spaces at the end of the first line, use a trailing backslash, or leave a blank line to start a new paragraph.

A table appears as text

Add a row of dashes below your column names. Your app also needs to support Markdown tables.

A checklist does not show checkboxes

Use - [ ] for something still to do, or - [x] for a finished task. Checklists appear only in apps that support them.

An image is missing

Check where the image is saved. A link like ./diagram.png works only when the image is in the right folder next to your document.

Asterisks format text unexpectedly

Put a backslash before an asterisk when you want to show the asterisk itself, such as \*word\*.

Before and After: Fix Broken Markdown

Compare the incorrect and corrected examples, then apply the same fix to your document.

Headings need a space

Add a space after the # symbol.

Instead of
#Heading
Write this
# Heading

Keep sub-items indented

Add two spaces before the second bullet to show it beneath the first.

Instead of
- Parent
- Child
Write this
- Parent
  - Child

Add the table divider

Add a dashed row between the column names and the first data row.

Instead of
| Name | Score |
| Ana | 90 |
Write this
| Name | Score |
| --- | --- |
| Ana | 90 |

Show asterisks as text

Put a backslash before each asterisk so the word is not italic.

Instead of
*filename*
Write this
\*filename\*

More Markdown Tools

Frequently Asked Questions

What is a Markdown cheat sheet?+

A Markdown cheat sheet shows the symbols used to format text, with examples for headings, bold text, links, lists, tables and code. Find the format you need, see what it looks like, and copy it into your document.

How do I make text bold in Markdown?+

Put two asterisks before and after a word or phrase, such as **important**, to make it bold.

How do I add a link in Markdown?+

Write the link text in square brackets, then the URL in parentheses: [Visit Example](https://example.com). You can also use angle brackets around a full URL.

How do I create a Markdown table?+

Write a row of column headings, a separator row using dashes, and one row for each set of values. Use | between cells. For example: | Name | Score | followed by | --- | --- |. Tables work in GitHub and other apps that support GitHub-style Markdown, but not in every Markdown app.

How do I make a checkbox in Markdown?+

Use - [ ] for an unchecked task or - [x] for a completed task. Checklists work on GitHub and in other apps that support them.

How do I add a line break in Markdown?+

End the first line with two spaces and press Enter, or add a backslash at the end of the line. A blank line starts a new paragraph.

Is GitHub Markdown the same as standard Markdown?+

GitHub supports basic Markdown plus tables, task lists and crossed-out text. GitHub also has its own styled alerts, which may look like ordinary quotes in other apps.

Can I print or download this Markdown cheat sheet?+

Yes. Choose Print / Save as PDF to open your browser's print options, where you can print or save a PDF if your browser supports it. You can also choose Download .md for a Markdown version of the reference.

How do I make a nested list in Markdown?+

To put a bullet underneath another bullet, indent it by two spaces in a simple list. Keep the indentation consistent so the second item stays inside the first.

How do I write a pipe character inside a Markdown table?+

Put a backslash before the | character when you want to show it inside a cell, as in left \| right. Without the backslash, the table treats it as a column divider.

What is the difference between a line break and a paragraph in Markdown?+

Leave a blank line to start a new paragraph. To move text to the next line without a new paragraph, type two spaces or a backslash at the end of the line, then press Enter.

Can I use this Markdown syntax in a GitHub README?+

Yes. Yes. README.md files on GitHub support headings, links, tables and checklists. GitHub alerts may look different in other Markdown apps.