Skip to content
ShapeCraft

Minecraft Color Codes & Formatting

Java & Bedrock

All 16 Minecraft colour codes and 6 formatting codes in one table — with the § and & code, hex value, text-shadow colour, MiniMessage tag and JSON name, each one click to copy. Type below with & codes and watch a pixel-accurate preview, then copy the same text as § codes, Spigot hex, MiniMessage, a JSON or SNBT text component, Bedrock-safe codes or an escaped MOTD.

Live editor

55 visible · 100/600 typed · 7 coloursTip: & or §, &#RRGGBB hex, MiniMessage or JSON all work here.
Presets

Colour codes

Click any code, hex value or tag to copy it.

Colour§&HexShadowMiniMessageJSON
Black
Dark Blue
Dark Green
Dark Aqua
Dark Red
Dark Purple
Gold
Gray
Dark Gray
Blue
Green
Aqua
Red
Light Purple
Yellow
White

Formatting codes

Format§&MiniMessageJSONLooks like
Obfuscated"obfuscated":true
Bold"bold":true
Strikethrough"strikethrough":true
Underline"underlined":true
Italic"italic":true
Reset(new component)
A colour code resets formatting — write the colour first, then the format: &c&l = red bold.

Bedrock-only material colours

Bedrock Edition (1.19.80+) adds these colours. On Java the same letters mean formatting (§m strikethrough, §n underline) or nothing.

Minecoin Gold
Material Quartz
Material Iron
Material Netherite
Material Redstone
Material Copper
Material Gold
Material Emerald
Material Diamond
Material Lapis
Material Amethyst
Material Resin

Where codes work

  • Chat (vanilla Java)§ can't be typed in chat; use /tellraw with JSON, or a server plugin that reads & codes.
  • Chat (Bedrock)Paste § codes directly — they work in chat, item names on anvils and signs.
  • Server pluginsEssentials, CMI, LuckPerms, DeluxeMenus… read & codes and usually &#RRGGBB hex; Paper plugins often use MiniMessage.
  • SignsJava: paste § into the sign editor (1.20+ keeps it) or use the Sign generator for coloured lines. Bedrock: type § codes.
  • BooksWritten books render § codes; give pre-written books with the Book generator.
  • Item namesAnvil renaming ignores codes on Java; use /give with custom_name. Bedrock anvils accept §.
  • server.properties MOTDWrite § as \u00A7 and a new line as \n (copy the MOTD output).
  • Resource packs / lang§ works inside .lang/.json translation strings and pack.mcmeta descriptions.

Preview

Converted text

& codes (Essentials, CMI, &#RRGGBB hex)
&6&lShapeCraft &7» &aWelcome, &b&nexplorer&7!
&#FF55AASupports &bhex &k?&f &enew lines
§ codes (Spigot hex §x)
§6§lShapeCraft §7» §aWelcome, §b§nexplorer§7!
§x§F§F§5§5§A§ASupports §bhex §k?§f §enew lines
&x hex (Spigot/Bungee configs)
&6&lShapeCraft &7» &aWelcome, &b&nexplorer&7!
&x&F&F&5&5&A&ASupports &bhex &k?&f &enew lines
MiniMessage (Paper / Adventure)
<gold><bold>ShapeCraft </bold><gray>» <green>Welcome, <aqua><underlined>explorer</underlined><gray>!
<#ff55aa>Supports <aqua>hex <obfuscated>?</obfuscated><white> <yellow>new lines
JSON text component
["",{"text":"ShapeCraft ","color":"gold","bold":true},{"text":"» ","color":"gray"},{"text":"Welcome, ","color":"green"},{"text":"explorer","color":"aqua","underlined":true},{"text":"!\n","color":"gray"},{"text":"Supports ","color":"#FF55AA"},{"text":"hex ","color":"aqua"},{"text":"?","color":"aqua","obfuscated":true},{"text":" "},{"text":"new lines","color":"yellow"}]
SNBT text component (1.21.5+)
["",{text:"ShapeCraft ",color:"gold",bold:true},{text:"» ",color:"gray"},{text:"Welcome, ",color:"green"},{text:"explorer",color:"aqua",underlined:true},{text:"!\n",color:"gray"},{text:"Supports ",color:"#FF55AA"},{text:"hex ",color:"aqua"},{text:"?",color:"aqua",obfuscated:true},{text:" "},{text:"new lines",color:"yellow"}]
/tellraw command
tellraw @a ["",{"text":"ShapeCraft ","color":"gold","bold":true},{"text":"» ","color":"gray"},{"text":"Welcome, ","color":"green"},{"text":"explorer","color":"aqua","underlined":true},{"text":"!\n","color":"gray"},{"text":"Supports ","color":"#FF55AA"},{"text":"hex ","color":"aqua"},{"text":"?","color":"aqua","obfuscated":true},{"text":" "},{"text":"new lines","color":"yellow"}]
Bedrock (nearest §, no hex/underline)
§6§lShapeCraft §7» §aWelcome, §bexplorer§7!
§cSupports §bhex §k?§f §enew lines
server.properties MOTD
motd=\u00A76\u00A7lShapeCraft \u00A77» \u00A7aWelcome, \u00A7b\u00A7nexplorer\u00A77!\n\u00A7cSupports \u00A7bhex \u00A7k?\u00A7f \u00A7enew lines
Hex colours need Java 1.16+ and a plugin or JSON. Bedrock and the MOTD output use the nearest of the 16 colours.

Section sign

§

Windows: Alt + 0167 · Mac: Option + 6 · Escaped: \u00A7

How it works

Minecraft formats text with a code character followed by one letter or digit: 0–9 and a–f pick one of 16 colours, k l m n o turn on obfuscated, bold, strikethrough, underline and italic, and r resets everything. The game itself uses the section sign §; servers and plugins (Essentials, CMI, LuckPerms…) let you type & instead because § is hard to type, and translate it when the message is sent.

A colour code also clears formatting, so the order matters: write the colour first and then the formats (&6&l = gold bold). Writing &l&6 gives plain gold. Use &r to switch formatting off again.

Since Java 1.16 text can use any hex colour. Chat plugins accept &#RRGGBB, Spigot/Bungee use &x&R&R&G&G&B&B, MiniMessage (Paper/Adventure) uses <#rrggbb>, and JSON text components use "color":"#RRGGBB". Bedrock Edition has no hex colours — instead it adds extra material colours (§g Minecoin gold to §v resin) on letters that mean formatting in Java.

The live editor parses your text exactly the way the game does and renders it with a Minecraft-style pixel font, including the colour ÷ 4 text shadow and animated obfuscated text. Every output is regenerated as you type, and the link in your address bar holds the text so you can share it.

Under the hood

Legacy code
§<0-9a-f> colour · §<k|l|m|n|o> format · §r reset
Shadow colour
shadow = (R÷4, G÷4, B÷4) e.g. §6 #FFAA00 → #3F2A00
Hex (plugins)
&#FF8800 · &x&F&F&8&8&0&0 (Spigot) · <#ff8800> (MiniMessage)
JSON text
{"text":"Hi","color":"gold","bold":true} · 1.21.5+ SNBT: {text:"Hi",color:"gold",bold:true}
server.properties
motd=\u00A76Gold \u00A7lBold (§ written as \u00A7)

FAQ

How do I type the § symbol?

Click the copy button next to § on this page and paste it. On Windows you can hold Alt and type 0167 on the number pad; on a Mac press Option+6. You can't type § in vanilla Java chat (it's filtered), but you can paste it into signs, books (in some versions), server.properties and command blocks; Bedrock accepts § in chat, signs and item names.

What is the difference between & and § colour codes?

§ is the character the game actually uses. & is a convention of server plugins (EssentialsX, CMI, LuckPerms, DeluxeMenus…) — you type &c and the plugin turns it into §c before sending it. In vanilla single-player, & does nothing; in config files of most plugins & is what you should write.

Why does my bold text lose its bold after a colour code?

Every colour code resets formatting. Put the colour first and the formats after it: &c&l (red bold) works, &l&c gives plain red. If you change colour in the middle of a bold word you need to repeat &l after the new colour.

Can I use hex colours in Minecraft?

Yes on Java Edition 1.16 and newer: in /tellraw and JSON text components with "color":"#RRGGBB", in MiniMessage with <#rrggbb>, and in chat plugins that support &#RRGGBB or the &x&R&R&G&G&B&B format. Bedrock has no hex colours — use the nearest of the 16 codes (this page's Bedrock output does that automatically).

How do I put colours in my server MOTD?

In server.properties write the § sign as the escape \u00A7, e.g. motd=\u00A76\u00A7lMy Server\n\u00A77Welcome. Use \n for the second line. The MOTD output above produces exactly that. Plugins like ServerListPlus or MiniMOTD also accept & codes, MiniMessage and hex.

All tools →