Discord Text Formatter & Generator

Build standout announcements and chat messages. Style your text with bold, italics, spoilers, and ANSI colored blocks with an interactive preview.

Markdown Editor

ANSI Colored Text Settings

Highlight text above, select options, and apply to colorize text.

Text Color:
None
Background Color:
None

Real-Time Output

Discord Message Preview
G
Your message will appear here formatted in real time...
Copy Formatting Code
Start typing to see raw code...

Complete Discord Text Formatting & Markdown Guide

Discord uses a custom dialect of Markdown to style messages. You can use standard formatting codes like bold and italics, or create advanced blocks like spoilers and syntax-highlighted code blocks.

1. Discord Markdown Cheat Sheet

Style Markdown Syntax Example Render
Bold **text** text
Italic *text* or _text_ text
Bold Italic ***text*** text
Underline __text__ text
Strikethrough ~~text~~ text
Spoiler ||text|| text (Click)
Inline Code `text` text
Blockquote > text
text

2. Discord Colored Text (ANSI Escape Codes)

Since 2022, Discord supports colored text inside code blocks using ANSI escape sequences. By formatting a code block with the ansi language key, you can customize the color of your text and backgrounds.

An ANSI block starts with ```ansi and ends with ```. Inside, you write escape codes using the format: \u001b[style;color;background_colorm where style, color, and background are numerical attributes. This tool automatically builds and formats these code blocks so you can simply highlight and pick colors visually.

3. Tips for Discord Formatting

  • Spoiler Blocks: You can hide whole blocks of text or even images behind a spoiler block. To hide links, use || https://example.com ||.
  • Escaping Markdown: If you want to type asterisks (*) or underscores (_) without turning them into bold/italic styling, insert a backslash (\) before the symbol (e.g. \*text\*).
  • Character Limits: Discord messages are limited to 2,000 characters (or 4,000 characters if you have Discord Nitro). Colored ANSI code blocks consume extra characters due to the hidden escape codes.

Related Tools

Try out some of our other free tools for creators:

Discord Text Formatting FAQs

How do you bold text on Discord?

To bold text in Discord, wrap your text in double asterisks, like this: **text**. This will display as bold in all channels, bios, and direct messages.

How do you get colored text in Discord?

Colored text is generated using syntax-highlighted code blocks declared with ansi. You wrap your text inside ```ansi and use ANSI escape code numbers (like \u001b[31m for red text) to colorize specific parts of your message.

How do you cross out or strike through text?

To strike through text on Discord, wrap it in double tildes, like this: ~~text~~. This is useful for editing announcements or making corrections.

Why is my Discord markdown not working?

Make sure there are no spaces between the formatting indicators and the text. For example, ** text ** will not bold, but **text** will. Also ensure that you are not using backslashes (\) before formatting characters, as this escapes the markdown rendering.