Minecraft color codes and formatting codes
All color and format codes in one place. Copy them as § or & codes, MiniMessage, JSON or hex, or paste your text to convert it.
Live editor
Preview
Copy the code
Java color codes
The 16 colours work everywhere in Java Edition. The shadow is the colour the game draws behind the text.
| Colour | Code | & | MiniMessage | JSON | Hex | Shadow |
|---|---|---|---|---|---|---|
| Black | #000000 |
|||||
| Dark Blue | #00002A |
|||||
| Dark Green | #002A00 |
|||||
| Dark Aqua | #002A2A |
|||||
| Dark Red | #2A0000 |
|||||
| Dark Purple | #2A002A |
|||||
| Gold | #3F2A00 |
|||||
| Gray | #2A2A2A |
|||||
| Dark Gray | #151515 |
|||||
| Blue | #15153F |
|||||
| Green | #153F15 |
|||||
| Aqua | #153F3F |
|||||
| Red | #3F1515 |
|||||
| Light Purple | #3F153F |
|||||
| Yellow | #3F3F15 |
|||||
| White | #3F3F3F |
Format codes
In Java, put the colour code first: a colour code turns bold, italic and the other formats off again.
| Format | Code | & | MiniMessage | JSON | Java | Bedrock |
|---|---|---|---|---|---|---|
| Obfuscated | Yes | Yes | ||||
| Bold | Yes | Yes | ||||
| Strikethrough | Yes | No, §m is a colour there | ||||
| Underline | Yes | No, §n is a colour there | ||||
| Italic | Yes | Yes | ||||
| Reset | Not needed | Yes | Yes |
Bedrock-only colour codes
Bedrock Edition has extra colours. Java does not know these codes, and on Bedrock §m and §n are colours, not strikethrough and underline.
| Colour | Code | Hex | Since |
|---|---|---|---|
| Minecoin Gold | Unknown | ||
| Material Quartz | 1.19.80 | ||
| Material Iron | 1.19.80 | ||
| Material Netherite | 1.19.80 | ||
| Material Redstone | 1.19.80 | ||
| Material Copper | 1.19.80 | ||
| Material Gold | 1.19.80 | ||
| Material Emerald | 1.19.80 | ||
| Material Diamond | 1.19.80 | ||
| Material Lapis | 1.19.80 | ||
| Material Amethyst | 1.19.80 | ||
| Material Resin | 1.21.50 | ||
| Party Blue | 26.30 |
Bedrock draws some base colours a little differently: gray, dark gray, blue and the light colours. The preview above shows the Bedrock shades when you pick Bedrock.
Where the codes work
Only § codes, written as \u00A7. No & codes and no hex. Use the server.properties output above.
Java players cannot type § in chat: the game kicks them. Chat plugins turn & codes or MiniMessage into colours. On Bedrock, § works in chat.
In Java you cannot type codes there. Use a command with a JSON text component, made with our tellraw generator. On Bedrock, § works on signs, in books and in the anvil.
Most read & codes. Paper, Velocity and many new plugins read MiniMessage, with hex colours and gradients.
/tellraw, /title and item names take a JSON text component. Since Java 1.21.5 that is written as SNBT.
The pack description in pack.mcmeta and language files read § codes.
More tools
Check if a server is online and find out why players can’t connect.
SRV record checkerSee where your domain points and which port players reach.
Bedrock and Geyser checkerCheck if Bedrock players can join, with or without Geyser.
MOTD generatorDesign your MOTD with colours and see it as players do.
Votifier testerSend a test vote to your server with Votifier v1 or v2 and see exactly what goes wrong.
server.properties editorCreate or edit your server.properties with an explanation for every setting.
Server icon generatorTurn any logo into a sharp 64×64 server-icon.png.
Server banner makerMake a banner for your server listing in the right size.
Server RAM calculatorFind out how much RAM your server needs for your players, plugins or modpack.
Share server logsShare a server log or crash report safely, with private data removed.
Whitelist generatorBuild or edit whitelist.json with the right UUIDs.
Nether portal calculatorConvert coordinates between the Overworld and the Nether and link portals.
Circle generatorBlock-perfect circles, ellipses and spheres to build by.
Tellraw generatorBuild tellraw, title and sign text with colours, hover and click events.
Give command generatorBuild /give commands for any version, with enchantments, names and lore.
Skin viewerView any Minecraft skin in 3D and download it.