The .minecraft folder is the directory where Minecraft: Java Edition keeps worlds, resource packs, screenshots and settings. On Windows you'll find it at %APPDATA%\.minecraft, on macOS at ~/Library/Application Support/minecraft, and on Linux at ~/.minecraft. We'll show you how to open it, what's inside, and how to back up a world.
- Windows: press Windows + R, type %APPDATA% and open the .minecraft folder.
- Worlds are stored in the saves subfolder, each in its own directory.
- You can back up a world in-game: click "Edit" and then "Make Backup".
- Bedrock has no .minecraft folder, its worlds live in the com.mojang folder.
Where the .minecraft folder is
According to the .minecraft folder page on Minecraft Wiki, on Windows the fastest way to open it is the Run command. Press Windows + R, type %APPDATA% and hit Enter, then go into the .minecraft folder. The same works by typing %APPDATA% into File Explorer's address bar.
On macOS open Finder, press Shift + Command + G, type ~/Library/Application Support/minecraft and hit Return. On Linux the folder sits in your home directory as ~/.minecraft. Names starting with a dot are hidden by default, and in most file managers you can show them with Ctrl + H.
There's also a way through the game itself. In the Options menu choose "Resource Packs…", then "Open Pack Folder". That opens the resourcepacks subfolder, and the folder one level up is .minecraft itself.
Launchers can put the game folder anywhere, and in the Minecraft Launcher each installation can have its own game directory. If your worlds disappeared from the list after switching installations, check this setting first.
What's inside the .minecraft folder
- saves: single-player worlds, each in its own directory with a level.dat file, player data in the players subfolder, and .mca region files for each dimension,
- resourcepacks: resource packs, meaning textures and sounds,
- screenshots: screenshots taken with F2, named by date and time,
- logs: game logs, including latest.log from the most recent session, useful for bug reports,
- options.txt with settings, servers.dat with your server list, and command_history.txt with command history,
- versions, libraries and assets: game files downloaded by the launcher.
After installing a mod loader, a mods folder appears, and after installing Iris or OptiFine, a shaders folder appears. We cover this in our guides how to install mods and how to install shaders. You install texture packs following our guide how to install a texture pack.
Don't send anyone your entire .minecraft folder. It also contains launcher files with account data, such as launcher_msa_credentials.json. If you want to share a world with someone, just copy its directory from the saves subfolder.
The directory name inside saves doesn't always match the world's name on the in-game list, for example after renaming a world. The correct directory is shown by the "Open World Folder" button on the "Edit World" screen, described below.
How to back up a world
Since version 1.13 you can make a backup without leaving the game, as confirmed by the changelog for version 1.13. Go into "Singleplayer", select a world from the "Select World" list and click "Edit". On the "Edit World" screen choose "Make Backup", and the "Open Backup Folder" button will show you where the backup ended up.
The game also offers to make a backup automatically when you open a world in a newer version. You'll see the prompt "Do you want to backup your world before updating it?" along with a "Backup and Load" button. It's worth using, since an updated world is hard to open again in an older version, and the game warns about world damage when downgrading versions.
You can also make a manual backup by copying the world's directory from the saves folder to an external drive or the cloud. Do this after exiting to the main menu, so the game isn't writing files while you're copying. Restoring a backup just means pasting the directory back into saves. We cover server world backups separately in our guide server backups.
Where worlds are in Bedrock
Bedrock Edition, the version for Windows, consoles and phones, doesn't use the .minecraft folder. Its worlds, packs and settings live in the com.mojang folder, and we give the exact path for each platform in our guide the com.mojang folder. You can also export a Bedrock world to a single .mcworld file and import it on another device.
If you're not sure which version you have, we explain the differences between Java and Bedrock in our guide Minecraft for PC. You can download Java itself following the instructions on the Minecraft Java Edition download page.