Tolz.me

Minecraft Color Code Generator

Insert Minecraft color and formatting codes, preview them on a dark background, and copy Java, plugin, or MOTD output.

Your text

Put the cursor where a code should start, then click a button.

Colors

Formatting

Java only. Bedrock preview uses the nearest palette color.

Preview (Java Edition)

Welcome to Skyblock
Section sign form (§)
§6§lWelcome §fto §a§lSkyblock
Ampersand form (&) for plugins
&6&lWelcome &fto &a&lSkyblock
server.properties MOTD
\u00A76\u00A7lWelcome \u00A7fto \u00A7a\u00A7lSkyblock

The MOTD output uses \u00A7 for the section sign and \n between lines. Paste it after motd= in server.properties.

Color and formatting reference

Minecraft color and formatting codes for Java and Bedrock
CodeNameHexNotes
§0Black#000000Java and Bedrock
§1Dark Blue#0000AAJava and Bedrock
§2Dark Green#00AA00Java and Bedrock
§3Dark Aqua#00AAAAJava and Bedrock
§4Dark Red#AA0000Java and Bedrock
§5Dark Purple#AA00AAJava and Bedrock
§6Gold#FFAA00Java and Bedrock
§7Gray#AAAAAAJava and Bedrock
§8Dark Gray#555555Java and Bedrock
§9Blue#5555FFJava and Bedrock
§aGreen#55FF55Java and Bedrock
§bAqua#55FFFFJava and Bedrock
§cRed#FF5555Java and Bedrock
§dLight Purple#FF55FFJava and Bedrock
§eYellow#FFFF55Java and Bedrock
§fWhite#FFFFFFJava and Bedrock
§gMinecoin Gold#EFCE16Bedrock only
§kObfuscated—Randomly cycles the visible characters.
§lBold—Heavier text weight.
§oItalic—Slanted text.
§rReset—Clears the active color and formatting.
§mStrikethrough / Material Redstone—Java decoration. On Bedrock this is a material color.
§nUnderline / Material Copper—Java decoration. On Bedrock this is a material color.

About this tool

Minecraft color codes are section-sign characters that change how text looks in the game. This generator inserts each code at your cursor, previews the result, and gives you the same string in section-sign form, ampersand form, or a server.properties MOTD line. A Bedrock switch adds Minecoin Gold and explains where the two editions differ.

Browse more gaming tools or explore all Tolz.me tools.

Try other relevant tools

Frequently asked questions

What does a Minecraft color code look like?+

It is a section sign followed by one character, such as §6 for gold, §l for bold, or §r for reset. The game reads the code and draws the following text in that style.

Do Minecraft color codes work in chat?+

In vanilla Java chat, typed section signs usually appear as plain characters instead of colored text. The codes work in places such as the server list MOTD, written books, command output, and messages sent by plugins. Server software decides what is supported.

What is the difference between Java and Bedrock color codes?+

Both editions share §0 through §f and common formatting codes. Java uses §m for strikethrough and §n for underline. On Bedrock those letters are material colors, and Bedrock adds §g for Minecoin Gold.

How do I use the MOTD output in server.properties?+

Paste the MOTD output after motd= in server.properties, save the file, and restart or reload the server. The output writes the section sign as § because Java properties files expect that escape.

Why does §g not work on Java?+

Minecoin Gold is a Bedrock color. Java clients do not have that legacy code, so the text may lose its color or show the code literally depending on where it is used.

Can I use hex colors in Minecraft?+

Java Edition supports RGB colors in text components and in the expanded §x section-code form. Bedrock does not support arbitrary hex colors the same way. Plugin support varies, so check the documentation for the software you use.

Why do §m and §n look different on Bedrock?+

On Bedrock, §m and §n are material colors rather than strikethrough and underline. Switch the editor to Bedrock to see the material colors, and switch back to Java for the text decorations.

Use cases

  • Build a two-line server MOTD without typing escape sequences by hand.
  • Preview gold, aqua, and bold combinations before adding them to a plugin config.
  • Convert existing section-sign text to ampersand codes for EssentialsX.
  • Check whether a Bedrock code such as §g will work on a Java server.
  • Copy a color code list for a sign, book, scoreboard, or hologram setup.

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.

Related tools