Discord Tools

Discord Colored Text Generator

Discord hides real color behind ANSI escape codes inside a code block. Build your message segment by segment: pick text and background colors, add bold or underline. Then copy code that's ready to paste.

SegmentsEach segment can have its own colors and styles
Segment 1
Text color
Background
Live preview
Digital Den

Colors are approximate, and Discord's exact palette varies slightly by theme.

Copy this code
```ansi
Digital Den
```

The invisible escape characters won't show above. That's expected. Paste the copied text into Discord and it renders in color on desktop and web. It appears as plain text inside a code block on many mobile clients.

Reference

Discord ANSI color codes

Inside an ```ansi code block, Discord reads ANSI escape sequences of the form ESC[<code>m. Combine a style and a color with a semicolon (for example ESC[1;31mfor bold red). Background colors use codes 40–47.

Effect / colorANSI code
Reset all styling0
Bold / bright1
Underline4
Gray text30
Red text31
Green text32
Yellow text33
Blue text34
Pink text35
Cyan text36
White text37
Background colors40–47
FAQ

Colored Discord text, explained

How do I make colored text in Discord?+

Type your text above and pick a foreground color, background color, bold, or underline for each segment. Click Copy, then paste the result into a Discord message. Because the text is wrapped in an "ansi" code block, Discord renders it with the colors you chose.

Why don't colors show on mobile?+

Discord only renders ANSI colors on the desktop app and the web client. Many mobile versions ignore the codes and display plain text inside a code block instead. The message is still readable everywhere. It just is not colorful on those clients.

What are ANSI codes?+

ANSI escape codes are a long-standing terminal standard for styling text. Each code (such as 31 for red or 4 for underline) is introduced by an invisible escape character. Discord supports a small subset of these codes inside "ansi" code blocks.

Is it free?+

Yes. This generator is completely free, needs no login or account, and runs entirely in your browser. Nothing you type is uploaded anywhere.

Related tools

All tools →

More in Discord Tools.