The Complete Guide to Discord Text Formatting
Discord uses a customized subset of Markdown to style messages in chat. While the basics are simple, mastering every formatting rule from spoiler tags to headers and code blocks turns ordinary messages into polished, professional server communications. This guide covers everything a server owner, moderator, or regular user needs to know.
The easiest way to test formatting before posting publicly is to use a Discord markdown previewer. Our tool provides an interactive editor paired with a real-time dark-mode Discord chat simulation, so you can see exactly how your message will appear to other members before hitting Enter.
All Supported Formatting Syntax:
| Style | Syntax | Result |
|---|---|---|
| Bold | **text** | text |
| Italics | *text* or _text_ | text |
| Underline | __text__ | text |
| Strikethrough | ~~text~~ | text |
| Spoiler (Hidden) | ||text|| | text |
| Inline Code | `code` | code |
Using Spoiler Tags Effectively
Spoilers are one of Discord's most popular formatting features. They are essential for gaming communities sharing plot twists, puzzle solutions, or game tips without ruining the experience for others. By wrapping your content in ||double pipe characters||, the text is hidden under a clickable dark block. Users must intentionally click to reveal it.
Spoilers work on both text and images. For images, you can right-click a message containing an image and mark it as a spoiler it will then be blurred until clicked. Use our Discord spoiler tag generator to preview exactly how your hidden content will look in context.
Discord Headers: Organizing Long Messages
Discord added native header support, which is a game-changer for server rules, FAQ channels, and structured announcements. You can use up to three levels of hierarchy:
# Heading 1Creates a large H1-style header. Use sparingly for the top-level topic of a message.## Heading 2Creates a medium H2 section header. Perfect for subsections in a rules channel.### Heading 3Creates a smaller H3 sub-header. Use for individual items within a section.
Always remember the required space after the hash symbols ##text without a space will not render as a header.
Code Blocks and Syntax Highlighting
Discord supports syntax-highlighted multi-line code blocks. Wrap your code in triple backticks and optionally specify a language name immediately after the opening backticks:
def greet(name):
print(f"Hello, {name}")
```
Discord supports syntax highlighting for languages including python, javascript, css, json, bash, diff, and many others. This is incredibly useful in developer-focused servers or coding communities.
Blockquotes and Lists
Start a line with > to create a blockquote. Use >>> (triple-greater-than) for a multi-line blockquote that applies to all following content. Blockquotes are perfect for quoting previous messages or citing external sources.
For bullet lists, start lines with -, *, or 1. for ordered lists. Combine these with bold headers and code blocks to create clean, structured posts for FAQs and tutorials.
Want to add color to your code blocks? Combine formatting with our Discord ANSI Color Text Generator for vivid, eye-catching server messages.