1. Home
  2. Tools
  3. Minecraft Color Codes

Minecraft color codes and coloured text generator

Type your text with & or § codes, or click the colour buttons to insert them. The dark box shows the colours and styles the way the game applies them (obfuscated §k text stays plain here). Copy it with § for the game, with & for server plugins, or as JSON for /tellraw.

Works for:Minecraft

Everything runs in your browser. What you type is never sent to our server.

Try also:Fancy Text GeneratorFree Fire Stylish NameInvisible Name GeneratorStylish Name Generator
⧉ Embed this tool

How to use

  1. Type your text in the field. Put a code in front of the part you want to colour: &6 makes it gold, &l makes it bold.
  2. Or click a colour button: it inserts the code where your cursor is.
  3. Check the preview. In Java a colour code switches off bold and italic, so put the colour first and the style after it: &6&l, not &l&6. That order works in Bedrock too.
  4. Copy the version you need: § for places where the game reads codes itself, & for server plugins, JSON for /tellraw and /title.

All 16 colour codes

The same 16 colours work in Java and Bedrock. The JSON name is what you write in "color" inside /tellraw.
CodeColourJSON nameHex
§0 / &0blackblack#000000
§1 / &1dark bluedark_blue#0000AA
§2 / &2dark greendark_green#00AA00
§3 / &3dark aquadark_aqua#00AAAA
§4 / &4dark reddark_red#AA0000
§5 / &5dark purpledark_purple#AA00AA
§6 / &6goldgold#FFAA00
§7 / &7graygray#AAAAAA
§8 / &8dark graydark_gray#555555
§9 / &9blueblue#5555FF
§a / &agreengreen#55FF55
§b / &baquaaqua#55FFFF
§c / &credred#FF5555
§d / &dlight purplelight_purple#FF55FF
§e / &eyellowyellow#FFFF55
§f / &fwhitewhite#FFFFFF

Formatting codes

CodeEffectWhere
§lboldJava and Bedrock
§oitalicJava and Bedrock
§nunderlinedJava only
§mstrikethroughJava only
§kobfuscated: letters flicker randomlyJava and Bedrock
§rreset to plain textJava and Bedrock

In Java the order matters: a colour code switches off the formatting before it, so §l§6 ends up gold but not bold. Bedrock keeps the formatting. Write §6§l and it works in both. The preview on this page follows the Java rule.

Where § works, and where it does not

Java Edition. You cannot type § in chat: the game disconnects you, even in single player. Codes work in text the game reads from files: the server description (motd in server.properties), pack.mcmeta, splash texts, language files, world and server names. In commands, use JSON with the colour name rather than §.

Bedrock Edition. § can be typed or pasted into most text fields: chat, signs, book and quill, item names in an anvil, name tags. Renamed items turn italic by default; start the name with §r to make it plain.

Servers with plugins. Many servers let players type & instead of §. That is the plugin converting it, not the game, and your rank may need permission for colours.

Close-up of a dark mechanical keyboard with sixteen keycaps in sixteen different colours

Bedrock has more colours

Bedrock adds twelve colours that Java does not have: §g (minecoin gold) and the material colours from version 1.19.80: quartz, iron, netherite, redstone, copper, gold, emerald, diamond, lapis, amethyst, plus resin from 1.21.50. In Bedrock, §m and §n are two of those colours, not strikethrough and underline. The palette on this page covers the 16 shared colours and the Java formatting codes.

What usually goes wrong

  1. Kicked from a Java server after typing §. The Java client does not allow § in chat. Use & if the server has a colour plugin, or JSON in a command.
  2. Bold disappears in Java. The colour code came after the style code. Colour first, then style.
  3. The motd shows odd characters instead of colours. The file was saved in the wrong encoding and § broke. Save server.properties as UTF-8, or write the sign as \u00A7.
  4. Strikethrough turns into a colour on Bedrock. On Bedrock, §m is a colour. Only Java draws strikethrough and underline.
  5. & codes show up as plain text. The server has no plugin that reads them, or your rank lacks the permission.

FAQ

How do I type the § sign?

On Windows, hold Alt and type 0167 on the number pad. On a Mac, press Option+6. On an iPhone, hold the & key on the symbol keyboard and slide to §. Or copy it from this page.

What is the code for gold?

§6 (or &6 on plugin servers). In JSON it is "color":"gold".

Can I use hex colours like #FF7A2F?

In Java, JSON text accepts hex values in "color", for example "color":"#FF7A2F". § codes only give the 16 fixed colours.

Does it work on Bedrock?

Yes for the 16 colours, bold, italic, obfuscated and reset. Bedrock draws §m and §n as colours instead of strikethrough and underline.

Is my text sent anywhere?

No. The preview and the copy buttons work in your browser.

Related tools

Latest guides