Discord text formatting: markdown cheat sheet

Updated

Discord uses a dialect of markdown: most of the standard syntax, plus underline, spoilers, subtext and timestamps of its own, minus tables, images and checkboxes. Syntax on the left, what Discord shows on the right (approximated with a standard renderer where Discord-only features have no equivalent). Verified against Discord's Markdown Text 101, Spoiler Tags and developer reference.

Text formatting

Italic, bold, bold italic

*italic* or _italic_
**bold**
***bold italic***

italic or italic
bold
bold italic

Same as standard markdown. Discord lets these stack with underline: __*underline italics*__, __**underline bold**__, __***all three***__.

Underline

__underline__

Discord-only. In GitHub, Slack and most other renderers __double underscores__ mean bold, so do not paste Discord text elsewhere expecting an underline.

Underline in other markdown flavors →

Strikethrough

~~strikethrough~~

strikethrough

Two tildes on each side, the same as GitHub Flavored Markdown.

Spoiler

||hidden until clicked||

Discord-only. Two pipes on each side hide the text behind a grey box; readers click to reveal. Spoilers inside a code block are not hidden. Wrapping a URL in || also spoilers its embed.

Headers, subtext and quotes

Headers (three levels)

# Big header
## Smaller header
### Smallest header

Only #, ## and ### exist. The hash must be the first character on the line and needs a space after it. #### and deeper show as literal text.

Subtext

-# This line is small and grey

Discord-only: a dimmed, smaller line, the opposite of a header. -# must be at the very start of the line with a space after it.

Single-line and multi-line quotes

> Quotes one line

>>> Quotes every line
until the end of the message

Quotes one line

Quotes every line until the end of the message

> quotes the current line only; >>> starts a quote that runs to the end of the message. Both need a space after the angle bracket(s).

Blockquote guide →

Lists

Bulleted and numbered lists

- First item
- Second item
  - Indented with 2 spaces
* Asterisks work too

1. Step one
2. Step two
  • First item
  • Second item
    • Indented with 2 spaces
  • Asterisks work too
  1. Step one
  2. Step two

Bullets take - or *; numbers take 1. and so on. Indent a nested item with two spaces. A space after the marker is required. There are no task-list checkboxes on Discord.

Nested list guide →

Code

Inline code

Run `npm install` first.

Run npm install first.

Single backticks. Formatting characters inside show literally, which makes inline code a handy way to escape markdown.

Code block with syntax highlighting

```js
const answer = 42;
console.log(answer);
```
const answer = 42;
console.log(answer);

Three backticks on their own lines. A language name right after the opening fence (js, py, css, json, diff, ...) turns on highlighting. Spoilers and all other formatting are disabled inside.

Code block guide →

Mentions, emoji and timestamps

Timestamps in the reader's timezone

<t:1760486400:F>  full date and time
<t:1760486400:R>  relative (e.g. "in 2 days")
<t:1760486400:d>  short date

Discord-only. The number is Unix seconds. Styles: t short time, T medium time, d short date, D long date, f long date + short time (default), F full date + short time, R relative. Each reader sees their own timezone and locale.

Mentions and custom emoji (bots and the API)

<@USER_ID>  <#CHANNEL_ID>  <@&ROLE_ID>  <:emoji_name:EMOJI_ID>

This is the raw form the Discord API uses; in the chat box you type @name, #channel or :emoji_name: and Discord inserts these for you. Unicode emoji and :shortcodes: like :tada: both work in messages.

Emoji shortcode guide →

Escaping

Show markdown characters literally

\*not italic\* and \_\_not underlined\_\_ and \|\|not a spoiler\|\|

*not italic* and __not underlined__ and ||not a spoiler||

A backslash before any formatting character prints it as-is. Inline code and code blocks also disable formatting.

Escape characters guide →

What works on Discord vs standard markdown

FeatureDiscordStandard / GFM
Bold / italic / strikethroughYesYes
Underline__text__No syntax (HTML <u> on GitHub)
Spoiler||text||No
Headers#, ##, ### only# through ######
Subtext-# textNo
Multi-line quote>>> text> on every line
Code blocks with highlightingYesYes (GFM)
Lists, nested listsYes (2-space indent)Yes
Task-list checkboxesNoYes (GFM)
TablesNoYes (GFM)
Images ![alt](url)No (attach the file)Yes
Horizontal rule ---NoYes
Timestamps <t:unix:STYLE>YesNo

Converting a document for a Discord message? The markdown to Discord converter rewrites underline, strips tables and images, and warns about anything that will not render. See how Discord compares with Slack, Notion, Reddit and others in the markdown flavors comparison.

How is Discord markdown different from standard markdown?

Three things differ. Double underscores (__text__) underline on Discord but mean bold in standard markdown. Discord adds its own syntax: ||spoilers||, -# subtext, and <t:unix:STYLE> timestamps. And several standard features do not exist in messages at all: tables, task-list checkboxes, images via ![alt](url), horizontal rules, and headings below ###. Everything else (bold, italic, strikethrough, lists, quotes, code, links) works as it does elsewhere.

How do you show markdown characters literally in Discord?

Escape the character with a backslash: \*not italic\* shows the asterisks. Inline code (`like this`) also displays everything inside it literally, and code blocks turn off all formatting including spoilers. To stop a URL from generating an embed preview, wrap it in angle brackets: <https://example.com>.

Does Discord support tables, images or checkboxes?

No. Pipe tables, ![alt](url) images and - [ ] task lists are not part of Discord markdown; they show as plain text. Paste images as attachments instead, and share tables as a code block (monospace keeps the columns aligned) or as a link to a rendered document.

How do you make a multi-line quote in Discord?

Put >>> followed by a space before the first line and everything after it in the same message becomes one quote block. A single > quotes only that line. In both cases the space after the angle bracket is required.

How do Discord timestamps work?

Type <t:UNIX_SECONDS:STYLE> and every reader sees the moment in their own timezone and locale. The style letter picks the format: t short time, T medium time, d short date, D long date, f long date and short time (the default), F full date and short time, s short date and short time, S short date and medium time, R relative ("in 3 hours").

Related

Full markdown cheat sheet · Slack formatting · Telegram formatting · WhatsApp formatting · Markdown to Discord converter · Discord timestamp generator · Colored text generator · Strikethrough guide · Underline guide · Blockquote guide