Independent tool · not affiliated with Discord Inc.

Discord Colored Text

Select words, pick a color, copy, paste. Discord shows colors inside ```ansi code blocks in the web browser. We verified red and blue in a posted message.

Text color

Background

Select part of the text first. With nothing selected, the style applies to everything.

Edit existing colored text

How Discord colored text works

Discord highlights code blocks tagged ansi. Inside, invisible escape codes (ESC[31m and friends) switch the color. The editor writes those codes for you; you only see them as part of the character count.

CodeEffect
0Reset
1Bold
4Underline
30–37Text: gray, red, green, yellow, blue, pink, cyan, white
40–47Background colors

Troubleshooting

  • I see [31m instead of colors: the escape character was lost. Copy with the button above rather than retyping, and keep the ```ansi line.
  • No colors on my phone: mobile rendering still needs a device test. Keep the message readable in plain text.
  • Colors look different: Discord changed its ANSI palette in 2026 and is testing more color codes. The preview here is approximate; the eight classic colors are the safest choice.

Thanks to rebane2001's open-source colored text generator, the long-standing reference for this technique.