Original pixel art Iron Sword icon with a silvery-white blade and brown hilt
Minecraft Java Item ID

Iron Sword ID

Iron Sword is a reliable weapon dealing 6 damage. It is crafted from 2 iron ingots and a stick, making it a mid-game standard weapon.

✓ Verified for Java Edition 26.2
Namespaced item ID minecraft:iron_sword

Iron Sword Item Facts

CategoryCombat
Maximum stack1
Available inSurvival and Creative
Historical numerical ID267

Historical numerical ID: Reviewed for Java Edition 1.12.2 and earlier.

Give Command for Iron Sword

Copy the current Java Edition command, or open the generator to change the player and quantity.

/give @p minecraft:iron_sword 1

Customize this command → Open in Enchantment Builder → View crafting recipe →

Historical command for Java 1.12.2 and earlier

Modern namespaced IDs are recommended. This numerical form is only for old Java releases.

/give @p 267 1

Give command syntax by version

Java 1.13+
/give @p minecraft:iron_sword 1
Namespaced ID (current format)
Java 1.8–1.12.2
/give @p 267 1 0
Numerical ID + data value
Bedrock Edition
/give @p minecraft:iron_sword 1
Same namespaced ID (namespace optional)

Rows appear only when the underlying value is verified: the Java 1.8–1.12.2 row requires a reviewed historical numerical ID, and the Bedrock row appears only when this exact namespaced ID exists in the Bedrock registry.

How to Get Iron Sword

Crafting Recipe

Iron Ingot
Iron Ingot
Stick

Crafting table recipe — makes 1 × Iron Sword.

More Ways to Get It

Craft an Iron Sword with two iron ingots and one stick. It is a reliable early-to-mid-game melee weapon before diamond and netherite upgrades.

  1. Collect two iron ingots and one stick.
  2. Craft the sword at a Crafting Table.
  3. Pair it with a shield or enchant it as combat demands grow.

Prefer commands? Jump back to the give command matrix above to get Iron Sword instantly.

Iron Sword Command Examples

  • Give 1 to nearest player: /give @p minecraft:iron_sword 1
  • Give 1 to yourself: /give @s minecraft:iron_sword 1
  • Give to a specific player: /give PlayerName minecraft:iron_sword 1
  • Clear from inventory: /clear @p minecraft:iron_sword

Compatible Enchantments for Iron Sword

Iron Sword can receive these enchantments from an enchanting table or anvil. Some of them are mutually exclusive; each enchantment page lists its incompatible partners.

What Is Iron Sword Used For?

Iron Ingot

Two ingots are used in the sword recipe.

Shield

Pair a sword with off-hand defense in melee combat.

Iron Sword FAQ

What is the item ID for Iron Sword?

The item ID for Iron Sword is minecraft:iron_sword. Java Edition commands such as /give, /clear, and /setblock use this namespaced ID.

What is the numerical ID for Iron Sword?

Iron Sword has the historical numerical ID 267, used in Java Edition 1.12.2 and earlier. Current versions use minecraft:iron_sword instead.

How do I give myself Iron Sword in Minecraft?

Open the chat window and run /give @p minecraft:iron_sword 1 to give the nearest player one Iron Sword. Replace @p with a player name to target someone else.

How many Iron Sword can stack in one slot?

Iron Sword stacks up to 1 per inventory slot.

How do you craft Iron Sword?

Iron Sword is crafted on a crafting table with 2 iron ingots and 1 stick, which yields 1 Iron Sword.

Sources and Data Review

Item facts were reviewed for Java Edition 26.2 on .

Related Combat

Item ID: minecraft:iron_ingot
Item ID: minecraft:shield
Item ID: minecraft:enchanting_table
Item ID: minecraft:diamond_sword
Original pixel art Bow icon
Item ID: minecraft:bow
Item ID: minecraft:netherite_sword
Item ID: minecraft:crossbow
Item ID: minecraft:diamond_helmet