
Edit a Minecraft player's inventory in your browser: open a playerdata .dat or single-player level.dat, change items and counts in a real inventory grid, armor, off-hand and ender chest, plus health, food, XP and game mode.
Private by design: your files are read by your browser and never uploaded.
Single player: the world's level.dat. Server: world/playerdata/<uuid>.dat, where the UUID belongs to the player (look it up in usercache.json).
Quit the world or stop the server, so the game does not overwrite your changes, and keep a copy of the file.
Choose the file. You see armor, off-hand, the 27-slot inventory, the hotbar and the ender chest with real item icons.
Tap a slot, type an item id (suggestions appear as you type) and a count, then Apply. Empty slot clears it.
Press Save file and put it back in place of the old one. Start the world and check your inventory.
In world/playerdata, named after your UUID. usercache.json in the server folder lists names with their UUIDs.
New items are plain. To add enchantments, open the file in the NBT Editor and add components to the item.
The game was still running and saved over the file. Close the world or stop the server before replacing it.
The Inspector only reads player files. This editor changes them and saves a new copy.