Skip to content
TitleCapitalize

Discord Text Formatting

Discord formats chat messages with Markdown: type a few symbols around your words and they turn bold, italic, underlined, hidden as a spoiler, or into a header. Here is every code Discord documents, with the rules that trip people up.

Discord Formatting Cheat Sheet

FormatType this
Italic*italics* or _italics_
Bold**bold**
Bold italic***bold italics***
Underline__underline__
Underline italic__*underline italics*__
Underline bold__**underline bold**__
Underline bold italic__***underline bold italics***__
Strikethrough~~strikethrough~~
Spoiler||spoiler||
Big header# Header
Medium header## Header
Small header### Header
Subtext-# small grey text
Bulleted list- item or * item
Indented list item - item (two spaces first)
Numbered list1. item
Quote> quote
Multi-line quote>>> everything after this
Inline code`code`
Code block```code```
Masked link[text](https://example.com)
Timestamp<t:1618953630:R>

Every code in this table comes from Discord's own documentation: Markdown Text 101, Spoiler Tags, and the message formatting reference for timestamps and mentions.

Bold, Italic, Underline, and Strikethrough

Wrap text in the symbols on both sides, with no space between the symbols and the words. One asterisk or underscore makes italics, two asterisks make bold, and three make bold italics. Two underscores make an underline, and two tildes cross text out.

The styles stack. Put the underline outside and the asterisks inside: __***important***__ is underlined bold italic. You can style part of a word or a whole message the same way.

Spoiler Tags

Wrap text in two vertical bars on each side, ||like this||, and Discord hides it behind a dark box until someone clicks or taps it. You can also type /spoiler before your message, or on desktop highlight the text and click the eye icon. On iOS, select the text and tap Mark as Spoiler.

A few details from Discord's spoiler article:

  • Spoiler bars inside a code block do not hide anything.
  • Wrapping a link in bars hides the link.
  • Images and videos have their own Mark as Spoiler eye icon when you attach them.
  • Readers can change how spoilers show under User Settings, Text & Images: on click, always shown, or always shown in servers they moderate.

Headers and Subtext

Start a line with one, two, or three hash signs and a space for a big, medium, or small header. Start a line with -# for subtext, a smaller line that suits footnotes and credits. Both only work at the very start of a line, and both need the space after the symbol: #Header stays plain text.

Lists and Block Quotes

Begin each line with a hyphen or an asterisk and a space for a bulleted list, or a number and a period for a numbered one. Add two spaces before the hyphen to indent an item under the one above.

A greater-than sign and a space (> ) turns one line into a quote. Three of them (>>> ) quote everything after it in the same message, which is easier than marking each line.

Code Blocks

Single backticks around a word make inline code, shown in a monospace font: handy for commands, file names, and anything that should be copied exactly. Three backticks before and after make a multi-line code block. Markdown inside code is not applied, so wrapping symbols in backticks is also a way to show ** as typed.

Write the text you want people to see in square brackets, then the URL in parentheses straight after: [our rules](https://example.com/rules). The words become a clickable link.

Timestamps in Everyone's Time Zone

A timestamp shows a date and time that Discord converts to each reader's own time zone and language, so "the stream starts at 8" means the same moment for everyone. Type <t:, a Unix timestamp in seconds, an optional style letter, and >:

StyleExample outputWhat it shows
<t:1618953630:t>16:20Short time
<t:1618953630:T>16:20:30Medium time
<t:1618953630:d>20/04/2021Short date
<t:1618953630:D>April 20, 2021Long date
<t:1618953630:f>April 20, 2021 at 16:20Long date, short time (the default)
<t:1618953630:F>Tuesday, April 20, 2021 at 16:20Full date, short time
<t:1618953630:s>20/04/2021, 16:20Short date, short time
<t:1618953630:S>20/04/2021, 16:20:30Short date, medium time
<t:1618953630:R>4 years agoRelative time

Leave out the style letter and you get the long date with a short time. The example outputs come from Discord's reference, which shows 1618953630 as 16:20; in UTC that moment is 21:20, and each reader sees it in their own time zone.

Mentions

The same reference lists codes for mentions: <@USER_ID> for a person, <#CHANNEL_ID> for a channel, and <@&ROLE_ID> for a role. Typing @ or # and picking from the list does this for you; the raw codes matter mostly for bots and webhooks.

What Markdown Cannot Do: Fonts and Colors

Discord's Markdown guide has no option for changing the font or the text color in a message. For a different look in a display name or nickname, where Markdown does not work at all, there are two routes:

  • Unicode styles such as 𝐛𝐨π₯𝐝, π“ˆπ’Έπ“‡π’Ύπ“…π“‰, or κœ±α΄α΄€ΚŸΚŸ α΄„α΄€α΄˜κœ±, which you can copy from the Discord fonts generator.
  • Display Name Styles, a Nitro feature that adds fonts, colors, and effects to your display name, described in Discord's Display Name Styles FAQ.

You may see color tricks that rely on code blocks. They are not part of Discord's documented formatting, so they may not look the same for everyone.

When Formatting Does Not Work

  • Check for a space after #, -#, >, and list markers, and no space between ** and the word.
  • Headers, subtext, quotes, and lists have to start the line. On desktop, Shift+Enter starts a new line without sending.
  • Formatting inside a code block or inline code is shown as typed, spoilers included.
  • Usernames, display names, and server names do not use Markdown at all; only messages do.

Need a blank message or an empty line? The invisible character tool has blank characters to paste.