T

Text Machine

Powerful text tools, in your browser

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.

Your text
Style

Text color

Background color

Emphasis

How to use Discord Colored Text

  1. 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. 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. 3

    Add bold or underline

    Turn on bold or underline for extra emphasis. You can combine them with any color or background.

  4. 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?
Discord renders color through a special code block tagged with the word ansi, which understands a set of color codes. This tool writes those codes for you: you pick a color, it builds the code block, and you paste the result into a message. There are no bots or plugins involved — it uses a feature that is already part of Discord.
Why is my colored text not showing up in color?
Color only appears when the whole code block is pasted exactly as copied, including the lines that open and close it. If you delete those lines or only copy the words in the middle, Discord shows plain text. Coloring also relies on the ansi code block feature, so a very old client may show the text without color while everyone on a current version sees it correctly.
Does Discord colored text work on mobile?
Recent versions of the Discord mobile apps render ansi color blocks, so in most cases your colored message will look the same on phones as it does on desktop and web. Some older or alternative clients may fall back to plain monospace text. The text itself is always readable either way — only the color may be missing.
Which colors can I use?
Discord's ansi formatting supports a fixed palette of eight text colors and eight background colors, plus bold and underline. This tool exposes all of them, so what you see in the preview is exactly what Discord can display. You cannot use custom hex colors, because the feature only understands that built-in set.
Can I use more than one color in a single message?
This tool styles the text you enter with one color at a time, which covers the most common need. To mix several colors in one message you can generate each colored piece here and place them together inside a single code block. As long as everything stays within one ansi block, Discord will color each part the way you set it.
Is my text uploaded anywhere?
No. The whole thing runs locally in your browser using JavaScript. Your text is never sent to a server, stored, or logged, so you can safely format private messages or server announcements. Close the tab and nothing is kept.

Related tools

Keep going with these handy tools

Fancy Text Generator

Zalgo Text Generator

Upside Down Text Generator

Strikethrough Text Generator

Redacted Text Generator

Invisible Text Generator