Discord Text Formatter: Colored text, bold, strikethrough, and spoilers
Format Discord text with a click using the Discord Text Formatter: bold, italic, strikethrough, spoilers, code blocks, or small text, plus colored text in an ANSI code block. Free, no sign-up, and entirely in your browser.
Built by Luca Stanek
Need hosting for your Discord bot too? Keep it running around the clock.
0 of 2,000 characters
Discord-style preview
Your message will appear here as Discord displays it.
Your text stays in your browser: it is neither uploaded nor saved.
Nothing selected: The color and style apply to all text.
Discord-style preview
Welcome to the team
Rules: be friendly
Important114 of 2,000 characters in the final block
Paste the block into Discord and send it. Discord displays colors in the desktop app and browser.
Discord Text Formatter
Format and color Discord messages
Bold, italic, strikethrough, spoilers, code blocks, and colored text: the Discord Text Formatter adds the characters for you, so all you have to do is copy.
Markdown and colored text in one tool
The “Formatting” tab inserts Discord Markdown with a click; the “Colored text” tab creates colored text as an ansi code block. Your text is preserved when you switch tabs.
Discord-style preview
Both tabs show you how your result will look in Discord chat before you copy it.
Character counter with color codes
In the “Colored Text” tab, the counter measures the finished block including color codes and warns you when it exceeds 2,000 characters.
Free and browser-based
Use it without signing in. Your text stays in your browser and is neither uploaded nor saved.
Example result
What colored text looks like in Discord
This ansi code block is created from three lines of text in the Colored Text tab.
Welcome to the team
Rules: be friendly
ImportantHow it works
How the Discord Text Formatter works
Step 1
Enter message
In the “Format” tab, type or paste your message, or start with “Sample text.”
Step 2
Choose a style
Select text and click a style in the toolbar: heading, small text, bold, italic, underline, strikethrough, spoiler, quote, code, code block, link or list. Ctrl+B, Ctrl+I and Ctrl+K (Cmd on Mac) work too.
Step 3
Check the preview
The preview shows the message as it will appear in Discord. The counter below the text field shows how many of the 2,000 characters you have used.
Step 4
Assign color
In the “Colored Text” tab, select parts of the text and choose a text color, background, bold, or underline. If nothing is selected, the style applies to all the text.
Step 5
Paste into Discord
Copy the result with “Copy text” or “Copy colored text” and paste it into Discord chat. Colored text is sent as an ansi code block.
Discord Markdown
Format Discord text: essential commands
What you type and how it appears in chat. The tool above adds these characters for you.
| Element | Input | Result in Discord |
|---|---|---|
| Bold | **bold** | bold |
| Italic | *italic* or _italic_ | italic or italic |
| Underlined | __underlined__ | underlined |
| Strikethrough | ~~Strikethrough~~ | Strikethrough |
| Combined | __***underlined, bold, and italic***__ | underlined, bold, and italic |
| Spoiler | ||Hidden text|| | Spoiler, click to reveal |
| Code in a sentence | `Code` |
|
| Code block | ```js
console.log('hi');
``` | |
| Quote | > A quote |
|
| Headings | # Large ## Medium ### Small | Large Medium Small |
| Small text | -# Footer | Footer |
| List | - One - Two 1. First |
|
| Link with text | [Link text](https://example.com) |
Colored text in Discord
Colored text in Discord made simple
Discord only reads color codes in a code block marked ansi. The tool above builds it for you.
The eight text colors
- Gray
30 - Red
31 - Green
32 - Yellow
33 - Blue
34 - Pink
35 - Cyan
36 - White
37
The eight background colors
- Dark blue
40 - Orange
41 - Marble blue
42 - Gray-green
43 - Gray
44 - Indigo
45 - Light Gray
46 - White
47
- There are also bold (code 1), underline (code 4), and reset (code 0). Custom hex colors aren't available.
- Color codes count toward a message's 2,000-character limit.
- Multicolored text: The tool saves styling for each character separately. Select words or letters one at a time and give each a different color.
Troubleshooting
Colored text not showing in Discord?
Check these four things.
The ansi language tag is missing
Discord only colors code blocks that start with ```ansi. The block in the “Colored text” tab already includes this.
The block is not closed
There are three backticks at both the beginning and the end. Use “Copy colored text” to copy the entire block instead of selecting it manually.
Hex colors instead of color codes
Discord supports only eight text colors and eight background colors. Hex or RGB values will not color text in Discord.
The mobile app
Discord displays colors in the desktop app and browser. In the mobile app, the block may appear without colors depending on the version, but the text remains readable.
Explore more
More Discord and text tools
Markdown Editor
Write Markdown online with a live preview: GitHub READMEs and Discord messages, tables from Excel, and PDF or HTML export. Entirely in your browser.
Built by Dimitri Heissler
Discord Character Counter
Paste text and instantly see if it fits, with a live character count against every Discord limit (message, embed, username, nickname, slash commands, polls). Runs entirely in your browser.
Built by Justin Schuessler
Discord Timestamp Generator
Generate Discord timestamp tags (<t:...:STYLE>) from a date and time, with previews for UTC, your time zone and common time zones across all 9 styles, copy buttons and a parser for existing tags. Runs entirely in your browser.
Built by Justin Schuessler
Discord Role Color Picker
Choose Discord role colors and instantly copy their hex and decimal values. Includes a two-color gradient (Enhanced Role Styles), Discord's 20 default colors, and live previews as a chat message and member list entry.
Built by Justin Schuessler
Discord Embed Builder
Build Discord Embeds with a form, preview them as actual Embeds in real time, and export them as JSON, discord.py, or discord.js—all in your browser.
Built by Justin Schüssler
Font Generator (Fancy Text)
Fonts to copy: instantly convert text into 18 Unicode styles (bold, cursive, Fraktur, Bubble), with compatibility checks for Discord, Steam, Xbox, and PlayStation.
Built by Dimitri Heissler
Was this tool helpful?
Your feedback helps us prioritize and improve content.
FAQ
Frequently asked questions about the Discord Text Formatter
Quick answers about Discord formatting and colored text.
How do I format text in Discord?
Discord uses its own version of Markdown: write **bold**, *italic*, __underlined__, ~~strikethrough~~, and ||spoilers|| by placing special characters around the text. In the Discord Text Formatter, select a word and click a style in the toolbar. Ctrl+B, Ctrl+I, and Ctrl+K for links also work.
How do I write colored text in Discord?
Discord has no text color command, but there is a workaround: a code block marked ansi that reads ANSI color codes. In the Colored text tab, select parts of your text and choose a color; the tool builds the block. Click “Copy colored text” to copy it, then paste it into Discord.
What colors are available for Discord text?
Eight text colors with codes 30 to 37 (gray, red, green, yellow, blue, pink, cyan, white) and eight backgrounds with codes 40 to 47 (dark blue, orange, marble blue, gray-green, gray, indigo, light gray, white), plus bold (code 1) and underline (code 4). Discord doesn't support custom hex colors. You can still make multicolored text: the tool lets you give each selected word or individual letter its own color.
Does colored text work on mobile?
Discord displays the colors in the desktop app and browser. Depending on the version, the mobile app may show the block without colors, but the text remains readable. Use color as an extra, not as the only way to convey information.
How do I strikethrough text in Discord?
Put two tildes around the text: ~~strikethrough~~. For underlining, use two underscores: __like this__. You can combine both with bold and italics, such as __***like this***__.
How do I make text bigger or smaller in Discord?
Start a line with #, ##, or ### followed by a space to make it a heading, or with -# to make it small text. In the “Format” tab, the Heading and Small Text buttons add these characters for you. Clicking Heading repeatedly cycles through the three sizes.
How do I write a spoiler or code block in Discord?
To make a spoiler, put two vertical bars around the text, for example ||hidden text||. It stays hidden until someone clicks it. For a code block, put three backticks on their own lines before and after the text; adding a language such as js or python highlights the code. In the tool, select the text and click Spoiler or Code Block.
How many characters can a Discord message contain?
2,000 characters, or 4,000 with Nitro. Color codes count toward the limit, so the counter in the Colored Text tab shows the length of the finished block.
Is my text saved?
No. The Discord Text Formatter runs entirely in your browser. Your text is neither uploaded nor stored.
Still have questions?
Contact SupportDo you run a Discord server or bot?
A ZAP-Hosting Discord bot server runs around the clock, with templates or your own code and no infrastructure of your own.
No setup. No risk. Online in 60 seconds.
Looking for more tools? View all Discord tools
