MarkdownLab

Markdown Cheat Sheet

Every basic Markdown element and the most common GitHub Flavored Markdown (GFM) extensions, each with a copyable snippet and its rendered result.

Want to try syntax live instead? Open the Markdown editor for a real-time, sanitized preview as you type.

Basic syntax

The core CommonMark elements every Markdown parser supports.

ElementMarkdownResult
Heading# Heading 1 ## Heading 2 ### Heading 3Heading 1
Bold**bold text**bold text
Italic*italic text*italic text
Bold and italic***bold and italic***bold and italic
Blockquote> Quoted textQuoted text
Ordered list1. First item 2. Second item 3. Third item
  1. First item
  2. Second item
Unordered list- First item - Second item
  • First item
  • Second item
Inline code`code`code
Horizontal rule---
Link[title](https://example.com)title
Image![alt text](image.png)alt text (renders the image)

Extended syntax (GitHub Flavored Markdown)

These extensions are not part of core CommonMark, but are supported by GitHub, most chat apps, and every tool on this site.

Tables

Pipes separate columns; the second row's colons set column alignment.

| Left | Center | Right |
| :--- | :---: | ---: |
| a | b | c |
LeftCenterRight
abc

Task lists

A dash, a checkbox, and a space — checked items use an x.

- [x] Completed task
- [ ] Open task
  • Completed task
  • Open task

Strikethrough

Double tildes cross out text.

~~strikethrough text~~
strikethrough text

Fenced code blocks with a language

Three backticks, an optional language tag (used for syntax highlighting in most renderers), then the code.

```js
function greet(name) {
  return `Hello, ${name}!`;
}
```
function greet(name) {
  return `Hello, ${name}!`;
}

Autolinks

A bare URL becomes a clickable link automatically — no brackets or parentheses needed.

https://example.com

Footnotes (support varies)

Footnotes use a caret and a bracketed label, defined later in the document:

Here's a claim.[^1]

[^1]: This is the footnote.

Footnotes render on GitHub, but they are not part of core CommonMark or the table/task-list extensions most other parsers implement — including this site's own converters. Test footnote syntax in your actual target renderer before relying on it.

Frequently asked questions

What's the difference between CommonMark and GFM?

CommonMark is the strict, unambiguous specification most parsers implement. GitHub Flavored Markdown (GFM) is a superset that adds tables, task lists, strikethrough, and autolinks on top of CommonMark. This site's own tools support CommonMark plus these GFM extensions.

Can I print this cheat sheet or save it as a PDF?

Yes — use the Print / Save as PDF button near the top of the page. It opens your browser's native print dialog with a compact, chrome-free layout; choose "Save as PDF" as the destination.

Do all of this site's tools support every row on this page?

The basic syntax table is supported everywhere. The extended GFM section (tables, task lists, strikethrough, autolinks) is supported by every converter and the editor's live preview. Footnotes are the one exception — see the note in that section.

Where can I try this syntax live?

Open the Markdown editor, which renders a sanitized live preview as you type — a fast way to confirm exactly how a piece of syntax will render before you commit to it in a real document.

How do I turn a Markdown table into a document or spreadsheet?

Use the table generator to build a table interactively, or paste existing Markdown into Markdown to Word, Markdown to HTML, or Markdown to PDF to export it in another format.