Skip to content
Part of: How-to format
How-To

How to Format Text in Discord: Bold, Italic, Underline, Code & Spoilers

Learn every Discord text formatting option, from bold and italic to code blocks, spoilers, and headers. A complete quick-reference guide with syntax examples for desktop and mobile.

Shreyas BagalΒ·Jul 13, 2026Β·7 min

Key takeaways

  • Discord uses a Markdown-style syntax for text formatting. Wrap text in asterisks for bold, underscores for italic, tildes for strikethrough, backticks for code, and double pipes for spoilers.
  • Combine formatting by nesting symbols: triple asterisks for bold italic, double underscores around asterisks for underline italic.
  • Headers (#, ##, ###) were added in mid-2023 and must appear at the start of a message or after a line break to render correctly.
  • Markdown formatting works in Discord messages but not in usernames or server names. Use Unicode text generators like BoldlyType for those fields.
  • Spoiler tags (||text||) work on both text messages and image or file attachments.
How to Format Text in Discord: Bold, Italic, Underline, Code & Spoilers
On this page

How-to guide

Discord uses a Markdown-style syntax that lets you format text directly in the message box. Wrap words in asterisks for bold, underscores for italic, tildes for strikethrough, backticks for code, and double pipes for spoilers. No apps or bots needed. Type the symbols around your text and Discord renders the formatting instantly.

Quick-reference table

FormatSyntax
Bold**text**
Italic*text* or _text_
Bold italic***text***
Underline__text__
Strikethrough~~text~~
Spoiler`
Inline code`text`
Code blockThree backticks before and after
Block quote> text or >>> text
Header# / ## / ### before text
List- item or 1. item
Link[text](url)

Each of these is covered in detail below.

Bold

Type two asterisks before and after your text: **like this**. Discord renders it in bold. This is the most common formatting option and works the same way Markdown bold works on other platforms.

Bold is useful for emphasizing key points in longer messages or making announcements stand out in busy channels. For a broader look at using bold text across different apps and platforms, see our guide on how to format bold text.

Italic

You have two options for italics. Wrap text in a single asterisk (*like this*) or a single underscore (_like this_). Both produce the same result.

The asterisk method is generally more reliable when you're mixing italic with other formatting. Underscores can sometimes conflict with Discord's underline syntax if you're not careful with spacing.

Underline

Discord includes underline formatting that standard Markdown does not. Type two underscores before and after your text: __like this__.

This is one area where Discord's Markdown variant differs from the original spec. In standard Markdown, double underscores produce bold text. In Discord, they produce underlined text. Keep this difference in mind if you use Markdown on other platforms.

Strikethrough

Wrap text in two tildes on each side: ~~like this~~. The result is text with a horizontal line through the middle.

Strikethrough works well for corrections, crossing items off a list, or adding a humorous retraction to a message.

Combining bold, italic, and underline

You can stack formatting symbols to combine multiple styles in a single piece of text:

  • Bold italic: ***text*** (three asterisks on each side)
  • Underline italic: __*text*__ (double underscores wrapping single asterisks)
  • Underline bold: __**text**__ (double underscores wrapping double asterisks)
  • Underline bold italic: __***text***__ (double underscores wrapping triple asterisks)

The order matters. Place the underline markers on the outside, with bold and italic markers nested inside them.

Inline code and code blocks

For short code snippets within a sentence, wrap the text in a single backtick on each side. Discord displays it in a monospace font with a gray background, making it visually distinct from regular text. This is handy for mentioning variable names, commands, or short technical references.

For multi-line code, place three backticks on a line by themselves before your code and three backticks on a line after it. Discord renders this as a separate code box with its own background.

You can also add a language name right after the opening three backticks (for example, python or javascript) to enable syntax highlighting. Discord supports highlighting for dozens of programming languages, including Python, JavaScript, CSS, HTML, Java, C++, Ruby, and many more.

For a deeper look at monospace formatting, see our guide to monospace text on Discord.

Block quotes

Start a line with > followed by a space to create a single-line block quote. Discord displays it with a vertical bar on the left side, visually setting the quoted text apart from the rest of your message.

Use >>> followed by a space to quote everything that follows in your message, spanning multiple lines. This is useful when you want to quote a longer passage or respond to a multi-paragraph message.

Spoiler tags

Wrap text in double pipes to mark it as a spoiler: ||like this||. The text appears blacked out until the reader clicks on it to reveal the content.

Spoiler tags also work on images and file attachments. When you upload an image, you can mark it as a spoiler so it stays hidden until someone deliberately reveals it. This is useful for content warnings or hiding answers to questions in community channels.

Headers

Discord added header support in mid-2023, giving you three levels to work with:

  • # Large heading (H1)
  • ## Medium heading (H2)
  • ### Small heading (H3)

One important detail: headers must appear at the very start of a message or after a line break. If you type # in the middle of a line, Discord will not render it as a heading. Start on a new line, type the hash symbols, add a space, and then your heading text.

Headers are especially useful for organizing longer messages, announcements, or pinned information in channels where people need to scan for specific sections.

Lists

Discord supports both unordered and ordered lists.

For unordered lists, start each line with - or * followed by a space:

  • First item
  • Second item
  • Third item

For ordered lists, use numbers followed by a period:

  1. First item
  2. Second item
  3. Third item

Lists render with proper indentation and spacing, making structured information easier to scan in a busy channel.

Discord automatically converts URLs into clickable links. Paste a full URL into your message and Discord will make it clickable without any special syntax.

You can also use Markdown link syntax for cleaner formatting: [click here](https://example.com). This displays your chosen link text instead of the raw URL. Adding a title after the URL in quotes, like [click here](https://example.com "Link title"), shows a tooltip on hover.

Note that Discord may display a warning when users click masked links to help prevent phishing attempts. This is normal behavior.

Where formatting works (and where it doesn't)

Discord's Markdown formatting works in chat messages, channel topic descriptions, and a few other text areas. It does not work in usernames, display names, or server names. Those fields ignore Markdown syntax entirely.

If you want styled text in places where Markdown is not supported, Unicode text is the alternative. Tools like the Discord text formatter on BoldlyType let you generate bold, italic, script, and other text styles using Unicode characters that work anywhere text is accepted, including usernames and bios.

For a complete comparison of how Markdown formatting works across different chat platforms, check out our guide to Markdown formatting on WhatsApp, Discord & Slack.

Keep your character count in check

Discord messages have a 2,000-character limit (4,000 for Nitro subscribers). Formatting symbols count toward this limit. A heavily formatted message uses more characters than it appears to on screen, so keep an eye on your count when writing longer posts. Our Discord character limit guide covers the specifics for messages, usernames, bios, and every other field.

Frequently asked questions

How do I make text bold in Discord?

Type two asterisks before and after your text: **your text**. Discord renders it in bold automatically. This works in messages on desktop, mobile, and the web app. For bold text in places where Markdown is not supported (like usernames), use a bold text generator that creates Unicode bold characters you can paste anywhere.

Can I use headers in Discord messages?

Yes. Discord added header support in mid-2023. Use # for a large heading, ## for medium, and ### for small. The hash symbol must be at the start of a message or on a new line, followed by a space before your heading text.

Do formatting codes work on Discord mobile?

Yes. All Markdown formatting (bold, italic, underline, code blocks, spoilers, headers, and lists) works the same way on Discord's mobile apps as it does on desktop. Type the same syntax and the app renders the formatting identically.

How do I hide spoilers in Discord?

Wrap your text in double pipe characters: ||your spoiler text||. The text appears as a dark block that readers must click to reveal. This also works on image and file attachments by marking them as spoilers before sending.

What is the difference between single and triple backticks in Discord?

A single backtick on each side of text creates inline code that appears within a sentence in a monospace font. Triple backticks create a separate code block with its own background, spanning multiple lines. Triple backticks also support syntax highlighting when you add a programming language name after the opening backticks.

Ready to put this into practice?

Open a formatter

Spotted an error? Email hello@boldlytype.com β€” we update guides quarterly and welcome corrections.

Frequently asked questions

Latest questions readers ask us about this topic.

The sub-questions readers ask next β€” answered, with where to go.

LinkedIn's post box β€” used for feed posts, comments, your headline and your About section β€” is plain text with no formatting toolbar and no markdown, so there's no bold button. The workaround the whole creator economy uses is Unicode bold: type your line, convert it to bold Unicode characters (𝗯𝗼𝗹𝗱) in a generator, then paste it back and the emphasis sticks, because the style is baked into the characters themselves. Bold only the hook β€” the part that shows before the β€œβ€¦see more” cut-off β€” to earn the click, and keep the rest plain so the post stays skimmable. Two caveats matter: Unicode text isn't read by LinkedIn's search and is announced poorly by screen readers, so never bold the keywords, names or hashtags you want found or read aloud. For true rich text (headings, lists), use LinkedIn's separate 'Write article' editor instead.

Format a LinkedIn post

Instagram's native composer collapses the line breaks you type, which is why captions paste in as one dense block β€” it's worst when you post from the web or through some schedulers. The reliable fix is to compose the caption with the spacing you want and paste it back with the breaks preserved, rather than relying on invisible-character hacks (blank Unicode characters can break Instagram's search and are read poorly by screen readers). Write the caption with your intended breaks, generate the spaced version, and paste it into the caption field. Put your strongest hook on line one, since that's the part that shows before the 'more' cut-off in the feed. Keep paragraphs short β€” two or three lines β€” so the caption stays skimmable on a phone, where almost everyone reads it.

Open the line-break tool

Yes β€” WhatsApp is the exception among messaging and social apps because it has its own built-in markup that it renders for everyone. Wrap text in *asterisks* for bold, _underscores_ for italic, ~tildes~ for strikethrough, and triple backticks for monospace; the symbols disappear and the styling shows. So you usually don't need Unicode characters on WhatsApp at all. Reach for a Unicode formatter only when you want a style WhatsApp's markdown doesn't cover β€” small caps or script for a Status, say β€” or when you're writing one message to post across several apps that don't share WhatsApp's syntax (Instagram, X and Threads strip these symbols and show them literally). For everyday bold and italic inside WhatsApp itself, the native markup is the better and more accessible choice.

Format for WhatsApp

Because that editor is plain text and strips anything it doesn't parse. Markdown (*bold*), HTML tags and rich-text styling only render where the platform explicitly supports them β€” paste them into Instagram, X/Twitter or a LinkedIn post and you see the raw asterisks, or nothing at all, because those boxes have no formatting engine. Unicode styling works differently: the bold or italic look is baked into each character (a Unicode bold 'A' is its own code point), so it survives any plain-text field and travels with a copy-paste. That's the whole reason Unicode 'fancy text' formatters exist. The trade-off is accessibility β€” because they aren't ordinary letters, screen readers can mis-read them and in-app search may not match them β€” so use Unicode for short emphasis, not for body copy or anything that must be searchable.

Generate paste-proof styles

Related in this series

See all in How-to format

Explore the topic cluster

More tools and guides across this topic cluster.

Get the next post.

Craft notes on writing for the internet. One short email, every other week. No spam.

Keep reading