Discord Colored Text Generator
Create colored text for Discord using ANSI code blocks. Pick your colors, preview in dark and light theme, copy and paste into any Discord channel.
How to send colored text in Discord
Discord supports ANSI escape codes inside code blocks. By using the ansi language tag, you can make text appear in different colors. This works on Discord desktop and web - colors may not render on mobile.
Available Discord ANSI colors
- Gray (30) - Default dark text
- Red (31) - Errors, warnings, emphasis
- Green (32) - Success, positive
- Yellow (33) - Warnings, highlights
- Blue (34) - Info, links
- Pink (35) - Accent, special
- Cyan (36) - Cool, subtle
- White (37) - Bright text
How to use this tool
- Type your text in the editor
- Pick a text color and optionally a background color
- Add bold or underline styling if you want
- Preview how it looks in Discord (toggle dark/light theme)
- Click Copy to Clipboard and paste into Discord
The full ANSI escape syntax
Every color change starts with the escape character (ASCII 0x1B, written as ESC in JSON or \x1b in many languages, often rendered ESC in documentation), followed by [, then one or more semicolon-separated code numbers, then m. So ESC[1;31m means "bold red." Discord supports this subset:
- 0 - Reset all styles to default
- 1 - Bold
- 4 - Underline
- 30-37 - Foreground (text) colors: gray, red, green, yellow, blue, pink, cyan, white
- 40-47 - Background colors (8 variants - exact rendered hue varies; use the live preview above to see the actual color for each code)
Combine codes with semicolons in any order: ESC[1;4;33;44m gives you bold + underlined yellow text on a code-44 background. Always close a styled span with ESC[0m if you do not want the formatting to bleed into the rest of the block.
Why your colored text might not work
- Missing the ansi tag. A plain
``` block renders escape sequences as literal text. The opening fence must be exactly ```ansi (lowercase, no space).
- Inline code spans do not support color. Only triple-backtick fenced blocks render ANSI. Single-backtick
`text` spans ignore the escape character.
- Mobile clients drop the colors. The official Discord Android and iOS apps render the code block as plain monospace text and strip the ANSI sequences. Desktop and web are the only clients that show the colors. If your audience is mobile-heavy, fall back to bold/italic Markdown.
- Pasting from a word processor. Programs like Word or Google Docs replace the literal escape character with the visible glyph "ESC" or a smart quote. Always copy from a plain-text source or directly from this tool.
- Code 30 looks invisible on dark theme. "Gray" foreground (30) is nearly the same as Discord's dark code-block background. Use 37 (white) for high contrast, or 90-97 for the brighter variants if you really need a gray.
- No 24-bit / RGB colors. The xterm 256-color and 24-bit-color extensions (
38;2;r;g;b) are not supported. Stick to the basic 8 + 8 palette above.
When to use ANSI vs Markdown vs embeds
For one-line attention grabbers in regular chat, Discord Markdown (bold, headers, lists) renders consistently everywhere and is preferable. Reach for ANSI when you genuinely need color contrast - log-style status lines, syntax-highlighted snippets, or visual emphasis inside a code block. For high-stakes formatted messages (announcements, bot replies, structured data), use embeds instead: they ship a real color bar on the left edge that renders on every client including mobile, and the title / description / field structure gives you typography that no code block can match.
More free Discord tools
Powered by Pigona - Free AI Translation for Discord