PIGONA
Colored Text Generator

Discord Colored Text Generator

Create colored text for Discord with ANSI code blocks. Pick the colors and a style, check the preview on the dark and light theme, then copy and paste.

How to send colored text in Discord

Discord colors text inside a code block that starts with ```ansi. Inside it, ANSI escape codes set the text color, the background color, bold and underline. The colors show in Discord on desktop and in the browser; the mobile apps may show the block without them.

Available Discord ANSI colors

These are the 8 text colors, codes 30-37, with the names this tool gives them:

The 8 background colors, codes 40-47: Dark Blue (40), Orange (41), Marble Blue (42), Greyish Turquoise (43), Gray (44), Indigo (45), Light Gray (46) and White (47).

How to use this tool

  1. Type your text under Your Text.
  2. Pick a color under Text Color and, if you like, one under Background Color. The whole text gets the same style.
  3. Under Text Style, turn on Bold or Underline if you want them.
  4. Check the result under Discord Preview, on Dark and on Light.
  5. Click Copy to Clipboard and paste the block into a Discord message.

The full ANSI escape syntax

Every style change is one escape sequence: the invisible escape character, then [, then one or more code numbers separated by semicolons, then m. This article writes the escape character as ESC; in JavaScript and JSON it is \u001b, in many other languages \x1b. These are the codes this tool writes:

The tool writes one sequence in front of your text and always starts it with 0, so no earlier style carries over: ESC[0;1;31m means reset, bold, red text. A style stays on until a later sequence changes it or resets it with 0, so when you edit a block by hand and want only part of it colored, end that part with ESC[0m.

Why your colored text might not work

When to use ANSI vs Markdown vs embeds

For a quick highlight in regular chat, Discord Markdown (bold, headers, lists) is usually the better choice. Use ANSI when you need color, for example for log-style status lines or a colored word inside a code block; the text is then in a monospace font. For important formatted messages from a bot or webhook, such as announcements or structured data, use embeds: they have a colored bar on the left edge and a title, a description and fields.

More free Discord tools

Powered by Pigona - Free Translation for Discord