Free Discord Text Formatter & Colored Text Generator

Free Discord text formatter: build bold, underline, spoiler, header, code block and ANSI coloured text messages with a toolbar and a live Discord-style preview.

  • No upload, 100% private
  • Instant, in your browser
  • 100% free, no signup
Loading tool…
Read the complete guideDiscord Markdown Guide - Headers, Spoilers, Code Blocks and Colored Text →

About the Discord Text Formatter tool

Discord messages support a flavour of Markdown that goes well beyond bold and italic: underline, strikethrough, spoiler tags, three sizes of headers, small subtext, block quotes, lists, masked links and code blocks with syntax highlighting. There is even a hidden feature for coloured text, using ANSI escape codes inside an ansi code block. Remembering all the syntax is the hard part.

This Discord text formatter gives you a toolbar for all of it. Select text and click Bold, Italic, Underline, Strikethrough, Spoiler, Inline code or Masked link, or apply headers, subtext, quotes and lists to whole lines. Pick a language and click Code block to wrap code for highlighting. A Discord-style preview on the dark theme updates as you type, including clickable spoilers.

The coloured text builder writes the ANSI codes for you. Type a piece of text, choose one of Discord's eight text colours and eight backgrounds, add bold or underline, and build a line piece by piece before inserting it into your message. Coloured ANSI blocks show on Discord desktop and in the browser; the mobile apps display the text without colours.

How to use Discord Text Formatter

  1. Type your message in the Message box, or click “Sample”.
  2. Select text and use the toolbar: Bold, Italic, Underline, Strikethrough, Spoiler, Inline code or Masked link.
  3. Apply Big, Medium or Small header, Subtext, Quote or List to the selected lines, or choose a language and click “Code block”.
  4. For coloured text, type a piece in the ANSI builder, pick colours and styles, click “Add”, then “Insert into message”.
  5. Check the Discord preview and click “Copy message”, then paste into Discord.

Features

Full Discord markdown toolbar

Bold, italic, underline, strikethrough, spoilers, inline code, masked links, headers, subtext, quotes and lists.

Code blocks by language

Choose from common highlight languages such as js, py, json, css, diff and ansi before wrapping your code.

ANSI coloured text builder

Pick from Discord's 8 text colours and 8 backgrounds plus bold and underline, and insert a ready ```ansi block.

Discord-style live preview

Dark-theme preview with headers, quotes, lists, code blocks, ANSI colours and click-to-reveal spoilers.

Length check

A counter warns when your message passes Discord's 2,000-character limit (4,000 with Nitro).

When to use it

  • Write a server rules post with headers, lists and bold key points.
  • Hide plot twists in a movie channel with spoiler tags.
  • Share a code snippet with syntax highlighting in a programming server.
  • Make a colourful status board or game stats message with ANSI colours.
  • Add subtle -# subtext credits or timestamps under an announcement.

Frequently asked questions

How do I make coloured text in Discord?

Put your text in a code block that starts with ```ansi and use ANSI escape codes to set colours. The builder on this page writes the codes for you; copy the block into Discord. Colours show on desktop and web but not on the mobile apps.

What is the Discord spoiler tag?

Wrap text in two vertical bars on each side, like ||secret||. Readers see a dark bar and click it to reveal the text.

How do I make headers in Discord?

Start a line with # and a space for a big header, ## for a medium one or ### for a small one. Start a line with -# and a space for small grey subtext.

How do I underline text in Discord?

Use two underscores on each side: __text__. You can combine it with bold and italic, such as __**text**__.

Why does my code block have no colours in the preview?

The preview shows code in monospace only. Discord applies syntax highlighting itself, using the language name after the opening ```. ANSI blocks are the exception and are coloured in the preview.

What is Discord's message length limit?

Normal messages can be up to 2,000 characters, and Nitro subscribers can send up to 4,000. The counter under the message box shows your current length.

Related tools