Name Tags in Minecraft: Naming Mobs & Easter Egg Names

Name tags allow you to customize mobs with unique titles and prevent them from disappearing from your world. Beyond basic customization, specific names trigger hidden visual effects, unique skins, and behavioral changes.

Nickname DecoratorColor Code Text Editor

How to Get and Use a Name Tag

You cannot craft a name tag at a crafting table. Instead, you must gather them through exploration and trading:

Once you have a name tag and an anvil, follow these steps to name a mob:

  1. Place your anvil and interact with it to open the repair and name menu.
  2. Insert the name tag into the first slot on the left.
  3. Click the text box at the top, delete the default item name, and type your desired custom name.
  4. Take the newly renamed tag from the output slot on the right. This action costs experience.
  5. Hold the renamed tag in your hand, walk up to your target mob, and use the item on it.

Once applied, the custom name appears above the mob's head. More importantly, named mobs do not despawn, making name tags essential for keeping hostile mobs in farms, displays, or custom arenas.

Secret Easter Egg Names

Minecraft includes several built-in Easter eggs that alter a mob's appearance or behavior when you apply specific names. These names are case-sensitive and must be typed without quotation marks:

Coloring Name Tags in Bedrock Edition

Bedrock players can type the section symbol (§) directly into anvil names, as well as on signs and in books. On a Windows PC with a dedicated number pad, hold Alt and type 0167 to produce §.

To color or format a name tag in an anvil, type § followed immediately by a single character code before the mob's name. By default, anvil renames appear in italic, which you can remove using the reset code §r.

Copyable Bedrock anvil examples:

Coloring Name Tags in Java Edition (Servers & Commands)

Unlike Bedrock, Java chat and anvil menus do not let you type the § symbol directly. However, players and server owners have two primary ways to create colored name tags.

1. Using Server Plugins

Many multiplayer servers run plugins that allow colored anvil naming by substituting the ampersand (&) for the section symbol. On those servers, you can simply type into the anvil box:

Remember that in Java Edition, a color code resets all active formats, so you must always write the color code first and the formatting code second (for example, &c&l works for bold red, while &l&c will only be red).

2. Using JSON Text Commands

In singleplayer with cheats enabled or as a server admin, commands use JSON text with the "color" property. You can summon a mob with a colored custom name directly. Note that text rendering calculates a drop shadow automatically: the shadow color equals the text color with each RGB channel divided by 4.

Copyable JSON text snippet for command use:

{"text":"Guardian","color":"aqua","bold":true,"italic":false}

If you want an Easter egg mob with a colored name in Java, naming it via anvil isn't possible without breaking the exact name match, so keep Easter egg tags unformatted: Dinnerbone, Grumm, jeb_, Toast, or Johnny.

Complete Minecraft Color and Format Code Reference

Use these codes after § (Bedrock) or & (Java plugins) to style your text. In Java JSON commands, use the full name like "dark_aqua" or the hex code.

Standard Colors (Java & Bedrock):

Formatting Codes:

Bedrock Extra Material Colors:

Note that on Bedrock Edition, m and n are assigned to material colors, so strikethrough and underline formatting do not exist there.

Questions

Do mobs named with a name tag despawn?

No. Once you apply a renamed name tag to a mob, it will never naturally despawn when you move far away from it.

Does a jeb_ sheep drop rainbow wool when sheared?

No. The rainbow effect on a sheep named jeb_ is purely visual. Shearing it yields the wool color the sheep originally had before being named.

Why did my bold or italic formatting disappear after adding a color code in Java?

In Java Edition, placing a color code automatically resets any formatting codes before it. Always place your color code first and your format code second, such as &6&l.

Why don't underline (n) and strikethrough (m) work on Bedrock Edition name tags?

On Bedrock Edition, the codes m and n are used for material_redstone and material_copper colors instead of text formatting, so strikethrough and underline do not exist there.

Related guides

See all →