Skip to content
FontStyleHub

Discord color text generator

Create colored text for Discord using ANSI codes. Type your message, select any word, pick a color — then copy the code block and paste it straight into Discord Desktop or Browser.

⚡ Colors only display on Discord Desktop and Browser — not on mobile apps

Quick presets

Step 1 — Type your message
0 characters
Step 2 — Select text above, then click a color
Style
Text
Highlight

Paste into any Discord channel — colors show on Desktop & Browser

Discord previewDesktop only
#general
D
DiscordClydeToday at 3:14 PM
Your colored message will appear here…
ANSI

Not affiliated with Discord Inc.

Generated ANSI code block
Code appears here once you type…

How to use the Discord color text generator

Discord supports ANSI escape codes inside ```ansi code blocks — the same color sequences used in terminal emulators. This generator builds the formatted block automatically. Here's how:

1

Type your message

Enter your Discord message in the text area. You can write a full multi-line message — each part will get its own color.

2

Select text and pick a color

Highlight any word or phrase with your cursor, then click a foreground color or background highlight. Repeat for each section.

3

Add bold or underline (optional)

Select text and click B Bold or U Underline to layer formatting on top of colors. All three can be combined on the same characters.

4

Copy and paste into Discord

Click "Copy for Discord" to copy the full ```ansi code block. Paste it into any Discord text channel on Desktop or Browser — the colors appear immediately.

Discord ANSI color reference

Discord supports exactly 8 text colors and 8 background colors from the ANSI palette. Custom colors are not possible — only these codes work inside ```ansi blocks.

Text colors (foreground)

ColorANSI CodeHex
Dark Gray
\u001b[30m#4e5058
Red
\u001b[31m#dc322f
Green
\u001b[32m#859900
Yellow
\u001b[33m#b58900
Blue
\u001b[34m#268bd2
Pink
\u001b[35m#d33682
Cyan
\u001b[36m#2aa198
White
\u001b[37m#ffffff

Background colors (highlight)

ColorANSI CodeHex
Dark Blue/Black
\u001b[40m#002b36
Orange
\u001b[41m#cb4b16
Marble Blue
\u001b[42m#586e75
Slate Gray
\u001b[43m#657b83
Medium Blue
\u001b[44m#839496
Indigo
\u001b[45m#6c71c4
Light Teal
\u001b[46m#93a1a1
Pale White
\u001b[47m#fdf6e3

Tips for better Discord color text

Use Red + Yellow for alerts

Red text on a dark background grabs attention instantly. Pair it with bold for critical server announcements, error messages, or warnings.

Combine colors and bold

Bold makes colors pop even more. Select the same text twice — once for color, once for bold. Both ANSI codes will be layered on the same characters.

Rainbow for celebrations

The Rainbow preset cycles all 7 colors across every character. Use it for event announcements, birthday messages, or anything that deserves a celebratory entrance.

Green for success messages

Green is universally associated with success and positivity. Use it for completed events, welcome messages, or role assignment confirmations in bot messages.

Keep it readable

Avoid using background colors across large blocks of text — they become hard to read quickly. Save highlights for a word or short phrase you specifically want to draw attention to.

Test before announcing

Always preview your message in the simulator before pasting into a major channel. What looks good in the builder may wrap differently depending on the user's Discord window size.

Frequently asked questions

Why isn't my color text showing in Discord?

ANSI color text only works on Discord Desktop and Browser. If you're on the mobile app, you'll see a plain code block instead of colors. This is a Discord limitation — mobile doesn't render ANSI escape codes.

How does Discord color text actually work?

Discord uses ANSI escape codes inside ` ```ansi ` code blocks. ANSI codes are the same color sequences used in terminal emulators. When Discord sees \u001b[31m, it renders the following text in red. This generator builds the correctly formatted block so you don't have to write the codes manually.

Can I use any color I want?

No — Discord only supports 8 foreground (text) colors and 8 background colors from the ANSI palette. Custom hex colors are not possible. The colors available are: Dark Gray, Red, Green, Yellow, Blue, Pink, Cyan, and White for text.

Will everyone see my colored message?

Only users on Discord Desktop and Discord Browser (web app) will see the colors. Mobile users on iOS and Android will see a plain code block. If your server is primarily mobile, colored text won't have much impact.

Is using ANSI color text against Discord's rules?

No. ANSI color codes work inside code blocks, which is a built-in Discord feature using its own syntax highlighting system. It's not a bug or exploit — it's how Discord intentionally renders the `ansi` language tag inside code fences.

What's the difference between Discord color text and Discord fonts?

Discord Fonts use Unicode characters that work everywhere — in usernames, bios, messages, and on every device. Discord Color Text uses ANSI codes that only render inside code blocks on desktop. Use fonts for names and bios; use color text for eye-catching channel messages.

Can I combine colors, bold, and underline together?

Yes. Select a word, click a text color, then select it again and click Bold or Underline. The ANSI codes stack — bold red underlined text is perfectly valid. The preview on the right shows exactly how it will look in Discord.

The history of Discord color text

Discord's support for ANSI color codes wasn't officially announced — it was discovered by the community in late 2021 when users noticed that the ```ansi code block tag would render escape sequences as actual colors. This was a byproduct of Discord's syntax highlighting system, which uses the Solarized color theme to interpret ANSI terminal codes.

The feature spread rapidly through Discord communities — particularly gaming servers and developer communities who were already familiar with terminal color codes. Tools like this generator emerged to make the technique accessible to everyone, not just users who knew how to manually write ANSI escape sequences.

Discord has never officially documented or guaranteed this behavior, which means it could theoretically change in a future update. That said, it's been stable since 2021 and has become a well-established part of Discord culture. Server owners use it for eye-catching announcements, bot developers use it for status messages, and communities use it for creative formatting that stands out in busy channels.

Sam Whitaker

Typography & Unicode editor

Sam writes about Unicode text, fonts and how they behave across apps. Every generator on the site is tested by hand before it's marked safe.

Last tested: 2026-06-22Review our methodology →

More Discord and font tools