Skip to content

Minecraft color codes and MOTD generator

A § sign plus a code changes the text under your server name: §6 is gold, §l makes it bold. Type your MOTD below, click a color and copy the line for server.properties. Free, no account needed.

MOTD generator

Two lines, colors and formatting, with a live preview just like the server list.

The MOTD generator needs JavaScript. Without it, use the codes in the table below. In server.properties you write the § sign as \u00A7, like this:

motd=\u00A76\u00A7lThe Cake Factory \u00A7r\u00A77Survival with friends\n\u00A7aNow open!

Codes go into line 1, where your cursor is. Pick a color first, then the formatting.

How players see your server

Minecraft Server0/20

Copy your MOTD

Replace the line that starts with motd= and restart your server.

For plugins and config files that read the § sign themselves.

Paste this into the MOTD tab of our game panel. Both lines sit on one line, with \n in between.

All Minecraft color codes

Sixteen colors, the same in Java and Bedrock.

Minecraft color codes with color, in-game name and hex code
CodeColorIn-game nameHex code
§0Blackblack#000000
§1Dark bluedark_blue#0000AA
§2Dark greendark_green#00AA00
§3Dark aquadark_aqua#00AAAA
§4Dark reddark_red#AA0000
§5Dark purpledark_purple#AA00AA
§6Goldgold#FFAA00
§7Graygray#AAAAAA
§8Dark graydark_gray#555555
§9Blueblue#5555FF
§aGreengreen#55FF55
§bAquaaqua#55FFFF
§cRedred#FF5555
§dLight purplelight_purple#FF55FF
§eYellowyellow#FFFF55
§fWhitewhite#FFFFFF

Formatting codes

Minecraft formatting codes and what they do
CodeWhat it doesIn-game name
§kRandom characters that keep changingobfuscated
§lBoldbold
§mStrikethrough (Java only)strikethrough
§nUnderline (Java only)underline
§oItalicitalic
§rReset: back to normal color and formattingreset
Extra colors in Bedrock
Color codes that only Bedrock Edition knows
CodeIn-game nameHex code
§gminecoin_gold#EFCE16
§hmaterial_quartz#D9CCB8
§imaterial_iron#A9B4B7
§jmaterial_netherite#8F727D
§mmaterial_redstone#EE222C
§nmaterial_copper#C87363
§pmaterial_gold#FFBF1E
§qmaterial_emerald#13A045
§smaterial_diamond#5FECFF
§tmaterial_lapis#577BFF
§umaterial_amethyst#B66CDD
§vmaterial_resin#FF6A00

In Bedrock, §m and §n are colors instead of strikethrough and underline.

Sources: Minecraft Wiki: Formatting codes, Minecraft Wiki: server.properties, MiniMOTD (GitHub).

How to set the MOTD on your server

  1. Step 1: Make your MOTD

    Type your two lines above and copy the line for server.properties.

  2. Step 2: Paste it into server.properties

    In the game panel, open Files and then server.properties. Replace the line that starts with motd=.

  3. Step 3: Restart your server

    The new MOTD shows up after a restart. Then refresh the server list in Minecraft.

Tips for a good-looking MOTD

  • Color first, formatting second. In Java Edition a color code switches bold, italic and the rest off again. So write §6§l, not §l§6.
  • Keep each line short. Anything that does not fit falls off the server list.
  • Use \u00A7 in server.properties. It works in every version. Minecraft Java only reads a plain § sign correctly from version 1.20.
  • Finish it with an icon. The server icon maker puts a picture next to your name. The cherry on the cake.

Further reading

Frequently asked questions

How do I type the § sign?

In the MOTD generator you do not have to: just click a color. To type it yourself, use Alt+0167 on the number pad in Windows, or Option+6 on a Mac with a US keyboard layout.

Why are my colors not showing?

Check three things: is the color in front of the formatting (§6§l, not §l§6), do you write \u00A7 in server.properties, and did you restart the server? Then refresh the server list.

Can I use hex colors or gradients?

Not in server.properties: only the sixteen fixed colors work there. A plugin such as MiniMOTD can do it, and players on Minecraft 1.16 or newer will see those colors.

Do these codes work in Bedrock?

Mostly. Bedrock has the same sixteen colors plus a few extra ones, such as §g for minecoin gold. Strikethrough and underline do not exist there: §m and §n are colors in Bedrock.

What is the difference between § and &?

Minecraft itself only reads §. Many plugins and the MOTD tab in our game panel let you type & and turn it into §. The generator gives you both.

More questions? See all frequently asked questions

No server for your MOTD yet?

Rent a Minecraft server and put your MOTD on it straight away.