Minecraft Color Codes & Formatting
Java & BedrockAll 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
Colour codes
Click any code, hex value or tag to copy it.
| Colour | § | & | Hex | Shadow | MiniMessage | JSON |
|---|---|---|---|---|---|---|
| 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 | § | & | MiniMessage | JSON | Looks like |
|---|---|---|---|---|---|
| Obfuscated | "obfuscated":true | ||||
| Bold | "bold":true | ||||
| Strikethrough | "strikethrough":true | ||||
| Underline | "underlined":true | ||||
| Italic | "italic":true | ||||
| Reset | (new component) |
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.
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
&6&lShapeCraft &7» &aWelcome, &b&nexplorer&7! &#FF55AASupports &bhex &k?&f &enew lines
§6§lShapeCraft §7» §aWelcome, §b§nexplorer§7! §x§F§F§5§5§A§ASupports §bhex §k?§f §enew lines
&6&lShapeCraft &7» &aWelcome, &b&nexplorer&7! &x&F&F&5&5&A&ASupports &bhex &k?&f &enew lines
<gold><bold>ShapeCraft </bold><gray>» <green>Welcome, <aqua><underlined>explorer</underlined><gray>! <#ff55aa>Supports <aqua>hex <obfuscated>?</obfuscated><white> <yellow>new lines
["",{"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"}]["",{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 @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"}]§6§lShapeCraft §7» §aWelcome, §bexplorer§7! §cSupports §bhex §k?§f §enew lines
motd=\u00A76\u00A7lShapeCraft \u00A77» \u00A7aWelcome, \u00A7b\u00A7nexplorer\u00A77!\n\u00A7cSupports \u00A7bhex \u00A7k?\u00A7f \u00A7enew lines
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.
Related tools
Minecraft Gradient Text Generator
Minecraft gradient text generator: smooth RGB text in &#hex, MiniMessage, §x, JSON, MOTD and Bedrock formats, with a pixel-accurate in-game preview.Text & StyleMinecraft Font & Logo Text Generator
Turn any text into Minecraft-style pixel lettering with gradients, outlines, 3D extrude and shadows — download a transparent PNG.Text & StyleMinecraft Sign Text Generator
Design coloured, glowing, two-sided Minecraft signs with a live pixel preview and get the /give or /setblock command for 1.20 to 1.21.5+.Text & StyleWritten Book Generator
Minecraft book generator: write multi-page books with colours, clickable links and hover text, preview every page and get the /give written_book command.Text & Style