Discord Markdown Cheatsheet

Browse Discord markdown formatting examples including spoilers, timestamps, code blocks, mentions, and more.

Bold

Makes text bold.

**Bold text**

Italic

Makes text italic.

*Italic text*

Underline

Underlines text.

__Underline text__

Strikethrough

Adds strikethrough formatting.

~~Strikethrough text~~

Spoiler

Hides text behind a spoiler.

||Spoiler text||

Inline Code

Displays inline code.

`code`

Code Block

Displays a code block.

```js
console.log('Hello');
```

Quote

Creates a quote.

> Quoted text

Multi-line Quote

Creates a multi-line quote.

>>> Line 1
Line 2
Line 3

Bullet List

Creates a bullet list.

- Item One
- Item Two

Numbered List

Creates a numbered list.

1. First
2. Second

Large Header

Creates a large heading.

# Header

Medium Header

Creates a medium heading.

## Header

Small Header

Creates a small heading.

### Header

Masked Link

Creates a clickable link in supported Discord surfaces.

[Discord](https://discord.com)

Raw URL

Automatically becomes a clickable URL.

https://discord.com

Suppress Embed

Creates a clickable link without generating an embed preview.

<https://discord.com>

Spoiler Link

Hides a URL behind a spoiler.

||https://discord.com||

Discord Invite

Creates a Discord invite embed preview.

https://discord.gg/example

Emoji

Standard Unicode emojis.

😀 🎉 🚀

Custom Emoji

Displays a custom server emoji.

<:emoji:123456789012345678>

Animated Emoji

Displays an animated emoji.

<a:emoji:123456789012345678>

Slash Command Mention

Mentions a slash command.

</ping:123456789012345678>

Forum Channel Mention

Mentions a forum channel.

<#123456789012345678>

Stage Channel Mention

Mentions a stage channel.

<#123456789012345678>

User Mention

Mentions a Discord user.

<@123456789012345678>

Nickname Mention

Mentions a user by nickname.

<@!123456789012345678>

Role Mention

Mentions a role.

<@&123456789012345678>

Channel Mention

Mentions a text channel.

<#123456789012345678>

Timestamp (Short Time)

Displays a short time.

<t:1716508800:t>

Timestamp (Long Time)

Displays a long time.

<t:1716508800:T>

Timestamp (Short Date)

Displays a short date.

<t:1716508800:d>

Timestamp (Long Date)

Displays a long date.

<t:1716508800:D>

Timestamp (Date & Time)

Displays a date and time.

<t:1716508800:f>

Timestamp (Full Date & Time)

Displays the full date and time.

<t:1716508800:F>

Timestamp (Relative)

Displays relative time.

<t:1716508800:R>

ANSI Code Block

Colored ANSI code blocks supported in Discord.

```ansi
\u001b[1;31mRed Text\u001b[0m
```

Diff Code Block

Common syntax highlighting trick.

```diff
+ Added
- Removed
```

JSON Code Block

JSON syntax highlighting.

```json
{
  "hello": true
}
```

JavaScript Code Block

JavaScript syntax highlighting.

```js
console.log('Hello');
```

CSS Code Block

CSS syntax highlighting.

```css
body { color:red; }
```

PHP Code Block

PHP syntax highlighting.

```php
echo 'Hello';
```

Markdown Code Block

Markdown syntax highlighting.

```md
# Header
```

Escaped Markdown

Prevents markdown formatting.

\*Not Italic\*

Combined Formatting

Underline, bold, and italic combined.

__***Important Text***__

Frequently Asked Questions

Common questions about Discord markdown, text formatting, mentions, timestamps, and message styling.

What is Discord markdown?

Discord markdown is a formatting system that allows you to style messages using special characters. You can create bold text, italics, spoilers, code blocks, quotes, headers, lists, timestamps, and more.

How do I make text bold on Discord?

Wrap your text with two asterisks on each side. For example, **Bold Text** will display as bold text in Discord.

How do I create spoiler tags?

Place two vertical bars before and after your text. For example, ||Spoiler|| will hide the text until someone clicks it.

How do Discord timestamps work?

Discord timestamps use the format <t:timestamp>. They automatically convert dates and times into each user's local timezone, making event scheduling much easier.

Can I create code blocks in Discord?

Yes. Use single backticks for inline code and triple backticks for multi-line code blocks. Discord also supports syntax highlighting for many programming languages.

What are Discord mentions?

Mentions allow you to reference users, roles, channels, and slash commands. Discord uses special IDs behind the scenes to generate clickable mentions.

Can I make clickable links in Discord?

Yes. Most URLs automatically become clickable links. Some Discord features also support masked links, allowing you to display custom text instead of the full URL.

Does Discord support markdown headers?

Yes. Discord supports markdown-style headers using #, ##, and ### in many areas such as forum posts, onboarding content, and supported message surfaces.

What are ANSI code blocks?

ANSI code blocks are special code blocks that support colored text formatting in Discord. They are often used for creating visually distinctive messages and terminal-style output.

Why use a Discord markdown cheatsheet?

A markdown cheatsheet provides quick access to formatting examples, timestamps, mentions, code blocks, links, and other Discord features, saving time when writing messages or managing communities.