Skip to main content
utility·Updated 2026-05-20

Discord Color Text Generator Updated 2026

Generate colored text for Discord using ANSI escape codes inside the mandatory ```ansi fence. 8 foreground + 8 background colors, bold and underline toggles, live preview matching Discord's Solarized palette.

ANSI ```ansi fence · 16-color Solarized · Desktop + browser

ANSI color generator

Foreground: Yellow, ANSI 33.
Foreground (text)
Background
Discord preview (code block)
Welcome to the stream!
Foreground
Yellow
Background
Escape
\u001b[33m
Code block (paste into Discord)
No sign-up required. Use the tool, share the result, leave — no account needed.
Client-side computation. Calculations run entirely in your browser; we never see your inputs.
Embed in OBS / Discord. Append ?embed=1 to the URL for a bare iframe-ready widget.
How to use this tool

4 steps · ~30 seconds

Each step is a single action — no setup, no sign-up. Outputs are client-side; nothing is uploaded.

Step 01

Type your message

Enter the message you want to color in the textarea. Single line works best — newlines inside an ANSI code block stay inside the block.

Step 02

Pick foreground / background

Tap a foreground swatch from the 8-color row. Optionally pick a background. Toggle Bold and Underline as needed.

Step 03

Copy the generated code block

The textarea labeled "Code block" assembles your text inside a triple-backtick ansi fence with the escape sequences applied.

Step 04

Paste into Discord

Paste into any text channel, DM, or thread. Discord renders the colors on desktop and browser; mobile clients show monochrome.

FAQ · methodology & caveats

Frequently asked.

Calculator outputs are estimates. Each Q below names the source data and the assumptions baked in.

How do I add color to text in Discord?
Discord supports ANSI escape codes — but only inside a code block opened with ```ansi. Plain text doesn't accept color formatting. The escape sequence format is \u001b[<code>m where <code> is one of Discord's 8 foreground (30-37) or 8 background (40-47) ANSI numbers, plus optional 1 (bold) and 4 (underline). Mobile Discord ignores the codes and renders plain.
What colors does Discord support?
Eight foreground colors and eight background colors. Foreground: Gray (30), Red (31), Green (32), Yellow (33), Blue (34), Pink (35), Cyan (36), White (37). Background: Firefly Dark Blue (40), Orange (41), Marble Blue (42), Greyish Turquoise (43), Gray (44), Indigo (45), Light Gray (46), White (47).
Can I use color in regular Discord messages or just code blocks?
Code blocks only. The ```ansi fence is required. A plain message containing the same escape sequence renders the literal characters. For decorative text in regular messages, use Discord markdown — bold (**), italic (*), strikethrough (~~), spoiler (||).
Why does my colored text appear gray on mobile Discord?
Discord's iOS and Android clients don't parse ANSI escape codes inside code blocks. Desktop Discord (Win / Mac / Linux), Discord Web in a browser, and Discord PWA all render the colors correctly.
Can I combine bold + color + background?
Yes. Combine codes with semicolons inside a single escape sequence: \u001b[1;31;40m means bold + red foreground + dark blue background. Always close with \u001b[0m to reset. The generator above does the combining automatically.
Can I use 256-color or RGB true-color?
No. Discord only parses the standard 16-color ANSI subset (8 foreground + 8 background, plus bold and underline). 256-color and 24-bit true-color codes render as plain text.

Done with the tool? Ship the channel.

Streamrise delivers real Twitch and Kick viewer floors — residential IPs, geo-targeted, with chat presence. Same engineering rigor you saw in the calculator, on the paid side. No password requested. Cancel anytime.