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.
```ansi [1;36mHello 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.
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
| Code | Text color | Code | Background |
|---|---|---|---|
| 30 | Gray | 40 | Firefly black |
| 31 | Red | 41 | Orange |
| 32 | Green | 42 | Marble |
| 33 | Yellow | 43 | Greyple |
| 34 | Blue | 44 | Blurple |
| 35 | Pink | 45 | Indigo |
| 36 | Cyan | 46 | Silver |
| 37 | White | 47 | White |
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 botMore free Discord tools
Timestamp Generator
Pick a date, get every <t:> format.
OpenText Formatter
Bold, italic, strikethrough, fancy fonts.
OpenEmbed Builder
Visual editor + live preview, copy JSON.
OpenColor Picker
Hex, decimal, RGB for embed.color.
OpenUsername Generator
7 styles, 10 results per click.
OpenAvatar Downloader
Full-resolution PFP + banner from a user ID.
OpenBio Generator
Aesthetic, gamer, cute About Me templates.
OpenFont Generator
12 Unicode font styles — script, fraktur, bubble.
OpenServer Layout
Copy-paste channel names and category dividers.
OpenRules Generator
Copy-paste server rules by type and tone.
OpenServer Name Generator
20 server name ideas per theme.
OpenInvite Checker
See a server’s name, members, and if an invite is valid.
OpenVanity URL Checker
Is a discord.gg/yourname vanity available?
OpenID Lookup
Username, badges, and account age from any user ID.
OpenEmoji Downloader
Save custom emojis, stickers, and server icons.
OpenEmoji Maker
Resize any image to 128×128 under Discord’s 256KB cap.
OpenPFP Maker
Circle-crop any image to Discord avatar sizes.
OpenBanner Resizer
Crop to exact banner specs with a live profile preview.
OpenBanner Downloader
Someone else’s profile banner at full resolution.
OpenServer Icon Downloader
Any server’s icon at up to 4096px, from an invite link.
Open