Discord does not have a colour-text button, but it can show coloured text inside a special code block. This generator builds that block for you: choose a colour, a background and bold or underline, and copy a ready-to-paste snippet that renders in colour for everyone who sees it on desktop or the web.
How Discord colour text actually works
Discord highlights code blocks using a syntax-highlighting library, and one of the
“languages” it understands is ansi. When a code block is marked as ansi, Discord
reads classic ANSI terminal escape codes inside it and paints the text accordingly.
Writing those escape codes by hand is fiddly and easy to break — this tool assembles
them correctly and hands you the finished block.
A finished message has three parts in your Discord text box: an opening fence of three backticks immediately followed by the word ansi, then your coloured text on the next line, then a closing fence of three backticks on its own line. This tool builds all three for you — you just paste the whole thing and your friends see the colour.
Pick colours Discord can really render
The colour buttons here are limited to the palette Discord’s ansi highlighter
actually supports — eight foreground colours and a set of background shades. That
means there are no surprises: the preview and the pasted result match what Discord
will show. Bold and underline are supported too and combine with any colour.
Where it shows colour (and where it doesn’t)
- Desktop apps and web client — full colour. ✅
- Mobile apps — usually plain monospaced text, no colour. ⚠️
Because mobile users may not see the colour, use it to emphasise rather than to carry meaning that would be lost in plain text.
Tips for clean results
- Copy the entire block, including the opening triple-backtick
ansiline and the closing triple-backtick line. - Keep coloured snippets short — headers, tags, warnings and status lines look best.
- If you edit the message afterwards and the colour disappears, regenerate and paste a fresh block.
Want styled text that works everywhere, including mobile and bios? Try the fancy text generator, bold text generator, or strikethrough text, which use Unicode characters instead of code blocks.