Rainbow Text Generator: Colourful Rainbow Text to Copy and Paste
Generate rainbow text for Discord, every letter coloured separately with ANSI escape codes inside a copy-ready code block.
About this tool
Rainbow text for Discord colours each letter with its own ANSI SGR sequence (31–36 cycling red, yellow, green, cyan, blue, magenta) inside an “`ansi code block. It renders on Discord desktop and web; mobile support is inconsistent.
Step-by-step guide
Type or paste your text
Use the tool above, results appear only once you type, so what you see is always your real text, never a sample.
Pick a result
The first few results show immediately; scroll inside the results box to browse the rest.
Tap Copy
Copy the exact result you want, nothing is added, no watermark, no extra symbols.
Paste & check
Paste it into your bio, name, caption or game, and check exotic styles on a second device before you commit.
Worked example
| You type | Style / tool | You get |
|---|---|---|
| Celebration time | Rainbow Text Generator | The same message with every letter carrying its own ANSI colour code (31–36, cycling) |
How it works
The Unicode & entities behind it
Text itself carries no colour, so rainbow text is produced three ways. For Discord, each letter gets its own ANSI colour code (foreground 30 to 37; Discord renders six usable colours and has no orange) inside an “`ansi block. For web pages, CSS uses linear-gradient with background-clip: text. For Instagram, Facebook and anywhere else, colour only survives as an image, which is why this site pairs the rainbow generator with a PNG exporter. The colour order follows the classic rainbow sequence from red to violet.
Where it works best
Discord announcements, server rules and welcome messages (ANSI), plus stories, banners and profile art (PNG) on any platform where an image can stand in for text.
Honest limits
ANSI colour renders on Discord desktop and web; mobile apps are inconsistent. Coloured code-block text is not searchable, and screen readers read it literally, never make it the only copy of important information.
When to use this rainbow text generator
Concepts & terms behind this tool
The vocabulary this page is built on, the entities and NLP terms searchers, platforms and the Unicode Standard use for this job:
Tips for better results
Never skip the code fence
ANSI colour only renders inside an ansi code block on Discord. Pasted as a normal message, your audience sees raw escape codes instead of colour.
Test on desktop first
Discord mobile renders ANSI inconsistently. Confirm the colours on desktop or web before announcing to a mostly mobile server.
Keep a plain copy of important text
Coloured code-block text is not searchable, and screen readers read it literally. Post rules and warnings in plain text as well.
Use the PNG route off Discord
Instagram, WhatsApp and games render no colour codes at all. A gradient PNG carries the colour anywhere an image can go.
Common mistakes to avoid
!Forgetting the code fence
ANSI codes only render inside an “`ansi code block. Pasted as a normal message, your audience sees raw escape codes instead of colour.
!Expecting colour on mobile
Test on desktop before you announce. If most of your server is on mobile, use the PNG route or plain markdown emphasis instead.
!Colouring everything
Colour signals importance. When every line is coloured, no line stands out, reserve colour for headings, warnings and celebrations.
Related tools
More from Colour Text, each on its own dedicated page.
Discord Coloured Text Generator
Create coloured Discord text with ANSI codes, pick a colour, add bold or underline, copy the code block and paste it into Discord.
Open tool →Colour TextGradient Text Generator
Turn a styled name into a gradient PNG image, pick two colours and a fancy alphabet, then download a transparent image for stories, banners and profile art.
Open tool →Font StylesBold Text Generator
Generate 𝐛𝐨𝐥𝐝 Unicode text in serif, sans-serif and bold-italic alphabets, copy and paste bold letters into bios, captions and names.
Open tool →Font StylesItalic Text Generator
Generate 𝑖𝑡𝑎𝑙𝑖𝑐 and 𝒊𝒕𝒂𝒍𝒊𝒄 Unicode text, slanted serif and sans-serif alphabets for quotes, bios and captions.
Open tool →Related guides
From the blog, the research behind this tool in longer form.
Frequently asked questions
What is rainbow text?
Text coloured letter by letter through the rainbow sequence. As plain text it has no colour at all; the colour comes from ANSI codes, CSS, or an image.
Can I copy-paste rainbow text into Instagram or Facebook?
Not as text. Pasting strips the colour and leaves black letters. Download the PNG version instead and post it as an image or sticker.
How do I make rainbow text on Discord?
Use the generator above: it writes one ANSI colour code per letter inside an “`ansi code block. Paste the whole block into Discord on desktop or web.
Why does my rainbow text turn black when I paste it?
Because the destination renders plain text only. The colour instructions were written for a different system (ANSI or CSS) and are discarded on paste.
Can I download rainbow text as an image?
Yes, the gradient text generator on this site exports a transparent PNG of your styled name, which keeps its colours on every platform.
What colours are in a rainbow?
Newton’s seven: red, orange, yellow, green, blue, indigo and violet. Discord’s ANSI palette has no orange, so Discord rainbows cycle six colours.
Is this tool free?
Yes, every tool on fancytextgeneratortools is free, with no sign-up, no watermark and no copy limits.
Researched and reviewed by the Fancy Text Generator Team, against live US search results for the query behind this page, the Unicode Standard code charts and each platform’s published rules. Last reviewed: 12 November 2026. Spotted an error? Email info@fanytextgeneratortools.com.
Want every style at once?
The main Fancy Text Generator holds all 329 styles in one searchable box, with favourites, copy-all and live character-limit meters.