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 color blocks on desktop and modern mobile. Older mobile clients show the plain text without colors.

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?

Yes on modern iOS and Android Discord apps (added late 2022 / early 2023). Older mobile versions show the plain text without colors — but the message remains readable, just monochrome. Desktop and web have supported it since 2022. The fallback degrades gracefully — no broken messages.

Why doesn't my colored text show colors?

Two common causes: (1) you wrote the language tag 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 usually can't type directly — that's why generators like this exist. Copy the full block from this tool, don't retype it. (3) If you're on iOS older than 14.x, the ANSI renderer may not be installed.

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