Skip to content

Tool

Discord text formatter and colored text generator

Type a message and see its formatting as you go: bold, italics, spoilers, code blocks, headers, lists and coloured text. The buttons add the syntax around what you select, and Copy takes the message exactly as typed.

This box takes up to 4000 characters. Your message is formatted in your browser and is not sent to our server.

Preview

The live preview needs JavaScript. The syntax and colour tables below are complete without it.

Discord Markdown syntax

Each format below is from Discord's help article on Markdown, with what to type and an example. In the syntax, text stands for your own words.

Format Type Example
Bold Three asterisks make bold italics: ***bold italics***. **text** **bold**
Italics Underscores work too: _italics_. *text* *italics*
Underline It combines with the others: __*underline italics*__, __**underline bold**__. __text__ __underline__
Strikethrough ~~text~~ ~~Strikethrough~~
Spoiler A code block negates it. ||text|| ||spoiler||
Inline code `text` `code`
Code block Three backticks hold several lines. ``` text ``` ``` first line second line ```
Block quote Put a space after the >. To quote several lines at once, start the first one with >>> instead. > text > quote
Header One, two or three # at the start of a line, then a space. # text # Big header ## Smaller header ### Even smaller header
Subtext The -# goes at the very beginning of the line, with a space after it. -# text -# subtext
List A * works as the bullet too. Two spaces before the bullet indent the item. - text - first item - second item - indented item
Masked link The text to show in brackets, then the URL in parentheses. [text](URL) [Markdown Text 101](https://support.discord.com/hc/en-us/articles/210298617)

Transcribed from Discord's help article Markdown Text 101, retrieved 2026-11-16.

Colored text with ANSI codes

Discord does not document ANSI colours: on 2026-11-17 neither its help centre nor its developer docs mentioned them. The codes below follow a community document, A guide to ANSI on Discord, as retrieved on 2026-11-16.

To use the colour codes, start a code block with ```ansi. Before the words to style goes an escape sequence: \u001b[{format};{color}m, where \u001b stands for the escape character. A format code and a colour code go between the [ and the m. Writing \u001b[0m sets the text back to normal.

The escape character is not on a keyboard, and the guide suggests copying it from elsewhere. The colour builder above puts it in for you, and Copy keeps it.

Bold green text, written with the guide's codes:

```ansi
\u001b[1;32mBold green text\u001b[0m
```
Text colours
Code Name Sample
30 Gray
31 Red
32 Green
33 Yellow
34 Blue
35 Pink
36 Cyan
37 White
Backgrounds
Code Name Sample
40 Black
41 Red
42 Green
43 Yellow
44 Blue
45 Pink
46 Cyan
47 White
Formats
Code Name Sample
0 Normal
1 Bold
4 Underline

The guide's list names code 30 Gray, and its screenshot labels it Black.