ACLClouds
ACLClouds

Minecraft color codes and MOTD generator

All 16 Minecraft color codes (§ and &) plus formatting codes, with a MOTD generator, a live server list preview and the motd= line for server.properties.

Every Minecraft § and & color code one click away, and a MOTD editor with a server list preview. Everything runs in your browser.

How Minecraft color codes work

A color code is the section sign § followed by one character: §c turns text red, §l makes it bold. The game applies the code to the text that follows until the next code. The & sign is the form plugins such as EssentialsX use because you can type it; the plugin converts it to §.

In Java Edition, § codes work in the server.properties MOTD, resource packs, world names and plugin config files. Chat and commands reject the § sign: use /tellraw JSON text with color names such as dark_red instead.

The 16 color codes

Java text colors, from minecraft.wiki. The Java name is the one used in JSON text (/tellraw, /title).

Code Java name Color Hex
§0 black Black #000000
§1 dark_blue Dark blue #0000AA
§2 dark_green Dark green #00AA00
§3 dark_aqua Dark aqua #00AAAA
§4 dark_red Dark red #AA0000
§5 dark_purple Dark purple #AA00AA
§6 gold Gold #FFAA00
§7 gray Gray #AAAAAA
§8 dark_gray Dark gray #555555
§9 blue Blue #5555FF
§a green Green #55FF55
§b aqua Aqua #55FFFF
§c red Red #FF5555
§d light_purple Light purple #FF55FF
§e yellow Yellow #FFFF55
§f white White #FFFFFF

On Bedrock a few shades differ slightly, for example §7 (#C5C5C5) and §9 (#447FFF).

Formatting codes in Java and Bedrock

In Java, a color code turns off any formatting before it: §l§6Text shows in gold without bold. Always write the color first, then the format (§6§l), and repeat the format after every color change. On Bedrock, formatting carries on after a color.

Code Effect Edition
§k Obfuscated: random characters that keep changing Java and Bedrock
§l Bold Java and Bedrock
§m Strikethrough in Java; redstone color on Bedrock Java (effect)
§n Underline in Java; copper color on Bedrock Java (effect)
§o Italic Java and Bedrock
§r Resets color and formatting Java and Bedrock

Bedrock adds material colors: §g, §h, §i, §j, §m, §n, §p, §q, §s, §t, §u, §v and §w.

Putting the MOTD in server.properties

The MOTD is the text under the server name in the multiplayer list. It fits on two lines and is gray by default. Stop the server, replace the motd= line in server.properties and start it again: the file is only read at startup.

  • Write § as \u00A7: that sequence works whatever the file encoding.
  • Separate the two lines with \n, on a single motd= line.
  • Stay under 59 visible characters per line: beyond that the list may cut the text or show an error.
  • On Bedrock, the name shown comes from server-name, not motd.

Gradients and hex colors

The vanilla MOTD only knows the 16 § colors. The gradient helper picks the closest of those colors for each letter, so it works anywhere, with no plugin.

The Java client can draw hex colors since 1.16, but server.properties has no way to write them. You need a MOTD plugin on Paper, Spigot or a proxy such as Velocity; the syntax (&#RRGGBB, <#RRGGBB>, <gradient>) depends on the plugin.

Frequently asked questions

How do I add colors to my Minecraft server MOTD?

Put a § code before the text in the motd= line of server.properties, for example §aWelcome for green. In the file, write § as \u00A7, then restart the server.

What is the difference between & and §?

§ is the sign the game reads. & is a plugin convention that is easier to type: the plugin turns &a into §a before showing the text. server.properties only understands §.

Why does my bold text stop after a color?

In Java, a color code turns off the formatting before it. Write the color, then bold (§6§l), never the other way round.

Can I use hex colors in the MOTD?

Not in vanilla: server.properties only handles the 16 § colors. Hex colors need a MOTD plugin on Paper, Spigot or a proxy such as Velocity.

How long can a Minecraft MOTD be?

The server list shows two lines. Keep each line under 59 visible characters; longer text may be cut off or cause an error in the list.

Are color codes the same on Bedrock?

The 16 colors from §0 to §f exist in both editions. Bedrock adds material colors (§g to §w) and uses §m and §n as colors, so it has no strikethrough or underline.