Discover AI Tools

ANSI Colored Text

Make colored text for Discord using ANSI codes inside a code block. Type your text, pick colors, and copy the result. Paste it into Discord to see the colors.

Discord shows ANSI colors only inside a ```ansi code block, and currently on desktop/web (not always on mobile).

Style

Preview

Hello Discord!

Copy this into Discord

What is the Discord ANSI Colored Text Generator?

The Discord ANSI Colored Text Generator lets you create colorful text messages in Discord using ANSI escape codes inside code blocks. Discord supports a subset of ANSI color codes when you use the "ansi" language identifier in fenced code blocks, allowing you to add foreground colors, background colors, and text formatting like bold and underline to your messages.

This is one of Discord's lesser-known features that can make announcements, rules, and important messages stand out dramatically. Instead of plain white text, you can highlight keywords in red, color-code sections in blue or green, and add visual structure that guides readers through your content. Server moderators and bot developers particularly benefit from colored text for formatted responses.

The tool provides a visual editor where you select text, apply colors and styles, and then copy the complete code block markup ready to paste directly into any Discord channel. No manual escape code memorization required - the tool handles all the formatting syntax for you.

How to Use This Tool

  1. Type or paste your message text into the editor area. You can write multiple lines for complex formatted messages.
  2. Select the portion of text you want to color by highlighting it with your mouse or keyboard.
  3. Choose a foreground (text) color from the available ANSI color palette. Discord supports 8 standard colors: gray, red, green, yellow, blue, pink, cyan, and white.
  4. Optionally apply a background highlight color and text formatting (bold, underline) to the selected text.
  5. Repeat for different sections of your message, applying different colors to different words or phrases.
  6. Click Copy to get the complete formatted code block, then paste it directly into a Discord message.

Supported ANSI Colors and Codes

Tips for Discord ANSI Text

Frequently Asked Questions

Does ANSI colored text work on Discord mobile?

ANSI foreground colors generally work on Discord mobile (iOS and Android), though rendering may vary slightly between platforms. Background colors and some style combinations may not display correctly on older mobile app versions. Desktop and web clients have the most consistent rendering.

Can I use ANSI colors in Discord bot messages?

Yes. Discord bots can send messages containing ANSI code blocks just like regular users. Many bot developers use ANSI colors to format command outputs, error messages, and status displays. Include the formatted code block in your bot's message content string.

Why are my colors not showing?

Ensure your text is inside a fenced code block (triple backticks) with "ansi" specified as the language. The format should be three backticks followed by "ansi" on the first line, your colored text with escape codes on subsequent lines, and three closing backticks. Regular code blocks without the "ansi" language tag will not render colors.

How many colors can I use in one message?

You can use as many color changes as you want within a single code block. Each color change uses an escape sequence that adds a few characters to your message. Discord's 2000-character message limit applies to the raw text including escape codes, so very heavily formatted messages may hit the limit sooner than plain text.

Can I save colored text templates?

This tool generates the formatted text for you to copy. You can save the output in a text file or note-taking app for reuse. Many server administrators keep a document of pre-formatted announcements and rules that they can paste when needed.