Discord Colored Text Generator
Type a message, pick colors, and copy a ready-to-paste ANSI code block — the invisible escape characters are included so it just works. Free, no signup.
Copy this into Discord
```ansi ESC[31mThis text is colored!ESC[0m ```
ESC is the invisible escape character — included automatically when you copy.
Discord preview
This text is colored!
Renders on desktop and web — not on mobile.
How Colored Text Works in Discord
Discord's code blocks support ANSI escape sequences — the same color codes terminals use. A code block with the language set to ansi and text wrapped in codes like [31m (red) renders in color on Discord desktop and web. The catch: the sequence must start with a real ESC control character (U+001B), which you cannot type on a keyboard. This generator embeds it for you, so the copied block pastes straight into Discord and renders correctly.
Combine styles with semicolons — [1;31m is bold red, [4;45;33m is underlined yellow on indigo. Reset back to normal with [0m. For everything else Discord can format, see the Discord Markdown cheat sheet.
Frequently Asked Questions
How do you get colored text in Discord?
Discord renders ANSI escape codes inside code blocks marked with the ansi language. Type your message above, pick a color, and copy the generated block — the invisible escape characters are included, so it pastes straight into Discord and renders in color.
Why is my colored text not working in Discord?
Two common causes: the escape character is missing (typing the code by hand does not work — it must be the real ESC control character, which this generator includes), or you are on mobile, where Discord does not render ANSI colors.
Does colored text work on Discord mobile?
No. ANSI colored text renders on the Discord desktop app and in the browser, but mobile apps show the code block without colors. Mobile readers still see your text, just uncolored.
What colors can Discord ANSI text use?
Eight text colors (red, green, yellow, blue, pink, cyan, white, gray) and eight background colors, plus bold and underline styles. Codes combine with semicolons, for example [1;31m for bold red.