Discord Color Text Generator

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):

1
2
3
4
5
6

Add a color to the sequence:

Discord Preview

S
StyleBot
Type text above to see a preview...
Discord CodePaste into any Discord channel

Also try our Discord Text Generator, Bold Text Generator, and Fancy Font Generator.

Built-in Color Sequences

Rainbow
Fire
Ocean
Sunset
Neon
Pastel
Red & Blue
Matrix

You can also build a custom sequence by clicking any color in the tool above.

Available ANSI Colors in Discord

Gray
Red
Green
Yellow
Blue
Pink
Cyan
White

What Is Discord Colored Text?

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.

How to Use Discord Colored Text

  1. Type or paste your text into the input box.
  2. Choose a preset color sequence (Rainbow, Fire, Ocean, etc.) or build your own by clicking colors in the sequence builder.
  3. The Discord preview updates in real time, showing each letter in its assigned color.
  4. Click Copy to copy the full ANSI code block to your clipboard.
  5. Open Discord, paste the code block into any message box, and send. Each letter renders in its own color.

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.

ANSI Color Code Reference

CodeEffectCategory
0Reset (clear all formatting)Reset
1BoldStyle
4UnderlineStyle
30Dark Gray textForeground
31Red textForeground
32Green textForeground
33Yellow textForeground
34Blue textForeground
35Pink textForeground
36Cyan textForeground
37White textForeground
40Navy backgroundBackground
41Orange backgroundBackground
42Dark Teal backgroundBackground
43Sage backgroundBackground
44Steel Gray backgroundBackground
45Indigo backgroundBackground
46Light Gray backgroundBackground
47White backgroundBackground

Format: ```ansi on the first line, then ESC[CODEmYour text ESC[0m, then ```. Combine codes with semicolons: ESC[1;31m = bold red.

Tips for Discord Colored Text

Keep it readable

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.

Use bold for emphasis

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.

Multiple colors in one message

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.

Desktop and web only

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.

More Discord Tools

Frequently Asked Questions

How do you make each letter a different color in Discord?

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.

What colors are available in Discord ANSI text?

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.

Does Discord colored text work on mobile?

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.

What is an ANSI escape code?

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.

Why does my colored text show as a code block instead of colored text?

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.

Can I combine colors and bold in Discord?

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.

Is this tool free?

Yes, completely free with no account required.

Copyright © 2026 - All Rights Reserved - Stylishtextgenerator

Brought to Life By ServerSided