How to Color Text in Discord Using ANSI Codes
Discord supports terminal ANSI color codes within triple-backtick codeblocks. By declaring the codeblock syntax as ```ansi, you can wrap words in ANSI color escape sequences like [32m for green or [31m for red.
Our Discord Font Styler automatically writes the escape sequences and the closing reset tag ([0m) for you. Simply paste the generated block into Discord on desktop or mobile and send the message!
Discord Markdown Formatting Reference Sheet
| Style | Markdown Syntax | Example Output |
|---|---|---|
| Bold | **text** |
text |
| Italic | *text* or _text_ |
text |
| Underline | __text__ |
text |
| Strikethrough | ~~text~~ |
|
| Spoiler | ||text|| |
[Click to reveal] |
| Inline Code | `code` |
code |
| Header 1 | # text |
Big Title |