
All Minecraft color codes and formatting codes: the 16 Java colors with hex and shadow values, the 12 extra Bedrock material colors, and bold, italic, underline, strikethrough, obfuscated and reset.
Open the color code editorHex gradient textMOTD generator
Bedrock Edition only. Because §m and §n are colors on Bedrock, strikethrough and underline codes do not exist there.
| Code | Effect | JSON name | Works in |
|---|---|---|---|
§k / &k | Obfuscated (random) | obfuscated | Both |
§l / &l | Bold | bold | Both |
§m / &m | Strikethrough | strikethrough | Java only |
§n / &n | Underline | underline | Java only |
§o / &o | Italic | italic | Both |
§r / &r | Reset | reset | Both |
§ (section sign) is the real code character. In Java Edition you cannot type it in chat, but it works in server.properties (as \u00A7), in resource packs and in plugin messages. Most server plugins (EssentialsX, chat plugins) accept & instead and convert it. Commands like /tellraw, /title and signs use JSON text with a "color" field, which also accepts any hex color such as "#FF8800". On Bedrock you can type § directly on signs, in books and in anvil names to color them. After a color code, Java resets bold, italic and the other formats, so put the color first and the formats after it.
The shadow color is the text color with each channel divided by four - that is the darker copy drawn one pixel down and right of every letter.
In Java Edition, any color code (0-9, a-f) resets active formatting like bold or italic. Always put the color code before the formatting code, such as §c§lHello instead of §l§cHello.
Java Edition blocks the § character from being typed or pasted into the chat bar. To use colors in Java, use JSON text components in commands like /tellraw, or use & codes if your server has a chat formatting plugin.
In Java Edition, §m is strikethrough and §n is underline. In Bedrock Edition, m and n are used among its 12 extra material colors instead, so Bedrock has no strikethrough or underline codes.
Use the server.properties-safe output which converts the section symbol into the Unicode escape \u00A7. This prevents encoding errors when the server reads your configuration file.