How to Make Colored Item Names in Minecraft

Customizing weapons, tools, and gear with colored item names makes your inventory stand out and helps organize loot on multiplayer servers. The method you use depends on whether you play Minecraft Bedrock Edition or Java Edition.

Color Code Text EditorNickname Decorator

Bedrock Edition: Colored Item Names in an Anvil

In Minecraft Bedrock Edition, you can type the section symbol (§) directly into an anvil, on signs, and inside books. Renaming an item in an anvil costs experience levels.

  1. Place an anvil and open its interface.
  2. Put the item you want to rename into the first slot.
  3. Click the text box at the top and delete the current name.
  4. Type the section symbol § followed immediately by a color or formatting code, then type your item name.
  5. Pay the experience level cost and take your newly colored item from the output slot.

How to type the § symbol: On Windows with a dedicated number pad, hold Alt and type 0167. On mobile devices and consoles, hold down the & or S or paragraph key on the on-screen keyboard to find §.

Bedrock Anvil Examples:

Note that renamed items in anvils appear in italics by default. In Bedrock anvils, using §r resets active formatting.

Java Edition: Colored Item Names with Commands

Java Edition chat and anvils do not allow you to type the § symbol. To get colored item names in singleplayer or vanilla Java servers, you must use the /give command with the custom_name item component (1.20.5+).

Because custom item names default to italic text, add italic:false to your component if you want clean, upright letters.

Java 1.21.5+ Command Syntax (SNBT format):

In 1.21.5+, the component is written directly as SNBT:

/give @p diamond_sword[custom_name={text:"Excalibur",color:"gold",italic:false}]

Java 1.20.5+ Command Syntax (JSON string format):

Before 1.21.5, wrap the JSON text component inside single quotes:

/give @p diamond_sword[custom_name='{"text":"Excalibur","color":"gold","italic":false}']

Using Hex Colors in Java Commands:

Java JSON text supports hex color codes in the color field alongside preset color names:

/give @p netherite_axe[custom_name={text:"Blood Cleaver",color:"#AA0000",bold:true,italic:false}]

Multi-Colored Item Names in Java:

You can combine multiple colored segments in a single item name by using a list of text objects:

/give @p bow[custom_name=[{text:"Fire ",color:"red",italic:false},{text:"and ",color:"gray",italic:false},{text:"Ice",color:"aqua",italic:false}]]

Java Multiplayer Servers and Plugins

If you play on or manage a Java Edition server running plugins, you rarely need to type full /give commands for players. Because Java does not let players type § in chat or anvils, plugins accept the ampersand symbol (&) as a substitute.

When an anvil formatting or item-renaming plugin is installed, players with the required permissions can rename items in an anvil or via plugin commands using & codes:

Important Java Rule: In Java Edition, applying a color code automatically resets all previous formatting codes like bold or italic. Always write the color code first, and the formatting code second (write &6&lText, never &l&6Text).

All Minecraft Color Codes (Java & Bedrock)

Both editions share the standard 16 base colors. In commands, use the JSON name or hex value. In Bedrock anvils or Java plugins, use the single-character code after § or &.

Text Drop Shadow Tip: Minecraft renders a dark shadow behind every colored letter. The shadow color is calculated by taking the text color and dividing each channel by 4.

Bedrock-Exclusive Material Color Codes

Bedrock Edition includes extra color codes based on in-game ores and materials. You can type these directly into a Bedrock anvil using §:

Text Formatting Codes and Edition Differences

Alongside colors, you can apply text styles using formatting codes:

Why Strikethrough and Underline Do Not Work on Bedrock: On Bedrock Edition, the letters m and n are assigned to material_redstone and material_copper. Because they act as color codes on Bedrock, strikethrough and underline formatting do not exist there.

Questions

Why can't I type the § symbol in a Java Edition anvil?

Java Edition blocks the § character in chat and anvils. To create colored item names in Java, use the /give command with the custom_name component, or use & codes on a server with an anvil plugin.

How do I remove italics from a colored item name in Java?

Add italic:false inside your custom_name component. For example, in 1.21.5+: /give @p diamond_sword[custom_name={text:"Blade",color:"aqua",italic:false}].

Why does my bold formatting disappear when I add a color code?

In Java Edition, any color code resets active formatting codes. Always place the color code before the formatting code, such as &c&l instead of &l&c.

Why do §m and §n change the text color in Bedrock instead of adding lines?

In Bedrock Edition, m is the color code for material_redstone and n is the color code for material_copper. Strikethrough and underline formatting do not exist in Bedrock.

Related guides

See all →