1. Home
  2. Productivity tools
  3. Discord Text Formatter

Discord Text Formatter

For Discord users who want spoilers and coloured messages without learning escape codes.

Free, no sign-up. Runs in your browser: nothing is uploaded.

Free workspace included. Docs, spreadsheets, notes and tasks that save on your device. No sign-up.Take a look

How to use Discord Text Formatter

  1. Fill in the form, or press a sample to see a worked example.
  2. Read the result and any warnings.
  3. Copy the output or download it.

Features

  • Spoiler tags around each line
  • ANSI colour blocks with text and background colours
  • Bold and underline
  • Rainbow: a new colour for each word
  • Warns about the 2,000-character message limit

Supported formats

Input

  • Typed or pasted text

You get

  • Copyable text

Private by design

Everything you enter is processed by your browser on this device. Nothing is sent to openWorkstand or anyone else, so the Discord Text Formatter is safe for private and work data. After you have used it once while online, it also works without an internet connection. How local processing works

Good to know

  • Coloured text works in the desktop and web apps; some phones show plain text.
  • The code contains invisible ESC characters, so copy it with the button.

Guide

Making Discord spoilers and coloured ANSI text

Discord’s formatting goes beyond bold and italic. Two features stand out: spoilers, which hide text until someone clicks it, and coloured text, which uses a trick with code blocks and ANSI escape codes. Neither is obvious, and the second needs invisible control characters. This formatter writes both for you from plain text.

Spoiler text

In spoiler mode, each line you type is wrapped in two vertical bars on each side, ||like this||. Discord shows the text as a dark bar, and a reader clicks it to see the words. Empty lines are left empty, so a multi-line message keeps its shape. Use it for plot details, answers to puzzles, results of matches and anything that people should choose to see.

Coloured text

In coloured mode the tool writes a code block marked ansi and puts escape sequences before each piece of text. You choose the text colour, a background, and whether the text is bold or underlined. The code block syntax is what Discord’s desktop and web apps read to colour the text. The text colours are gray, red, green, yellow, blue, pink, cyan and white, and the background menu offers none, dark blue, orange, blue grey, grey, light grey, indigo and white.

Rainbow

The rainbow switch gives each word its own colour in turn, cycling through the palette. It is a quick way to make a banner or a joke message stand out. Words are coloured separately, and the bold and underline choices apply to all of them. For serious announcements, one colour and bold are usually enough.

The copy button

The escape sequences begin with an invisible ESC character that cannot be typed on a keyboard. If you retype or edit the text in a plain text editor, those characters can be lost, and the colours disappear. Use the Copy button in the tool, paste straight into Discord and edit only the words between the sequences. A note under the result explains this.

Code block mode

The third mode wraps your text in an ordinary code block with no colour. It keeps spaces and line breaks exactly, which is handy for tables, ASCII art and command lines. The 2,000-character limit of a Discord message applies to everything, including the sequences and the three backticks, so long coloured text uses more room than it appears.

A worked example

The sample text is “Race day is Sunday!” on one line and “Bring snacks.” on the next. In spoiler mode the output is ||Race day is Sunday!|| and ||Bring snacks.|| on two lines, and the result row says 41 characters. In coloured mode with red bold text, the output starts with a line of three backticks and ansi, then each word wrapped in the red bold sequence, 111 characters in all. With the rainbow switch on, “Race” is red, “day” green, “is” yellow, “Sunday!” blue, and the next line continues through pink and cyan.

Limits

The result depends on Discord’s rendering, which differs between apps and may change. Colour does not appear in notifications, search results or some third-party clients. The tool does not post messages, check the length against server rules or support custom colours outside the standard palette. Test in a private channel before using coloured text in an important announcement.

Checked against the current version of the Discord Text Formatter on .

Frequently asked questions

Why does my coloured text show as plain text on my phone?

ANSI colours in code blocks are rendered by the Discord desktop and web apps. Some mobile versions show the block without colour. If many of your members read on phones, do not depend on colour to carry meaning, and add words as well.

Does the spoiler hide images too?

This tool hides text only, using the double-bar syntax. To hide an image you mark it as a spoiler when you upload it. The text spoilers hide each line until a reader clicks it, and moderators can still see the content.

Where does coloured text work?

In Discord’s desktop and web apps. On some phones it shows as plain text, so check before you rely on it.

Why must I use the copy button?

The code contains invisible ESC characters. Retyping it by hand drops them and the colours disappear.

Keep working with the result

openWorkstand also includes a free workspace with documents, spreadsheets, tasks, projects and a calendar that save to a folder on your computer.