Minecraft Color Code Generator
Minecraft color codes are the section-sign sequences that change text color and formatting in the Java and Bedrock editions. This generator lets you insert each code, preview the result, and copy the same text in section-sign, ampersand, or server.properties form.
What Minecraft color codes are
A color code is a section sign followed by one character. The section sign looks like this: `§`. `§6` switches text to gold, `§l` makes it bold, and `§r` clears both color and formatting.
The codes are old, small, and shared by both editions, but the two editions do not treat every code the same. Bedrock adds a few codes that Java does not have, and Java supports some formatting that Bedrock uses for other purposes. That is why the generator has an edition switch.
Java versus Bedrock at a glance
Java and Bedrock share the sixteen colors from `§0` through `§f` and the common formatting codes `§k`, `§l`, `§o`, and `§r`. Java also uses `§m` for strikethrough and `§n` for underline.
On Bedrock, `§m` and `§n` are material colors, not text decorations. At the time of writing, the Minecraft Wiki lists `§m` as Material Redstone and `§n` as Material Copper. Bedrock also has `§g`, Minecoin Gold, with the hex value `#EFCE16` according to the current wiki. Java clients do not understand `§g`.
Some servers and resource packs alter these palettes, and the wiki can change as the game updates. Treat the hex values in the table as standard vanilla values, then check the result on your edition and version.
How to use the generator
Type your message in the editor. Put the cursor where the color or format should begin, then click a code button. The code is inserted at the cursor, not necessarily at the end of the text. You can also type codes by hand, paste existing text, or paste a string that already uses ampersands.
The preview below the editor uses a dark background so light colors stay readable. Bold, italic, underline, and strikethrough are drawn with browser styles. Obfuscated text cycles through random characters to imitate the in-game effect, though the exact animation depends on the game and is not something a browser can reproduce perfectly.
Each output field updates live. The section-sign output is the canonical form. The ampersand output replaces every `§` with `&`, which is the form many server plugins accept. The MOTD output escapes the section sign as `\u00A7` and turns line breaks into `\n`, which is the format that fits a Java `server.properties` file.
The sixteen vanilla colors
These are the standard Java values.
§0 Black #000000 §1 Dark Blue #0000AA §2 Dark Green #00AA00 §3 Dark Aqua #00AAAA §4 Dark Red #AA0000 §5 Dark Purple #AA00AA §6 Gold #FFAA00 §7 Gray #AAAAAA §8 Dark Gray #555555 §9 Blue #5555FF §a Green #55FF55 §b Aqua #55FFFF §c Red #FF5555 §d Light Purple #FF55FF §e Yellow #FFFF55 §f White #FFFFFF §g Minecoin Gold #EFCE16 (Bedrock only)
Formatting codes
Formatting codes stack until you clear them. A color code in Java also clears active formatting, so `§lBold §6Gold` produces bold white text followed by non-bold gold text. Put the color first and the formatting second if you want both.
§k Obfuscated cycles visible characters §l Bold heavier text §m Strikethrough line through text (Java) §n Underline line under text (Java) §o Italic slanted text §r Reset clears color and formatting
Worked example: a server MOTD
Suppose you want a two-line server list message. The first line should be gold and bold, and the second line should be white with a green server name. Type this into the editor:
§6§lWelcome to §a§lSkyblock §fSeason 4 is live
The same text in each output
The section-sign form is the canonical one. The ampersand form is for plugins such as EssentialsX, which convert `&` codes before showing chat text.
Section form: §6§lWelcome to §a§lSkyblock §fSeason 4 is live Ampersand form: &6&lWelcome to &a&lSkyblock &fSeason 4 is live MOTD form: \u00A76\u00A7lWelcome to \u00A7a\u00A7lSkyblock\n\u00A7fSeason 4 is live
Using the MOTD output in server.properties
Open `server.properties` in a plain text editor. Find the `motd=` line and replace the value with the MOTD output from this page. In a properties file, the section sign is usually written as the escape sequence `\u00A7`. The Java properties parser turns that escape into the real character when the server loads the file.
The `\n` in the output creates the second MOTD line. If you paste the section sign directly and the server shows a strange character or drops the color, switch to the `\u00A7` version. Some hosting panels also have a separate MOTD field that expects the raw section sign instead of the escape.
Ampersand codes and plugins
Vanilla Minecraft does not turn `&6` into gold in ordinary chat. Plugins do. EssentialsX and several chat, scoreboard, and hologram plugins scan messages for ampersand codes and replace them before the message reaches the client. The exact feature set depends on the plugin and on the player's permissions.
If `&6` shows up as literal text, the plugin is not converting it, the player lacks permission, or the message is being sent through a path that skips conversion. Check the plugin documentation for the correct code format and permission node. Some plugins accept both `&` and `§`, while others accept only one.
Hex colors in Java
Java Edition supports RGB colors in text components with a value such as `#FFAA00`. The legacy section-code form is longer: `§x` followed by `§` and each hex digit, for example `§x§F§F§A§A§0§0`. The generator's hex control writes that section-code form and the preview also reads the shorter `§#FFAA00` spelling.
Hex support depends on where the text is used. A plugin or server that only understands the sixteen legacy colors may ignore the hex sequence or print it as text. Bedrock does not support arbitrary hex colors in the same way, so the Bedrock preview maps a hex value to the nearest color in its palette.
If you need one exact color across several plugins, check each plugin's documentation. Some use `#RRGGBB`, some use `&#RRGGBB`, and some want the expanded `§x` sequence.
Where the codes actually work
Color codes show up in the server list MOTD, written books, item names and lore set by commands or plugins, scoreboard text, titles and action bars, signs in some versions, and plugin messages. Server software and resource packs can change what is supported.
Vanilla chat is the common disappointment. If you type `§6hello` into the chat box in an unmodded Java client, you will usually see the characters rather than gold text. Chat plugins can add support, but that is a server feature, not a vanilla one.
Tips for readable colored text
Use color to separate information, not to decorate every word. A gold heading with white body text is easier to scan than five colors in one line. Very light colors on a light background disappear, so check the preview against the background your players will actually see.
Avoid long obfuscated sections because they are hard to read and can confuse screen readers. If your server supports cross-play, test the message on both editions as well; strikethrough and underline mean something else on Bedrock.
Troubleshooting
If the output shows `§` literally, the place you pasted it is not parsing color codes. Check whether that field expects ampersand codes, JSON text, or a plugin-specific format.
If the MOTD shows `\u00A7` as text, the properties file may have been saved with a double backslash, or the host may expect the raw section sign. Try the other output field and restart the server.
If `§m` or `§n` does nothing on Bedrock, that is expected. Use the Java edition toggle to see the strikethrough and underline preview, and remember that Bedrock treats those letters as material colors.
If the ampersand output does nothing in chat, the server probably has no plugin converting it, or you are testing on a vanilla client. Try the section-sign form in a field that supports it, or install a chat plugin that documents ampersand support.
Limitations
This tool does not connect to a Minecraft server, install plugins, or edit files. It converts text and previews it in a browser. The final appearance depends on the game version, edition, resource pack, server software, and chat surface.
The preview approximates formatting with CSS. In-game fonts and spacing differ, and obfuscated text will not match the game frame for frame. Use the preview to catch color and code mistakes, then check the result in the game before publishing a MOTD or a large text display.
Explore more gaming tools on Tolz.me.