Free tool — no login required

Discord Colored Text Generator

Pick a text color, background, and style. Get a copy-paste ANSI code block that renders colored text in Discord chat. 9 colors, 9 backgrounds, live preview, instant copy.

Preview (how it looks in Discord)
Hello Discord
Copy this to Discord
```ansi
Hello Discord
```

Discord renders ANSI colour blocks on desktop and web. Mobile support is unreliable — plan for phone readers seeing plain text. The message stays readable either way, so don’t let colour carry meaning on its own.

Want a bot that posts colored announcements for you?

Scheduled messages, mod logs, and embeds — built from one sentence.

See what you can build

How Discord colored text works

In 2022, Discord quietly added ANSI color rendering inside code blocks. The standard ANSI escape sequence — used in terminals since the 1970s — is now interpreted by Discord’s message renderer when you wrap text in a ansi code block. Type the escape character followed by a color code (30-37 for text, 40-47 for background), and that color applies until you reset it.

The catch: you can’t type the escape character (Unicode U+001B) directly from a normal keyboard. That’s why generators like this one exist — you pick colors visually, and the tool emits the full block with the correct invisible characters baked in. Paste, send, done.

Practical uses: highlighting important parts of a long message, color-coding status indicators in bot output (red = error, green = success, yellow = warning), visual emphasisfor announcements or events. Power users style their personal status messages and bot embeds with subtle color accents. It’s also great for tutorials — colored variable names, function names, or comments in code examples.

ANSI color codes reference

CodeText colorCodeBackground
30Gray40Firefly black
31Red41Orange
32Green42Marble
33Yellow43Greyple
34Blue44Blurple
35Pink45Indigo
36Cyan46Silver
37White47White

Frequently asked questions

How do you make colored text in Discord?

Discord added ANSI color support to code blocks in 2022. To make colored text, wrap your message in a triple-backtick "ansi" code block with ANSI escape sequences inside (the ESC character + a color code). The escape character (Unicode U+001B) is invisible and impossible to type from a normal keyboard, so generators like this one exist — pick your colors visually, copy the output, paste into Discord. The block renders as colored text in chat.

What colors can I use in Discord chat?

9 text colors (gray, red, green, yellow, blue, pink, cyan, white, none) and 9 backgrounds (firefly black, orange, marble, greyple, blurple, indigo, silver, white, none). These are based on the Solarized palette that Discord chose for its ANSI rendering. You can also combine with bold (1) and underline (4) for emphasis.

Does colored text work on mobile Discord?

Not reliably. Desktop and web have rendered ANSI colour blocks since 2022, but mobile support has been inconsistent — plan for mobile readers seeing plain monochrome text. The good news is the fallback is graceful: the message stays perfectly readable, it just loses the colour. Don’t use colour to carry meaning on its own.

Why doesn't my colored text show colors?

Three common causes: (1) the language tag is wrong — it must be exactly "ansi" (lowercase, no quotes), inside triple backticks. (2) The escape character has to be a literal ESC (Unicode U+001B), which you can't usually type directly — that's why generators like this exist, so copy the whole block rather than retyping it. (3) You're reading it on mobile, where colour rendering is inconsistent.

Can I use colored text in Discord bot messages?

Yes — any bot that posts messages can include ANSI code blocks. Useful for syntax-highlighted command output, color-coded status messages (red errors, green success, yellow warnings), and dashboard-style displays. Discord embeds also render ANSI inside their description field. With VibeBot you can build a bot that color-codes log output, sends styled alerts, or applies colors based on user roles.

Are there limits to how much colored text I can post?

The full message (including ANSI escape sequences) counts toward Discord's 2000-character chat limit (4000 with Nitro Basic+). The escape sequences themselves take ~6 characters each, so heavy color use eats into your character budget. For long colored output, post it as a file or use a webhook with embeds — both have higher limits.

Want a bot that posts colored output?

Build a Discord bot that color-codes its messages — green for success, red for errors, yellow for warnings. No code, deploy in 30 seconds.

Build my Discord bot