Skip to main content
FreeDiscordTools
← Back to Blog

Discord ANSI Color Guide: How to Send Colorful Formatted Messages

Published on June 18, 2026·FreeDiscordTools

Banish Monochrome Text: Bring Color to Discord

All announcements in your server look exactly the samea wall of black and white text. Members ignore standard announcements because they don't pop out. Bold text and blockquotes help, but they lack color. Fortunately, Discord supports ANSI escape codes inside code blocks, allowing you to highlight text in red, green, yellow, blue, and more.

Our Discord Colored Text Generator handles the escape sequences automatically so you can copy and paste colored text in seconds.

The Anatomy of an ANSI Escape Sequence

ANSI formatting works inside a code block flagged with ansi. The escape code template is [FORMATTING;BACKGROUND;FOREGROUNDm (preceded by the ESC character):

```ansi
[1;31mBold Red Text[0m
[0;32mNormal Green Text[0m
```
Mobile Notice: ANSI colored text only renders on Discord Desktop and Web clients. Mobile users (iOS & Android) will see the raw code characters. Always include a plain-text fallback for crucial announcements.

Available ANSI Color Codes

  • Foreground (Text): 31 (Red), 32 (Green), 33 (Yellow), 34 (Blue), 35 (Pink/Magenta), 36 (Cyan)
  • Backgrounds: 40 (Dark Blue), 41 (Orange), 44 (Indigo), 45 (Red), 46 (Teal)
  • Modifiers: 1 (Bold), 4 (Underline)

Related Articles

Try the Tools

Explore our full collection of free utilities for Discord, developers, and job seekers.

View All Tools →