Discord Colored Text Generator
Type a message, pick a text color and an optional background, add bold or underline, and copy a ready-to-paste code block that Discord renders in full color. It uses Discord's built-in ansi formatting, so there are no bots, no extensions, and nothing to install. Everything runs in your browser, so the text you type is never uploaded.
Text color
Background color
Emphasis
How to use Discord Colored Text
- 1
Type your message
Enter the text you want to color. The colored preview updates instantly as you type, so you always see exactly how it will look in Discord.
- 2
Pick a color
Choose a text color, and optionally a background color, from Discord's built-in palette. The preview shows the real colors right away.
- 3
Add bold or underline
Turn on bold or underline for extra emphasis. You can combine them with any color or background.
- 4
Copy and paste into Discord
Press copy to grab the ready-made code block, then paste it into any Discord message and send. The colors appear for everyone who can see ansi formatting.
About Discord colored text and how it works
How Discord colors text
Discord does not have a color picker in its message box, but it does support color through a quiet feature borrowed from the terminal world. When you wrap text in a code block and tag it with the word ansi, Discord reads a small set of formatting codes inside it and paints the text accordingly. Those codes are the same kind that command-line programs have used for decades to show colored output.
Writing those codes by hand is fiddly and easy to get wrong, which is why a generator helps. You choose a color, a background, and emphasis with a click, and the tool assembles the exact sequence Discord expects and wraps it in the right kind of code block. All you do is copy and paste.
The ansi code-block trick
The whole feature rides on one detail: the language tag on a fenced code block. A normal code block in Discord is opened and closed by a line of three backticks, and whatever you put on the opening fence names the language for syntax highlighting. Type the word ansi right after the opening backticks and Discord switches that block into a mode that understands terminal color codes instead of ordinary highlighting.
That is why the opening and closing fence lines are not optional decoration — they are what activates the color. This tool always copies the complete block, fence lines included, so the magic word is in place. If you ever paste only the middle and drop the fences, Discord has no reason to look for color codes and shows plain text.
The SGR color codes explained
Inside an ansi block, color is set by short Select Graphic Rendition codes, the same numbers terminals have used for ages. Foreground text colors run from 30 through 37 — for example 31 is red, 32 is green, 33 is yellow, and 34 is blue — while background colors run from 40 through 47, so 41 is a red background and 44 a blue one. A leading 1 turns on bold, and 4 turns on underline, and several codes can be combined so one run of text can be, say, bold yellow on a blue background.
Each instruction begins with a special escape character followed by an opening square bracket, then the numbers separated by semicolons and finished with the letter m. A reset code returns the text to normal so the color does not bleed into the rest of the block. You do not have to memorize any of this; the generator selects the right numbers from your choices, but knowing the ranges explains why the palette is exactly eight text colors and eight backgrounds.
Choosing colors that read well
The palette is fixed by Discord, not by this tool: eight text colors and eight background colors, drawn from a classic terminal color scheme. Because the set is small, the trick is pairing colors that stay readable. Light text on a dark background, or a dark background behind a bright accent, usually works best, while two similar tones can wash each other out.
The live preview is there so you never have to guess. It mirrors Discord's dark code block, so the contrast you see on the page is close to what your server members will see. Adjust the text and background until the message is easy to read, then copy it with confidence.
Desktop and mobile support
Colored ansi blocks first arrived on Discord's desktop and web clients, and for a long time that is where they reliably showed up. Recent versions of the mobile apps now render them too, so in most cases a colored message looks the same on a phone as it does on a computer. The colors are computed by Discord on each device, not baked into your message, which is what lets one posted block look right everywhere it is supported.
Support is not perfectly universal, though. A very old client, or an alternative or third-party app, may fall back to plain monospace text and simply skip the color. The important thing is that the words always remain readable in that case — only the color is missing — so a colored message degrades gracefully rather than turning into garbage.
The copy-and-paste workflow
The process is deliberately simple. Type your message, pick a text color and optionally a background, toggle bold or underline, and watch the preview update to match. When it looks right, press copy: the tool places the full ansi code block, fence lines and color codes included, on your clipboard as a single ready-to-send unit.
Then just paste it into any Discord message and send. The one rule to remember is to keep the whole block intact — do not trim the opening or closing fence, and do not paste the colored text into the middle of a sentence outside a code block. To use more than one color in a single message, generate each colored piece here and stack them inside one ansi block so every part keeps its color.
Where colored text helps
A splash of color goes a long way in a busy server. Moderators use it to make rules and announcements stand out, event organizers highlight dates and roles, and community members add personality to introductions or status posts. Because the color lives in an ordinary message, anyone can post it without special permissions.
It is worth remembering that colored text is a finishing touch rather than a core feature, so keep the underlying message clear on its own. That way, even a reader on a client that shows plain text still gets everything they need, while everyone else enjoys the color.
Frequently asked questions
How do I make colored text in Discord?
Why is my colored text not showing up in color?
Does Discord colored text work on mobile?
Which colors can I use?
Can I use more than one color in a single message?
Is my text uploaded anywhere?
Related tools
Keep going with these handy tools