Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
VGSources
Blog

How to Cheat XP Levels in Minecraft: Java and Bedrock Commands

Use the right command for your Minecraft edition: Java uses `/experience add @s 5 levels`; Bedrock uses `/xp 5L @s`.
WorldMinecraft: Java and Bedrock Commands Length2 min Posted Quest giverVGSources Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To give yourself five XP levels, use /experience add @s 5 levels in Java Edition or /xp 5L @s in Bedrock Edition. Commands must be enabled, and you need permission to use them. In Bedrock single-player, enabling cheats permanently disables achievements for that world.

Use the command for your edition

Java and Bedrock use different command syntax. In both examples, @s targets the player running the command.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Edition Add five levels Set level 30
Java Edition /experience add @s 5 levels /experience set @s 30 levels
Bedrock Edition /xp 5L @s Not stated in the documented Bedrock syntax; its /xp form adds or removes experience.

Java Edition: add, set, or check XP

Java accepts /experience, with /xp as an alias. The command distinguishes raw experience points from levels, so include the unit in the command. The current Java command reference corroborates the syntax; Mojang’s snapshot notes document the command structure historically. If your installed version suggests different syntax, follow its in-game command suggestions.

  • Add five levels: /experience add @s 5 levels
  • Add 100 raw experience points: /experience add @s 100 points
  • Set your level to 30: /experience set @s 30 levels
  • Check your level: /experience query @s levels

Java command syntax: Java Edition experience command reference; historical documentation: Mojang’s snapshot notes.

#1 Best Overall
Minecraft | Java & Bedrock Deluxe Collection | Windows Digital Code
  • DELUXE COLLECTION — Includes Minecraft: Java & Bedrock Edition, three Bedrock add-ons, three exclusive Character Creator items, and 700 Minecoins.
  • CREATE YOUR WORLD — Build whatever you imagine in an infinite world that’s unique in every playthrough.
  • EXPLORE AND CRAFT — Discover biomes, resources, and mobs, then craft your way through a sandbox world filled with surprises.
  • SURVIVE THE ADVENTURE — Face mysterious foes, travel across exciting landscapes, and venture into perilous dimensions.
  • PLAY TOGETHER — Play cross-platform with friends in Bedrock Edition on console, mobile, and PC, or join community servers in Java Edition on PC, Mac, and Linux. Online console multiplayer requires a platform-specific subscription (sold separately).

Bedrock Edition: use L to specify levels

Bedrock’s /xp command interprets a number followed by L as levels. Without the suffix, the amount means experience points. For example, /xp 5L @s adds five levels; /xp 100 @s adds 100 points. Microsoft Learn describes the command as one that “Adds or removes player experience.”

The documented syntax accepts a player name or target selector: /xp <amount: int> [player: target] for points, or /xp <amount: int>L [player: target] for levels. See Microsoft Learn’s Bedrock /xp command documentation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Minecraft | Java & Bedrock Ultimate Collection | Windows Digital Code
  • ULTIMATE COLLECTION — Includes Minecraft: Java & Bedrock Edition, five Bedrock add-ons, five exclusive Character Creator items, and 1000 Minecoins.
  • CREATE YOUR WORLD — Build whatever you imagine in an infinite world that’s unique in every playthrough.
  • EXPLORE AND CRAFT — Discover biomes, resources, and mobs, then craft your way through a sandbox world filled with surprises.
  • SURVIVE THE ADVENTURE — Face mysterious foes, travel across exciting landscapes, and venture into perilous dimensions.
  • PLAY TOGETHER — Play cross-platform with friends in Bedrock Edition on console, mobile, and PC, or join community servers in Java Edition on PC, Mac, and Linux. Online console multiplayer requires a platform-specific subscription (sold separately).

Target another player

Replace @s with a player name or another suitable target selector. For example, in Java you can use /experience add Alex 5 levels; Bedrock’s syntax also accepts a player name or selector. On a multiplayer world, the command only works if your account has enough permission.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Enable commands and check permissions

Java single-player

Enable Allow Commands when creating the world, or later through World Options. Enter commands in chat with a leading slash.

Rank #3
Minecraft | Standard Edition | XBOX Digital Code
  • CREATE YOUR WORLD — Build whatever you imagine in an infinite world that is unique in every playthrough.
  • EXPLORE AND CRAFT — Discover biomes, resources, and mobs, then craft your way through a sandbox world full of surprises.
  • SURVIVAL ADVENTURES — Face mysterious foes, travel across varied landscapes, and venture into perilous dimensions.
  • PLAY TOGETHER — Play solo or join friends in local split-screen and cross-platform play across console, mobile, and PC. Online multiplayer supports up to 8 players.
  • COMMUNITY PLAY — Connect with players on community servers, or subscribe to Realms Plus (sold separately) to play with up to 10 friends on a private server.

Bedrock single-player

In the world settings, open the Game tab and turn on Allow Cheats. This permanently disables achievements for that world—even if you turn cheats off again later.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Multiplayer

Command access depends on permissions. A world or server owner can grant the necessary access; if you are a player on someone else’s server or Realm, ask its administrator. Mojang’s commands guide explains command entry and permissions.

Quick Recap

Bestseller No. 4
Minecraft
Minecraft
Skins! We have biome settlers, city folk, town folk, and more!; The Nether and all its inhabitants. Fight Ghasts and make friends with Pigmen
$6.99
Bestseller No. 5
Minecraft - Bedrock Edition PS4
Minecraft - Bedrock Edition PS4
Play and share with friends on console, mobile and Windows 10; discover community creations in the new in-game store
$42.98
Best Value
Minecraft - Bedrock Edition PS4
  • Play and share with friends on console, mobile and Windows 10
  • discover community creations in the new in-game store
  • access new mini games and game modes through servers
Rank #4
Minecraft
  • Skins! We have biome settlers, city folk, town folk, and more!
  • The Nether and all its inhabitants. Fight Ghasts and make friends with Pigmen
  • Cross platform play for up to five players between Pocket Edition and Windows 10
  • Revamped touch controls, controller support, and a controller mapping screen
  • Enhanced Weather effects! Accumulating snow and more

If the XP command does not work

  • Check your edition: Java uses /experience (or its /xp alias) with units such as levels; Bedrock uses /xp and an L suffix for levels.
  • Check the unit: In Java, write levels or points. In Bedrock, add L directly after the amount when you mean levels.
  • Check the target: Use @s for yourself, or confirm the player name or selector is valid.
  • Check world settings and permissions: Commands must be enabled, and multiplayer users need adequate access.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More quests from Patch Notes

  1. How to Set Up a RedM (RDR2) Server in 2026: License Key, txAdmin and server.cfg, Step by StepBlog11min
  2. Best RedM (RDR2) Server Hosting in 2026: Comparing Four Hosts on Slots, Memory and PriceBlog10min
  3. How to Host a Mindustry Server in 2026: server-release.jar, Port 6567 and the Commands That MatterBlog7min
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.