Minecraft Color Text Generator & Colour Codes

Type your text, colour each part and add bold, italic or other formatting. The live preview shows how it looks in game, and you can copy it as § or & codes, hex colours, MiniMessage, JSON for commands or Bedrock format.

Free · § and & codes, hex, MiniMessage, JSON and Bedrock

Your text

Each part can have its own colour and style. Add parts to change colour in the middle of a line.

Paste text that already has & or § codes
Preview
§ codes (game, signs on Bedrock)
& codes (plugins)
MiniMessage (Paper, Velocity)
Bedrock rawtext
Text component, Java 26.3 / 1.21.5+
JSON text, Java 1.13 – 1.21.4

Minecraft colour codes

Minecraft has 16 named text colours. Each one has a single-character code that you write after the section sign (§) or, in most plugins, after an ampersand (&). In text components you use the colour name instead.

ColourCode& codeName in commandsHex
Black§0&0black#000000
Dark Blue§1&1dark_blue#0000AA
Dark Green§2&2dark_green#00AA00
Dark Aqua§3&3dark_aqua#00AAAA
Dark Red§4&4dark_red#AA0000
Dark Purple§5&5dark_purple#AA00AA
Gold§6&6gold#FFAA00
Gray§7&7gray#AAAAAA
Dark Gray§8&8dark_gray#555555
Blue§9&9blue#5555FF
Green§a&agreen#55FF55
Aqua§b&baqua#55FFFF
Red§c&cred#FF5555
Light Purple§d&dlight_purple#FF55FF
Yellow§e&eyellow#FFFF55
White§f&fwhite#FFFFFF

Formatting codes

StyleCode& codeIn text components
Bold§l&lbold:true
Italic§o&oitalic:true
Underline§n&nunderlined:true
Strikethrough§m&mstrikethrough:true
Obfuscated (scrambling letters)§k&kobfuscated:true
Reset to normal§r&rstart a new part

Order matters with codes: a colour code turns off bold, italic and the rest, so write the colour first and the style after it. §6§l gives bold gold text, but §l§6 gives plain gold.

Which format should I copy?

  • § codes: for signs and books on Bedrock, world and item names in some editors, and server.properties (where you write § as §; the MOTD generator does this for you).
  • & codes: for chat, scoreboard, hologram and rank plugins such as EssentialsX and LuckPerms prefixes.
  • MiniMessage: for Paper and Velocity and plugins built on Adventure. It supports any hex colour, like <#ff8800>.
  • Text component (1.21.5+): for commands in Java 26.3 such as /tellraw, /title and item names. Since 1.21.5 these are written in SNBT, without quotes around keys.
  • JSON text (1.13 – 1.21.4): the same thing for older Java versions and many data pack tools.
  • Bedrock rawtext: for /tellraw and /titleraw on Bedrock Edition.

Building a whole chat message with clickable links? Use the tellraw generator.

Frequently asked questions

What are the Minecraft colour codes?
There are 16 colour codes, 0 to 9 and a to f, such as §c for red and §6 for gold, plus formatting codes: §l bold, §o italic, §n underline, §m strikethrough, §k obfuscated and §r reset. The full list with colours is on this page.
Should I use § or &?
The game itself uses the section sign §. Many server plugins (chat, scoreboards, holograms) use & instead because it is easy to type. Pick the format your plugin expects.
Can I use hex colours in Minecraft?
Java Edition supports any hex colour in text components (commands, books, signs, data packs) since 1.16. Classic § codes are limited to the 16 colours, and Bedrock only supports the code colours.
How do I type the § symbol?
On Windows hold Alt and type 21 on the number pad. On a Mac press Option + 6. Or copy it from the generator's output.