Writer
All toolsDiscord ANSI Colors
Format Discord code blocks with ANSI colors for chat messages.
Text
Preview
Hello, Discord!
Discord code block
```ansi [32mHello, Discord![0m ```
Frequently asked questions
- How does Discord display colored text?
- Discord parses ANSI escape sequences inside fenced code blocks tagged with the "ansi" language. Each escape sequence sets a foreground or background color until reset.
- Why isn't my colored text showing up?
- The code block needs to start with three backticks followed by "ansi" on its own line, and the escape sequences must use the ESC character (U+001B). The tool inserts both pieces correctly.
- Does ANSI coloring work in Discord mobile and desktop?
- ANSI rendering is supported in Discord's desktop and web clients, and most mobile versions now follow. Older clients fall back to plain text inside the code block.