How to use Minecraft item IDs
Since Minecraft 1.13, every item and block uses a namespace ID like minecraft:oak_planks or minecraft:diamond_sword. You can type these directly into commands, loot tables, recipes, tags and datapacks, so it is worth learning how to look them up fast. Use the search box above to find any item by its English name, its namespace ID, or even its numeric ID.
The /give command needs the item ID and a count: /give @p minecraft:diamond_sword 1. Items that take extra data, like enchanted books or custom banners, accept NBT after the count, for example /give @p minecraft:diamond_pickaxe{Enchantments:[{id:"efficiency",lvl:5}]} 1. The /setblock and /fill commands use block IDs the same way: /setblock ~ ~ ~ minecraft:stone or /fill ~ ~ ~ ~5 ~5 ~5 minecraft:oak_planks.
Older worlds and guides still use the pre-1.13 numeric IDs such as 276 for a diamond sword, or the legacy format minecraft:sapling:0 for a specific data value. This tool shows the legacy numeric ID for every item when you enable the "Legacy 1.12- IDs" toggle, so you can convert old commands to modern namespaced ones or the other way round.
Datapacks and plugins use the same namespaced IDs everywhere. A loot table references minecraft:oak_log as the item to drop, a recipe lists minecraft:stick as an ingredient, and block tags group IDs into sets like minecraft:logs. Once you know the ID of a few common items, reading and writing datapacks becomes much easier, and this lookup covers the rest.
Java Edition and Bedrock Edition both use namespaced IDs, but the two editions still differ in command syntax and in a handful of items. The data on this page follows Java Edition 1.21. If a command fails on Bedrock, double-check the exact ID spelling and remember that Bedrock does not accept NBT in commands the same way Java does.
Finding the right ID is only half of the job. Stack size matters too: most items stack to 64, ender pearls and snowballs stack to 16, and tools and armor stack to 1. For legacy conversions, the data value matters just as much as the numeric ID. The columns above show the modern numeric ID and the legacy 1.12 value side by side, so you can translate old guides and server configs in seconds.
Frequently asked questions
What is the Minecraft item ID for diamond?
The modern namespace ID is minecraft:diamond and the numeric ID is 264. For a diamond sword use minecraft:diamond_sword (numeric 276).
How do I give myself an item in Minecraft?
Use the /give command with the namespaced ID: /give @p minecraft:diamond_sword 1. In Java Edition you can add NBT after the count, such as enchantments or a custom name.
What is the difference between numeric ID and legacy ID?
Numeric IDs like 1 for stone are the internal values from 1.12 and earlier. Legacy IDs such as minecraft:sapling:0 also carry a data value for variants. Modern namespaced IDs replaced both starting with 1.13.
Are block IDs the same as item IDs?
Most blocks also exist as items and share the same namespace ID, so minecraft:stone works in both /setblock and /give. A few technical blocks like air, barrier or command blocks are not obtainable as regular items.
How do I copy an item ID?
Click the copy button next to any ID. It copies the full value, for example minecraft:diamond_sword, straight to your clipboard, ready to paste into a command, datapack or plugin.
Why do some legacy IDs look like 1:2?
The format is numericID:dataValue. Before 1.13 this was how the game separated variants such as granite colors or sapling types. The legacy column shows this combined value when it exists.
Do item IDs work in Bedrock Edition?
Bedrock also uses namespaced IDs like minecraft:stone, but command syntax differs slightly and a few items only exist on one edition. Check the spelling and use the Bedrock command format for the best result.