Discord Colored Text Generator

Type a message, pick colors, and copy a ready-to-paste ANSI code block — the invisible escape characters are included so it just works. Free, no signup.

Colors show on Discord desktop and web — the phone apps show plain text.

Discord colored text

ANSI code block1 color1 line

Your messageSample

Select words, then pick a color. Paste a ```ansi block you made earlier to edit it again.

Discord

Copy this into Discord

```ansi
ESC[31mThis text is colored!ESC[0m
```

ESC is the invisible escape character — included automatically when you copy.

Discord preview

This text is colored!

Renders on desktop and web — not on mobile.

Generated in your browser · 0 bytes uploaded42 / 2,000 characters1 color · RedGuide & FAQ

How Colored Text Works in Discord

Discord's code blocks support ANSI escape sequences — the same color codes terminals use. A code block with the language set to ansi and text wrapped in codes like [31m (red) renders in color on Discord desktop and web. The catch: the sequence must start with a real ESC control character (U+001B), which you cannot type on a keyboard. This generator embeds it for you, so the copied block pastes straight into Discord and renders correctly.

Combine styles with semicolons — [1;31m is bold red, [4;45;33m is underlined yellow on indigo. Reset back to normal with [0m. For everything else Discord can format, see the Discord Markdown cheat sheet.

Discord ANSI Color Codes

Discord supports a fixed set of codes inside an ansi code block: 0 to reset, 1 for bold, 4 for underline, 30 to 37 for the text color and 40 to 47 for the background. The swatches show the colors Discord's desktop app draws, which come from the Solarized palette rather than the bright terminal defaults.

Discord ANSI text and background color codes
Text colorCodeBackgroundCode
Gray[30mDark blue[40m
Red[31mOrange[41m
Green[32mMarble blue[42m
Yellow[33mGrey-turquoise[43m
Blue[34mGray[44m
Pink / Magenta[35mIndigo[45m
Cyan[36mLight gray[46m
White[37mWhite[47m

Here is a finished block with the escape character written as [ESC] so you can see where it goes. In the copy from the generator it is the real, invisible character, which is the part you cannot type yourself:

```ansi
[ESC][1;31mRaid starts at 8 PM[ESC][0m
[ESC][32mBring potions[ESC][0m and [ESC][4;33mread the pins[ESC][0m
```

Codes stack with semicolons in any order, so [1;4;36m is bold, underlined cyan. Always end with [0m, or the style carries on to the next line.

Frequently Asked Questions

How do you get colored text in Discord?

Discord renders ANSI escape codes inside code blocks marked with the ansi language. Type your message above, pick a color, and copy the generated block — the invisible escape characters are included, so it pastes straight into Discord and renders in color.

Why is my colored text not working in Discord?

Two common causes: the escape character is missing (typing the code by hand does not work — it must be the real ESC control character, which this generator includes), or you are on mobile, where Discord does not render ANSI colors.

Does colored text work on Discord mobile?

No. ANSI colored text renders on the Discord desktop app and in the browser, but mobile apps show the code block without colors. Mobile readers still see your text, just uncolored.

What colors can Discord ANSI text use?

Eight text colors (red, green, yellow, blue, pink, cyan, white, gray) and eight background colors, plus bold and underline styles. Codes combine with semicolons, for example [1;31m for bold red.

How do I make red text in Discord?

Type your message above, select it and pick Red, then copy the block. By hand it is a code block with the ansi language and the text wrapped as ESC[31m your text ESC[0m, where ESC is the invisible escape character. Use [1;31m for bold red. Discord has no red for normal messages; colored text only works inside an ansi code block.

Can I color text in a normal Discord message without a code block?

No. Discord Markdown has bold, italics, underline, strikethrough, headers and spoilers, but no colors. The ansi code block is the only built-in way to get colored text, which is why colored messages always appear in the monospace code-block font with a dark box around them.

Does Discord colored text work in bots and webhooks?

Yes. A bot or webhook can send the same ansi code block in a message or an embed description, as long as the real ESC character (\u001b in most programming languages) is in the string. Readers on desktop and web see the colors; phone readers see plain text.