Discord Color Text Generator
Discord does not have a color button, but code blocks with language tags trigger syntax highlighting that colors the text. This tool wraps your text in the right code block tags to produce red, green, yellow, blue and more.
- Free, no limits
- No login
- Runs in your browser
```diff
-Hello Discord!
``````diff
+Hello Discord!
``````ini
[Hello Discord!
``````css
.Hello Discord!
``````json
"Hello Discord!
``````fix
Hello Discord!
```About this tool
Discord has no color button, but code blocks with language tags trigger syntax highlighting that can color your text.
This tool wraps your text in the right code block so each color renders correctly.
How to use
Type your message.
Pick a color style.
Copy the code block and paste it into Discord to see the colored text.
Colour comes from syntax highlighting
Discord has no colour formatting. What produces coloured text is a code block with a language name, where the syntax highlighter colours tokens according to that language's grammar. You are not choosing a colour - you are choosing a language and writing text that its highlighter happens to colour the way you want.
The ANSI code block is the exception and the more direct route. Using `ansi` as the language enables interpretation of ANSI escape sequences, giving explicit control over foreground and background from a fixed palette of eight colours plus bright variants.
Either way the result is a code block, which means monospace font, a bordered background and no other markdown inside. Coloured text cannot be inlined mid-sentence.
Where it fails to render
ANSI colours render on desktop and in the browser. Mobile support has historically lagged, and on clients that do not interpret the sequences the escape codes appear as literal characters - which is worse than uncoloured text.
Because of that, coloured text is a poor choice for anything load-bearing. It is fine for decoration in a channel where most readers are on desktop, and unsuitable for rules, announcements or anything that must be legible to everyone.
How syntax highlighting colors text
Each language tag triggers a different highlighting grammar. diff colors + green and - red, ini colors brackets blue, css colors selectors orange.
Frequently asked questions
Does this work in embeds?
Code blocks do not render inside embeds. Colored text is a plain-message feature.
Related guides
Browse all guides and generators.
Try other relevant tools
Discord Fancy Font Generator
Convert plain text into 18+ Unicode font styles - bold, italic, script, fraktur, double-struck, monospace, circled and more.
Upside Down Text Generator
Flips text upside down - ʇxǝʇ uʍop ǝpısdn.
Zalgo / Glitch Text Generator
Corrupt text with combining marks - M̷e̶s̸s̵ ̴t̶h̸e̶ ̸z̵a̴l̶g̶o̷.