EN
My tools

Discord Colored Text Generator

Make coloured text for Discord: an ```ansi code block with red, green, blue and five more colours, backgrounds, bold, underline and rainbow letters. Copy and paste.

Up to 1,500 characters (colour codes add length; Discord allows 2,000 per message).
Used for “whole text”; the other modes cycle through red, yellow, green, cyan, blue and pink.
Discord message
67 characters including colour codes

Paste the whole block, including the ```ansi line and the closing ```. Colours show in the Discord desktop app and in the browser; the mobile apps may show the text without colours.

Codes Discord understands (ESC is the invisible character U+001B)
CodeMeaningType
ESC[30mGrayText colour
ESC[31mRedText colour
ESC[32mGreenText colour
ESC[33mYellowText colour
ESC[34mBlueText colour
ESC[35mPink / magentaText colour
ESC[36mCyanText colour
ESC[37mWhiteText colour
ESC[40mBlack / darkBackground
ESC[41mRed / orangeBackground
ESC[42mGreenBackground
ESC[43mYellowBackground
ESC[44mBlueBackground
ESC[45mMagenta / indigoBackground
ESC[46mCyanBackground
ESC[47mWhiteBackground
ESC[1mBoldStyle
ESC[4mUnderlineStyle
ESC[0mResetTurns everything off
My tools →
Advertisement

Discord has no colour picker for messages, but it does colour text inside a code block marked ansi. This generator writes that block for you: choose a text colour, a background, bold or underline, or let it colour each line, word or letter in a rainbow. Copy the result, paste it into any Discord channel or DM, and send. It is handy for server rules, announcements, game logs and status messages.

How to use this tool

  1. Type your message.
  2. Choose whole-text colouring, or a new colour for each line, word or letter.
  3. Pick a text colour, an optional background and bold or underline.
  4. Copy the whole result, including the `ansi first line and the closing `, and paste it into Discord.

Formula

Coloured text = ESC [ style ; background ; colour m + text + ESC [ 0 m

These are ANSI escape codes (SGR sequences, ECMA-48). ESC is the invisible control character U+001B, which the generator inserts for you. Style 0 is normal, 1 bold and 4 underline; text colours are 30–37 and backgrounds 40–47. Discord draws them with its own palette, which has changed over the years, so the exact shades depend on your Discord version and theme. Rainbow and word modes cycle through red, yellow, green, cyan, blue and pink.

Example

“Hi” in red is a 25-character message: the line `ansi, then ESC[0;31m (7 characters), Hi and ESC[0m (4), then ` on its own line. Bold blue on a dark background uses ESC[1;40;34m instead. In rainbow mode, “ab c” becomes red a, yellow b, an uncoloured space and green c, each letter with its own code.

Frequently asked questions

Why does my coloured text show as plain text?

The block must start with `ansi on its own line and end with `, and the invisible ESC characters must survive copying, so copy the result in one piece. Colours are drawn by the desktop app and the website; Discord’s mobile apps may show the text without colours.

Can I use any colour, like a hex code?

Not reliably. Discord supports the eight standard ANSI colours for text and backgrounds, plus bold and underline. Codes outside those may be ignored.

Does coloured text count toward the 2,000-character limit?

Yes. Every colour code adds 5 to 12 characters (ESC[0;31m is 7), so rainbow text uses up the limit quickly. The result shows the full length and warns you if it is too long.

Sources

Last updated:

Cite or embed this tool
APA

kakaoCalc. (2026, November 8). Discord Colored Text Generator. https://kakao.mobile/tools/discord-colored-text-generator/

MLA

“Discord Colored Text Generator.” kakaoCalc, 8 Nov. 2026, kakao.mobile/tools/discord-colored-text-generator/.

Paste this code into your page. The widget runs in your visitors' browsers, shows no ads and keeps a link back to this page. Embedding terms

Advertisement