What a Nametag Does and How to Get One
A nametag in Minecraft PC is an item that lets you name any mob or animal in the game. When you place a nametag on a creature, that name floats above its head and stays there permanently—even if the mob would normally despawn when you're far away. This is useful for keeping pets, marking important mobs, or just having fun with naming.
Nametags do not appear in the creative inventory by default, so you have to find them in the world. The most reliable way is to search loot chests in generated structures. Nametags show up in chests inside dungeons, mineshafts, woodland mansions, and buried treasure. You can also fish for them—they have a small chance to appear in fishing treasure. In creative mode, you can grab one directly from the creative inventory by searching "nametag" in the search bar.
Key Takeaways
- You write a name on a nametag using an anvil, then place the nametag on a mob by holding it and right-clicking the creature.
- Nametags prevent mobs from despawning, so a named mob will stay in the world even when you leave and come back.
- You can name any mob—animals, monsters, or even the Ender Dragon—but the nametag must be in your hand when you right-click.
- Nametags are found in loot chests throughout the world or caught while fishing, and they cost experience levels to rename in an anvil.
Finding and Naming a Nametag at an Anvil
Once you have a nametag, you need to give it a name before you can use it on a mob. To do this, place an anvil in your world. You can craft one with three blocks of iron on top, three iron ingots in the middle row, and three iron blocks on the bottom—or find one in a stronghold or village. Right-click the anvil to open it.
Put your nametag in the left slot of the anvil. A text box will appear where you can type the name you want. Type whatever you like—it can be a single word or multiple words. When you are done typing, press Enter or click outside the box. The anvil will show you the cost in experience levels (usually 1 level). If you have enough experience, click the result slot on the right to take your named nametag. The name is now locked onto that nametag and cannot be changed without using another nametag.
Placing the Nametag on a Mob
Hold the named nametag in your hand and find the mob you want to name. This can be any creature—a dog, cat, horse, zombie, creeper, or anything else. Stand close enough to see the mob clearly, then right-click directly on it. The nametag will disappear from your hand, and the name will appear above the mob's head in white text.
The name stays visible at all times, even when the mob moves far away from you. If you want to remove a nametag, you cannot do it by right-clicking again—you have to kill the mob or use commands. In survival mode, there is no way to take a nametag off once it is placed, so choose your target carefully.
Why Nametags Stop Mobs from Despawning
In Minecraft, most mobs despawn when you travel far enough away from them or when the chunk they are in unloads. A named mob does not despawn. This is one of the most useful features of nametags because it means you can name a pet or a special mob and it will be waiting for you when you return to that location, no matter how long you have been gone.
This applies to all mobs equally. A named zombie will stay put just as much as a named dog will. Some players use this to keep dangerous mobs trapped in specific areas, or to preserve rare spawns like a charged creeper or a horse with good stats. The name itself does not affect the mob's behavior—it just prevents despawning.
Common Mistakes When Using Nametags
The most common error is forgetting to name the tag before placing it. If you right-click a mob with an unnamed nametag, nothing happens. You must use the anvil first. Another mistake is naming the tag but then losing it before you use it—nametags take up inventory space, so keep track of where you store them.
Players also sometimes expect to be able to remove or change a nametag after placing it. You cannot. Once a nametag is on a mob, it stays there until the mob dies. If you want to rename a mob, you have to kill it and name a new one. Plan your names carefully, or keep extra nametags on hand for practice.
Using Nametags in Different Game Modes
In survival mode, nametags work exactly as described above. You find them, name them at an anvil, and place them on mobs. In creative mode, you can grab unlimited nametags from the inventory and name them when ready without needing an anvil—just hold the nametag and type a name directly. You can also use commands to name mobs without a nametag at all.
In adventure mode, nametags work the same way as survival mode. If you are playing on a server or in a multiplayer world, nametags function normally, and any player can see the names you give to mobs. Some servers disable nametags or limit how they work, so check your server rules if you are unsure.
Using Commands to Name Mobs Without a Nametag
If you have cheats turned on, you can name any mob using the /data merge command without needing a nametag at all. First, point your crosshair at the mob and run this command: /data merge entity @e[type=MOBTYPE,limit=1,sort=nearest] {CustomName:"\"YourNameHere\""}. Replace MOBTYPE with the actual mob type (like sheep, zombie, or armor_stand) and YourNameHere with the name you want.
This method is faster if you are building or testing, but it requires cheats to be on. In pure survival mode without commands, nametags are your only option. Commands also let you give mobs colored names or names with special formatting, which nametags cannot do on their own.
Frequently Asked Questions
Can I use a nametag on a player?
No. Nametags only work on mobs. Players already have names displayed above their heads, and you cannot change those with a nametag. If you want to rename a player on a server, that requires admin commands or a plugin.
What happens if I name two mobs the same thing?
Nothing stops you from doing it. Both mobs will have the same name floating above their heads. This can be confusing, so most players give each mob a unique name, but the game does not prevent duplicates.
Do nametags work on the Ender Dragon?
Yes, but only if the dragon is still alive. You can name the Ender Dragon before you defeat it, and the name will appear above its head. Once the dragon dies, you cannot place a nametag on it anymore.
Can I get a nametag back if I kill a named mob?
No. When a named mob dies, the nametag is lost forever. The mob does not drop it as an item. This is why you should only name mobs you plan to keep around for a while.
Do nametags work in the Nether and the End?
Yes. Nametags work in all dimensions. A named mob in the Nether will stay named and will not despawn, just like in the Overworld.