Discord Colored Text Generator
Make coloured text for Discord: an ```ansi code block with red, green, blue and five more colours, backgrounds, bold, underline and rainbow letters. Copy and paste.
Paste the whole block, including the ```ansi line and the closing ```. Colours show in the Discord desktop app and in the browser; the mobile apps may show the text without colours.
| Code | Meaning | Type |
|---|---|---|
| ESC[30m | Gray | Text colour |
| ESC[31m | Red | Text colour |
| ESC[32m | Green | Text colour |
| ESC[33m | Yellow | Text colour |
| ESC[34m | Blue | Text colour |
| ESC[35m | Pink / magenta | Text colour |
| ESC[36m | Cyan | Text colour |
| ESC[37m | White | Text colour |
| ESC[40m | Black / dark | Background |
| ESC[41m | Red / orange | Background |
| ESC[42m | Green | Background |
| ESC[43m | Yellow | Background |
| ESC[44m | Blue | Background |
| ESC[45m | Magenta / indigo | Background |
| ESC[46m | Cyan | Background |
| ESC[47m | White | Background |
| ESC[1m | Bold | Style |
| ESC[4m | Underline | Style |
| ESC[0m | Reset | Turns everything off |
Discord has no colour picker for messages, but it does colour text inside a code block marked ansi. This generator writes that block for you: choose a text colour, a background, bold or underline, or let it colour each line, word or letter in a rainbow. Copy the result, paste it into any Discord channel or DM, and send. It is handy for server rules, announcements, game logs and status messages.
How to use this tool
- Type your message.
- Choose whole-text colouring, or a new colour for each line, word or letter.
- Pick a text colour, an optional background and bold or underline.
- Copy the whole result, including the
`ansi first line and the closing`, and paste it into Discord.
Formula
Coloured text = ESC [ style ; background ; colour m + text + ESC [ 0 m
These are ANSI escape codes (SGR sequences, ECMA-48). ESC is the invisible control character U+001B, which the generator inserts for you. Style 0 is normal, 1 bold and 4 underline; text colours are 30–37 and backgrounds 40–47. Discord draws them with its own palette, which has changed over the years, so the exact shades depend on your Discord version and theme. Rainbow and word modes cycle through red, yellow, green, cyan, blue and pink.
Example
“Hi” in red is a 25-character message: the line `ansi, then ESC[0;31m (7 characters), Hi and ESC[0m (4), then ` on its own line. Bold blue on a dark background uses ESC[1;40;34m instead. In rainbow mode, “ab c” becomes red a, yellow b, an uncoloured space and green c, each letter with its own code.
Frequently asked questions
Why does my coloured text show as plain text?
The block must start with `ansi on its own line and end with `, and the invisible ESC characters must survive copying, so copy the result in one piece. Colours are drawn by the desktop app and the website; Discord’s mobile apps may show the text without colours.
Can I use any colour, like a hex code?
Not reliably. Discord supports the eight standard ANSI colours for text and backgrounds, plus bold and underline. Codes outside those may be ignored.
Does coloured text count toward the 2,000-character limit?
Yes. Every colour code adds 5 to 12 characters (ESC[0;31m is 7), so rainbow text uses up the limit quickly. The result shows the full length and warns you if it is too long.
Sources
Last updated:
Page address with these inputs: https://kakao.mobile/tools/discord-colored-text-generator/
Cite or embed this tool
kakaoCalc. (2026, November 8). Discord Colored Text Generator. https://kakao.mobile/tools/discord-colored-text-generator/
“Discord Colored Text Generator.” kakaoCalc, 8 Nov. 2026, kakao.mobile/tools/discord-colored-text-generator/.
Paste this code into your page. The widget runs in your visitors' browsers, shows no ads and keeps a link back to this page. Embedding terms