Discord colored text generator

Type your message, select words and pick their color: the tool builds the ansi code block to paste into Discord, with a preview of how it looks. Colors show up in the Discord desktop app and in the browser.

  • 8 Discord colors
  • Live preview
  • One-click copy
  • Free
Text color
Background color

Write your message, select words, then click a color. What you see here is how it looks in Discord.

0 characters (2,000 max per Discord message)
 

Paste the block into Discord as is, including the ```: colors show up in the Discord desktop app and in the browser. The mobile app shows the text, but without the colors.

100% private — Everything is processed directly in your browser: your files, voice, and image are never sent to Chatzam's servers.

How do you type in color on Discord?

  1. Write your message

    Type or paste your text into the editor, on one line or several.

  2. Color the words

    Select a word or a sentence, then apply a text color, a background color, bold or underline. The preview shows how it will look in Discord.

  3. Copy and paste into Discord

    Click the copy button, paste into Discord's message box and send: the block shows up in color.

Colored text on Discord without typing any code

Discord's 8 colors

Gray, red, green, yellow, blue, pink, cyan and white: the text colors Discord can display in an ansi block.

Background, bold and underline

Make a word stand out with a background color, bold or underline, for a heading, a rule or a warning.

Accurate preview

You see how it looks in Discord before copying: no need to send test messages to your server.

Ready-to-paste code

The ```ansi block and the invisible control characters are generated for you, then copied in one click.

How does colored text work on Discord?

Discord has no button for coloring text. Color comes from a code block whose language is “ansi”: the message starts with three backticks followed by the word ansi (```ansi), alone on the first line, and ends with three backticks. Inside, ANSI codes change the style: ESC[31m turns the text red, ESC[32m green, ESC[1m turns on bold, ESC[4m underline and ESC[0m resets to the normal style. Text colors use codes 30 to 37, background colors codes 40 to 47. That's where the difficulty lies: ESC is an invisible character (control character number 27) that you can't type on a keyboard. The generator inserts it for you.

My colors don't show up on Discord: why?

The first and most common reason: you're looking at the message in the mobile app. On phones, Discord shows the block without the colors, while they do appear on desktop and in the browser. Second reason: the word “ansi” doesn't come right after the three backticks, for example because of a space, or the text starts on the same line. Third reason: the block was retyped or edited by hand and the invisible ESC characters were lost; all that's left are bits like “[31m” in plain text in the message. Copy the block with the tool's button, without changing it. Finally, each color change adds a few characters that count toward the 2,000-character limit per message (4,000 with Nitro).

Discord's other formatting: bold, italics, strikethrough, spoilers

For a simple effect, you don't need color: Discord understands Markdown syntax in every message, on desktop and mobile alike. **text** shows in bold, *text* in italics, __text__ underlined, ~~text~~ struck through, and ||text|| becomes a hidden spoiler you have to click to read. A backtick on each side (`text`) gives inline code, three backticks a code block. Color, on the other hand, only exists in ansi blocks, shown in a code box with a monospace font: perfect for an announcement, server rules or a scoreboard, less so for everyday chat. For styled letters that work everywhere, try the “Fancy Text Generator”.

Frequently Asked Questions

How do I type in color on Discord?

You need to send an ansi code block: three backticks followed by “ansi”, the text with its color codes, then three backticks. The easiest way is to create it here, copy it and paste it into Discord.

Do I need Discord Nitro to type in color?

No. Ansi blocks work with a free account, on a server as well as in direct messages.

Why doesn't colored text work on my phone?

Discord's mobile app shows the contents of ansi blocks without the colors. People reading the message on desktop or in the browser do see the colors.

Which colors can you use on Discord?

Eight text colors: gray, red, green, yellow, blue, pink, cyan and white (codes 30 to 37), plus background colors (codes 40 to 47). You can't pick a custom color, such as a hex code.

How do I make text bold or strikethrough on Discord?

Wrap it in two asterisks for bold (**text**) or two tildes for strikethrough (~~text~~). One asterisk on each side gives italics, and two vertical bars (||text||) a spoiler.

Other free tools

See all free tools →