Discord colored text generator
Type your message, press the words you want in colour, and copy the block into Discord. Every word can have its own colour.
Colours show in Discord for desktop and in the browser; the phone apps show plain text. Paste the block as it is: it carries an invisible escape character before each code.
How to make colored text on Discord
Discord colours text inside a code block marked ansi. The colour codes sit before each word and are hidden when the message is sent.
- 1
Pick the words
Type your message, then press the words you want to colour. Press Select all to colour everything at once.
- 2
Choose the look
Pick a text colour, a background, bold, or underline, then press Apply. Each word keeps its own look, so one line can use several colours.
- 3
Copy and paste
Copy the block and paste it into Discord as it is. The three backticks and the word ansi on the first line are what turn the colours on.
Discord ANSI color codes
Each coloured word is written as the escape character, an opening bracket, the codes joined by semicolons, and the letter m. Code 0 ends it. Bold red text is [1;31m, and red on a cream background is [31;47m.
The phone apps show the block as plain text, so keep anything important readable without the colour.
| Code | Type | Shows as |
|---|---|---|
30 | Text | Grey |
31 | Text | Red |
32 | Text | Green |
33 | Text | Yellow |
34 | Text | Blue |
35 | Text | Pink |
36 | Text | Cyan |
37 | Text | White |
40 | Background | Dark blue |
41 | Background | Orange |
42 | Background | Slate |
43 | Background | Grey teal |
44 | Background | Grey |
45 | Background | Indigo |
46 | Background | Light grey |
47 | Background | Cream |
1 | Style | Bold |
4 | Style | Underline |
0 | Reset | Back to plain text |
Colored text in your own bot's messages
With BotGhost, the no-code Discord bot maker, your bot can post coloured rules, server status, or game results. Paste the copied block into a reply in the command builder and the bot sends it in colour.
Discord colored text questions
For bold, headings, and lists without colour, use the Discord text formatter.
- How do I type in color on Discord?
- Discord has no colour button. Put your text in a code block that starts with ```ansi and add colour codes before the words. This generator writes the codes for you: pick words, pick a colour, and copy the block.
- Why does my colored text show as plain text?
- The phone apps show ansi blocks without colour, so people on iPhone and Android see plain text. Colours show in Discord for desktop and in the browser. Also check the first line says ```ansi with nothing after it.
- What colors can Discord text be?
- Eight text colours (grey, red, green, yellow, blue, pink, cyan, and white) and eight backgrounds, plus bold and underline. Discord ignores other codes, so there is no custom hex colour for message text.
- Can a bot send colored text?
- Yes. A bot sends the same ansi code block. In BotGhost, paste the copied block into the message text of a Send or Edit a Message block and the bot sends it in colour.
- Can I color my username or role on Discord?
- Your name takes the colour of your highest coloured role. Server admins set role colours in Server Settings, Roles. See the Discord color codes page for the hex codes of every preset.
- Why do I see strange symbols like [31m in my message?
- The block lost its first line or its escape characters. Copy it again from this page and paste it without editing the codes, and make sure the first line is exactly ```ansi.