Discord Colored Text Generator
Write your message, highlight the words you want to stand out, and pick a color. The generator builds the Discord message for you and copies it to your clipboard.
Discord only renders color inside a code block tagged `ansi`, where each color is an invisible ESC control character followed by a code like `[31m`. This tool writes those real ESC bytes for you, so the block works the moment you paste it.
It is free, needs no account, and runs entirely in your browser β nothing you type is sent to a server.
How to use the Discord colored text generator
- Type or paste your message: Start from the sample text or replace it with the message you want to send in Discord.
- Select the words to color: Highlight a word, a phrase, or the whole message. With nothing selected, the next style applies to everything.
- Pick a color or style: Choose a foreground color, a background color, bold, or underline. Styles stack on the same selection.
- Copy the block: Press Copy for Discord. You get a complete ansi code block with the invisible ESC characters already in place.
- Paste it into Discord: Paste into any Discord message box and send. The colors render for everyone on desktop and in the web app.
Discord ANSI color codes
Discord accepts the original 8-color ANSI set and nothing else β no 256-color mode, no hex, no RGB. Foreground codes run 30 to 37, and each one has a background twin ten higher, 40 to 47. Write them as ESC[31m for red text or ESC[41m for an orange background, and combine them with 1 (bold) and 4 (underline) by separating the numbers with semicolons, as in ESC[1;4;31m.
| Color | Hex | Foreground code | Background code |
|---|---|---|---|
| Gray | #4f545c | 30 | 40 (Dark blue) |
| Red | #dc322f | 31 | 41 (Orange) |
| Green | #859900 | 32 | 42 (Gray) |
| Yellow | #b58900 | 33 | 43 (Light gray) |
| Blue | #268bd2 | 34 | 44 (Blue gray) |
| Pink | #d33682 | 35 | 45 (Indigo) |
| Cyan | #2aa198 | 36 | 46 (Silver) |
| White | #ffffff | 37 | 47 (Cream) |
Discord ANSI code block examples
Three blocks you can copy straight into a Discord message. Each preview below shows the colors Discord will render; the Copy button puts the real ansi block, invisible ESC bytes and all, on your clipboard.
Discord red text
The most-requested single color: a red warning line. Red is foreground code 31, so the whole message is wrapped in one ESC[31m ... ESC[0m pair inside an ansi block.
```ansi
ESC[31mWarning: read the rules before you post.ESC[0m
```Discord rainbow text
Discord rainbow text is just a color change per word β cycle through all eight foreground codes, 30 to 37, and reset at the end. There is no gradient mode, so the smallest unit you can color is a run of characters.
```ansi
ESC[31mRESC[0mESC[33maESC[0mESC[32miESC[0mESC[36mnESC[0mESC[34mbESC[0mESC[35moESC[0mESC[37mwESC[0mESC[30m!ESC[0m
```Bold and underlined server rules
Styles stack: a bold underlined heading in cyan, then a colored list underneath. The codes combine in one sequence, so the heading here is ESC[1;4;36m.
```ansi
ESC[1;4;36mSERVER RULESESC[0m
1. Be kind.
2. ESC[1;31mNo spamESC[0m in any channel.
3. Questions go in ESC[4;34m#helpESC[0m.
```Does Discord colored text work on mobile?
Partly. The desktop apps for Windows, macOS, and Linux render ansi code blocks in full color, and so does the web client in any browser. That covers most of the people reading a server announcement.
The iOS and Android apps are the gap: they show the same message as a plain code block, with the colors stripped and the invisible escape sequences hidden rather than displayed. Nothing breaks β your text stays readable and correctly spaced on every device β so write the message so it still makes sense in black and white, and treat color as decoration rather than as the thing carrying the meaning.
Frequently asked questions
- Does Discord support colored text?
- Yes, but only inside a code block tagged ansi. Discord's normal markdown has no color syntax, so an ansi block is the only supported way to send colored text.
- Why is my Discord text not colored?
- The three usual causes: the code block is not tagged exactly ansi in lowercase, the escape sequence is missing its trailing m (ESC[31m, not ESC[31), or you retyped the ESC placeholder instead of copying the real control character. Copy the block from this generator rather than typing it by hand.
- Which colors can I use?
- Eight foreground colors (gray, red, green, yellow, blue, pink, cyan, white) as codes 30-37, the same eight as backgrounds as codes 40-47, plus bold and underline. Discord renders them on a Solarized-style palette, so shades differ slightly from a terminal.
- Does Discord colored text work on mobile?
- Not reliably. The desktop app and the web client render ansi blocks; the iOS and Android apps usually show the text plain inside a code block. The message is still readable everywhere, just without color.
- Is there a character limit?
- Discord messages cap at 2000 characters, and the invisible escape sequences count toward that limit. The generator shows the length of the finished block so you know before you paste.
- Is this generator free?
- Yes. It is free with no signup and no limits, and everything runs locally in your browser.