Livecounts.nl
Illustration of a chat code block with lines in different colours and a colour palette

Discord colored text generator

Select text, pick a color and copy a ready-made ```ansi message that shows colored text in Discord on desktop and in the browser.

ANSI code block

Color your message

Stays on your device
Examples
Select

Select part of your text, then pick a color. With nothing selected, the color is used for what you type next. Ctrl+B and Ctrl+U work too.

Text color
Background
Style

Preview

Approximation of Discord's Dark theme

YouToday


            

Message to paste

= invisible escape character

          

0 / 2,000 characters

Copy for Discord gives the exact message, with the real escape characters. The JSON string is for bot code and webhooks, with each escape written as \u001b.

Your text is turned into a Discord message on this device. Nothing you type is uploaded or stored.

Advertisement

How to use colored text in Discord

  1. Type or paste your text above, or start from an example.
  2. Select part of it and pick a text color, a background, Bold or Underline. On a phone, tap This line or All text to select, or pick a color first and then type.
  3. Check the preview, then select Copy for Discord.
  4. Paste it into a Discord message and send it. The copy already includes the ```ansi lines and the invisible escape characters.
  5. Keep it under 2,000 characters, or 4,000 with Nitro.

Which colors work, and where

Where Discord shows ANSI colors, checked 20 November 2026
WhereColored text?
Discord desktop app (Windows, macOS, Linux)Yes 8 text colors, 8 backgrounds, bold and underline
Discord in a web browserYes The same as the desktop app
Discord for iPhone and AndroidNo The code block shows without colors; some reports say the codes can show as well
Messages from bots and webhooksYes In the message text and in embeds, inside an ansi code block
Usernames, nicknames, channel and role namesNo They can't contain code blocks

Discord supports 8 text colors (codes 30 to 37), 8 backgrounds (40 to 47), bold (1), underline (4) and reset (0). In 2026 Discord changed the palette: backgrounds now use the same eight colors as text, and the shades follow each reader's theme, so guides that list orange or “firefly dark blue” backgrounds are out of date. Black text is almost invisible on dark themes, and bright colors (90 to 97) don't work. Italic, strikethrough and RGB colors have been rolling out since October 2026 but don't reach every reader yet, so this generator leaves them out.

How the color codes work

A colored message is a code block that starts with ```ansi on its own line. Each code inside it is the invisible escape character (U+001B), then [, numbers separated by semicolons, and m: ␛[1;31m makes the following text bold and red until ␛[0m resets it. Keyboards can't type the escape character, so you copy it from a generator. Three backticks in your text would end the block early, so the generator splits them with an invisible zero-width space. To edit a colored message again, paste it into the editor.

Sources, checked 20 November 2026: kkrypt0nn's A guide to ANSI on Discord and rebane2001's Discord Colored Text Generator, including their 2026 updates and comments on the new palette and codes; the discord.py Masterclass page on Markdown and ANSI; Discord's developer documentation for messages and webhooks (content up to 2,000 characters) and Discord's Nitro page (longer messages up to 4,000 characters). We found no official Discord documentation for ANSI code blocks. Preview colors follow the Dark theme values in rebane2001's generator.

Your text stays in your browser

The message is built on your device. This page doesn't send, store or log what you type.

Frequently asked questions

Why don't the colors show on my phone?

As far as we could verify in November 2026, the Discord apps for iPhone and Android don't render ANSI colors, so phone readers see the code block without colors. The desktop app and Discord in a browser show them, so don't rely on color alone for important information.

Why do I see plain text or codes like [31m instead of colors?

The message has to start with three backticks and ansi on its own line, with no space in between, and end with three backticks. The escape characters are invisible and get lost when you retype the codes, so copy the whole message with Copy for Discord and paste it unchanged.

Can I use italic, RGB or more colors?

Not reliably yet. Since October 2026 Discord has been rolling out italic, strikethrough and custom RGB colors in ansi code blocks, but not every reader sees them, so this generator sticks to 8 text colors, 8 backgrounds, bold and underline.

How long can a colored message be?

2,000 characters, or 4,000 with Nitro or Nitro Basic. The ansi lines and every color code count too, so the counter above includes them. Messages sent by bots and webhooks are limited to 2,000 characters.

Can I color my username or channel name?

No. ANSI colors only work inside a code block, in a message or in a bot or webhook embed. Name colors come from server roles.

More free tools

Discord timestamp generator Show a time in each reader's time zoneDiscord ID lookup See when an account or server was createdDiscord member count Live member count of a serverCharacter counter Count characters, words and linesAll free tools Every tool on Livecounts.nl

Advertisement