Installing OptiFine on Windows
26.1.2OptiFine is a Minecraft Java Edition mod that boosts performance, adds shader support, and unlocks fine-grained video settings. It installs as a custom Minecraft profile: you download one .jar file, run it, click Install, then launch the OptiFine profile from the Minecraft Launcher. The whole process usually takes under two minutes.
Choose your OS
Pick your operating system if you'd like to switch guides:
Prerequisites
Before you start, make sure you have the following ready:
- Minecraft Java Edition installed and launched at least once for the version you want to mod. The first launch downloads the game files OptiFine patches into.
- Java — the Minecraft Launcher ships a compatible Java runtime, so launching Minecraft once is usually enough. See the Installing Java guide if the installer won't open.
- The right OptiFine build for your Minecraft version. Grab the matching
.jarfrom the Downloads page.
1. Download OptiFine
Head to the Downloads page and grab the .jar that matches your Minecraft version. Save it somewhere easy to find, like the Downloads folder.
2. Run the installer
Double-click the .jar file. If Windows opens it in an archive tool (WinRAR, 7-Zip) instead of Java, right-click the file, choose Open with, then Java(TM) Platform SE binary. If Java isn't offered, install it first or launch Minecraft once so the launcher's bundled runtime is available.
3. Click Install
The OptiFine installer window opens. It auto-detects your Minecraft folder (%appdata%\.minecraft). Click Install and wait for the confirmation dialog.
4. Launch the OptiFine profile
Open the Minecraft Launcher, go to Installations, and select the new OptiFine profile (usually named OptiFine 1.XX). Click Play.
Verify the install
Launch the OptiFine profile from the Minecraft Launcher. On the main menu, open Options → Video Settings. If you see extra tabs like Shaders, Details, and Performance, OptiFine is running.
Troubleshooting
The .jar file does not open
The system is trying to open the file with an archive tool instead of Java. Right-click the file, choose Open with, and pick the Java runtime. If Java isn't listed, install it first — see the Installing Java guide.
OptiFine profile does not appear
Open the Minecraft Launcher, go to Installations, and toggle the Modded filter on. If the profile is still missing, re-run the OptiFine installer.
Wrong Minecraft version
OptiFine builds are tied to a specific Minecraft version. Double-check the version on the Downloads page and use the matching .jar.