Discord Text Color Generator
Create colored text for Discord using ANSI color codes inside a code block - pick a foreground color, background, and style, then copy the result straight into a message.
Recommended Settings
Pro Tips
- •Discord only renders these colors inside a code block on desktop and web - the mobile app displays the plain, uncolored text instead
- •To combine multiple colors in one message, generate each colored segment separately and paste them together inside a single ```ansi block
- •The preview approximates Discord's dark theme colors, but the actual appearance may vary slightly by client and theme
- •Not all background colors are supported on every color combination in Discord - test in a real message if a specific look matters
Most Popular
Most users pick yellow or green text with no background for eye-catching but readable announcements
When to Use This Tool
Make an important server announcement stand out with color.
Color-code a bot's output for clarity, like green for success and red for errors.
Add visual emphasis to a message in a busy Discord channel.
Style text banners or ASCII art with Discord's supported ANSI colors.
How It Works
Wrap your text with ANSI escape codes representing the selected foreground color, background color, and style
Place the ANSI-coded text inside a ```ansi fenced code block, the format Discord recognizes for colored text
Copy the result directly into a Discord message box to see it rendered in color
100% Private
Files never leave your device. All processing happens locally in your browser.
Lightning Fast
Powered by ANSI escape codes inside a Discord ```ansi code block for optimal performance on modern browsers.
Open Source
Built with verified, open-source libraries. Fully transparent.
Frequently Asked Questions
Why doesn't this show color on Discord mobile?
Discord's mobile apps don't currently render ANSI color codes inside code blocks - the text will still send and display correctly, just without color, on mobile.
Can I use multiple colors in one message?
Yes, generate each colored piece of text separately, then combine the ANSI-coded lines together inside a single ```ansi code block before sending.
Why does my message show the raw code instead of color?
Make sure you're pasting the full ```ansi code block, including the triple backticks and 'ansi' language tag - without them, Discord treats it as plain text.
Is my data sent to a server?
No. The color code is generated entirely in your browser.
Does this work in Slack or other chat apps?
No, this specific ```ansi code block format is a Discord-specific feature. Other platforms don't render it the same way.