Give every letter its own color in Discord
Pick a color sequence like Rainbow or Fire, paste your text, and each letter cycles through the colors. Preview it live, then copy the ANSI code into Discord.
Color Sequence
Current sequence (cycles through letters):
Add a color to the sequence:
Discord Preview
Also try our Discord Text Generator, Bold Text Generator, and Fancy Font Generator.
You can also build a custom sequence by clicking any color in the tool above.
Discord added support for ANSI color codes inside code blocks in 2022. ANSI (American National Standards Institute) escape codes are control sequences originally used to style text in terminals. Discord's desktop and web clients interpret these codes inside code blocks marked with the "ansi" language tag, rendering each character in the specified color.
To make each letter a different color, you wrap every individual character in its own ANSI color escape code. By cycling through a sequence of colors (for example: red, yellow, green, cyan, blue, pink for a rainbow), you get a smooth color gradient across the whole word or sentence. This generator handles all of that automatically.
The feature works on Discord desktop and the browser version. Discord's mobile app does not currently render ANSI colors and will display the raw code block instead.
Spaces are skipped in the color cycle, so the sequence only counts letters and symbols. The color index resets at the start of each message.
| Code | Effect | Category |
|---|---|---|
| 0 | Reset (clear all formatting) | Reset |
| 1 | Bold | Style |
| 4 | Underline | Style |
| 30 | Dark Gray text | Foreground |
| 31 | Red text | Foreground |
| 32 | Green text | Foreground |
| 33 | Yellow text | Foreground |
| 34 | Blue text | Foreground |
| 35 | Pink text | Foreground |
| 36 | Cyan text | Foreground |
| 37 | White text | Foreground |
| 40 | Navy background | Background |
| 41 | Orange background | Background |
| 42 | Dark Teal background | Background |
| 43 | Sage background | Background |
| 44 | Steel Gray background | Background |
| 45 | Indigo background | Background |
| 46 | Light Gray background | Background |
| 47 | White background | Background |
Format: ```ansi on the first line, then ESC[CODEmYour text ESC[0m, then ```. Combine codes with semicolons: ESC[1;31m = bold red.
High-contrast combinations work best. White or yellow text on a dark background (navy, dark teal) is easy to read. Avoid light text on light backgrounds like white on light gray.
Combining a color with bold makes the text more prominent. Green bold text is commonly used for success messages, red bold for warnings or errors.
This generator supports multiple colored segments in a single message. Click "Add Segment" to add as many text sections as you need, each with its own color, background, and style settings. All segments are combined into one ANSI code block automatically.
Always verify your colored text looks right in Discord desktop or web before using it in an important announcement or message. Mobile users will see a plain code block.
Discord supports ANSI escape codes inside code blocks tagged with "ansi". To give each letter its own color, you wrap every character in its own ANSI color code. This generator does that automatically: pick a color sequence, type your text, and every letter cycles through the chosen colors. Copy the generated code block and paste it into Discord.
Discord supports eight foreground colors: gray, red, green, yellow, blue, pink, cyan, and white. It also supports eight background colors: navy, orange, dark teal, sage, steel gray, indigo, light gray, and white. You can combine any foreground and background color, and also apply bold or underline formatting.
Discord colored text using ANSI codes works on the Discord desktop app and the web app (discord.com). Mobile support is limited: the Discord mobile app may not render ANSI colors, showing the raw code instead. For the best results, send colored text when your recipient will view it on desktop or web.
ANSI escape codes are sequences of characters used to control text formatting in terminals and some apps. They start with the ESC character (code 27) followed by a bracket and color codes. Discord added support for ANSI escape codes inside code blocks in 2022, making colored text possible in messages.
Colored ANSI text only renders correctly when the code block uses the "ansi" language tag and the text contains actual ANSI escape sequences. If you copy the output from this generator and paste it directly into Discord, it should render correctly. The raw text may look like symbols in a plain text editor.
Yes. ANSI formatting codes can be combined. Checking Bold in this generator adds the bold code (1) to the escape sequence. Checking Underline adds the underline code (4). You can have bold, underline, a foreground color, and a background color all applied to the same text at once.
Yes, completely free with no account required.
Copyright © 2026 - All Rights Reserved - Stylishtextgenerator
Brought to Life By ♥ ServerSided ♥