The .minecraft folder is where your game saves, settings, and mods live

The .minecraft folder is a hidden directory on your computer that stores everything Minecraft needs to run: your worlds, player data, texture packs, mods, and launcher settings. You need to find it when you want to back up a world, install mods, change game files, or troubleshoot problems. The location changes depending on whether you use Windows, Mac, or Linux.

The folder is hidden by default because it starts with a dot, which tells your operating system to keep it out of sight. You will need to show hidden files before you can see it. Once you know where to look, the process takes less than a minute on any system.

Key Takeaways

  • On Windows, press Windows key + R, type %appdata%, and look for the .minecraft folder inside the AppData\Roaming directory.
  • On Mac, open Finder, press Command + Shift + G, type ~/Library/process Support, and find the minecraft folder (without a dot on newer versions).
  • On Linux, open your file manager and navigate to ~/.minecraft in your home directory, or use the terminal command cd ~/.minecraft.
  • Hidden files and folders are turned off by default; you may need to enable "Show Hidden Files" in your file manager settings to see the folder.
  • Back up your worlds and settings regularly by copying the entire .minecraft folder to an external drive or cloud storage.

Finding the folder on Windows

On Windows, the fastest way is to use the Run dialog. Press the Windows key and R at the same time, type %appdata%, and press Enter. This opens the AppData\Roaming folder directly. Look for a folder named .minecraft — it will have a folder icon with a dot in front of the name.

If you do not see it, your hidden files are turned off. Click the View tab at the top of the window, then check the box next to "Hidden items". The .minecraft folder will appear when ready. If you still cannot find it, make sure you are in the Roaming folder, not AppData itself — the path should show C:\Users\[YourUsername]\AppData\Roaming in the address bar.

Finding the folder on Mac

On Mac, open Finder from your dock. Press Command + Shift + G to open the "Go to Folder" dialog. Type ~/Library/process Support and press Enter. Look for a folder named minecraft (newer versions do not use the dot prefix). Double-click it to open it.

If you have an older Mac installation, the folder may be named .minecraft with a dot. If you cannot find either name, make sure you typed the path correctly — the tilde (~) represents your home directory. You can also navigate manually by opening Finder, clicking the Go menu, selecting Library, then opening process Support by hand, though the keyboard shortcut is faster.

Finding the folder on Linux

On Linux, open your file manager (Files, Nautilus, Dolphin, or whatever your distribution uses). Press Ctrl + H to show hidden files — this toggles the visibility of files and folders that start with a dot. Navigate to your home directory if you are not already there, and look for the .minecraft folder.

If you prefer the terminal, open it and type cd ~/.minecraft to jump directly into the folder. Type ls -la to see all the files and folders inside. This method works on any Linux distribution and does not require you to enable hidden files in the file manager.

What you will find inside the folder

The .minecraft folder contains several important subdirectories. The saves folder holds all your worlds — each world is a separate folder inside it. The mods folder is where you place mod files if you use a mod loader like Forge or Fabric. The resourcepacks folder stores texture packs and resource packs you have downloaded.

You will also see launcher_profiles.json, which stores your launcher settings and installed versions. The versions folder contains the actual game files for each Minecraft version you have installed. Do not delete or move these files unless you know what you are doing — corrupting them will break your installation.

Backing up your worlds and settings

The easiest backup method is to copy the entire .minecraft folder to an external drive or cloud storage service like Google Drive, OneDrive, or Dropbox. Right-click the folder, select Copy, navigate to your backup location, and paste it there. This preserves everything: your worlds, mods, resource packs, and launcher settings.

If you only want to back up your worlds, copy just the saves folder instead. This takes up much less space and is faster to restore if something goes wrong. Do this regularly — before you install a major mod or update, or straightforward once a month if you play frequently.

Troubleshooting if you cannot find the folder

If the folder does not exist yet, create it yourself. On Windows, navigate to AppData\Roaming, right-click in the empty space, select New > Folder, and name it .minecraft (with the dot). On Mac or Linux, use the same process in the correct directory, or use the terminal command mkdir ~/.minecraft.

If you have installed Minecraft from the Microsoft Store on Windows, the folder location is different — it lives in C:\Users\[YourUsername]\AppData\Local\Packages\Microsoft.MinecraftUWP_8wekyb3d8bbwe\LocalState\games\com.mojang. For the Java Edition, use the AppData\Roaming path described above. Check which version you own by looking at your Start menu or Applications folder.

Frequently Asked Questions

Can I move the .minecraft folder to a different location?

Yes, but the launcher needs to know where it is. In the Minecraft Launcher, click Installations, then click the three dots next to your version and select Edit. Change the Game Directory field to point to your new folder location. The launcher will look there instead of the default path.

Is it safe to delete files inside the .minecraft folder?

It depends on the file. Deleting worlds inside the saves folder removes only that world. Deleting the versions folder removes installed game versions, which you can reinstall from the launcher. Never delete launcher_profiles.json unless you want to reset all your launcher settings. When in doubt, back up the entire folder first.

Why is the folder hidden by default?

Hidden files and folders (those starting with a dot) are a convention on Mac and Linux to keep system and process files out of the way. Windows uses a hidden attribute instead. This prevents accidental deletion or modification of important files by users who are not looking for them.

Do I need to close Minecraft before editing files in the .minecraft folder?

Yes. The launcher and game lock certain files while running. Close the launcher and exit any running game before you add, remove, or edit files. If you modify files while the game is open, your changes may be overwritten or cause crashes.

What should I do if I accidentally deleted my .minecraft folder?

If you have a backup, restore it from there. If not, the folder will be recreated the next time you launch Minecraft, but your worlds and settings will be gone. This is why regular backups matter — copy your .minecraft folder to cloud storage or an external drive at least once a month.