What OptiFine is and where to get it
OptiFine is a Minecraft mod that improves performance and adds graphics options. It lets you run the game faster on older computers, add shader packs for better visuals, and tweak settings like render distance and lighting without touching the base game files.
OptiFine comes from a single developer and is distributed through the official OptiFine website at optifine.net. This is the only place you should download it from — third-party sites that claim to host OptiFine often bundle malware or outdated versions. The mod is free and does not require payment.
Before you start, make sure you have Minecraft Java Edition installed and that you have run it at least once. OptiFine does not work with Minecraft Bedrock Edition (the Windows 10/11 version or console versions). You also need Java installed on your computer — Minecraft Java Edition includes Java, but OptiFine's installer sometimes needs a separate copy to work.
Key Takeaways
- Download OptiFine only from optifine.net; other sites distribute malware or broken versions.
- OptiFine requires Minecraft Java Edition and Forge or Fabric, which are mod loaders that sit between OptiFine and the game.
- The installer will ask you to choose a mod loader version; pick the one that matches your Minecraft version (1.21.4 in this case).
- After installation, OptiFine appears as a new profile in the Minecraft launcher; select it before launching the game.
- If the game crashes on launch, you likely have a conflicting mod or Java version — uninstall OptiFine and reinstall it with the correct Java path.
Download the OptiFine installer for version 1.21.4
Go to optifine.net in your web browser. On the homepage, you will see a list of Minecraft versions. Scroll down or search for version 1.21.4 and click the download link next to it. A new page will open showing the OptiFine preview version and the recommended stable version for that Minecraft release.
Click the download button for the stable version (not the preview). Your browser will download a file named something like OptiFine_1.21.4_HD_U_I1.jar. Save this file to a folder you can find easily, such as your Downloads folder or Desktop. Do not run it yet.
Before you proceed, you need to decide whether to use Forge or Fabric as your mod loader. Forge is older and more widely compatible with mods; Fabric is newer and lighter on system resources. For most players, Forge is the safer choice. You will need to install your chosen mod loader before OptiFine will work.
Install Forge or Fabric (the mod loader)
OptiFine needs a mod loader to function. Think of it as a bridge between OptiFine and Minecraft. Go to minecraftforge.net (for Forge) or fabricmc.net (for Fabric). On the Forge site, click "Downloads" and find version 1.21.4 in the list. Download the installer file (it will be named something like forge-1.21.4-installer.jar).
Once downloaded, double-click the installer. A window will open. Make sure "Install client" is selected, then click "Install". Forge will create a new Minecraft profile automatically. Wait for the installer to finish — this usually takes 30 seconds to two minutes.
If you chose Fabric instead, the process is similar but slightly different. Download the Fabric installer from fabricmc.net, run it, select your Minecraft version (1.21.4), and click "Install". Fabric will also create a launcher profile for you.
Run the OptiFine installer
Now that your mod loader is installed, double-click the OptiFine_1.21.4_HD_U_I1.jar file you downloaded earlier. A window will open asking you to select an installation target. You will see options like "Forge 1.21.4" or "Fabric 1.21.4" depending on which loader you installed.
Click the option that matches the mod loader you just set up. Then click "Install". The installer will extract OptiFine into the correct folder. You should see a message saying "Installation successful" within a few seconds.
If the installer does not open when you double-click it, your computer may not have Java set up correctly. Right-click the OptiFine jar file, select "Open with", and choose Java or javaw.exe from the list. If Java does not appear, you may need to install it separately from java.com.
Launch Minecraft with OptiFine
Open the Minecraft Launcher. In the profile dropdown (usually in the bottom left), you should now see a new profile for OptiFine — it might be called "Forge 1.21.4" or "OptiFine 1.21.4" depending on your mod loader. Select this profile and click "Play".
Minecraft will launch with OptiFine active. The first launch may take longer than usual as the game prepares shader and texture files. Once you are in the main menu, open Settings and look for a new button called "Video Settings" or "Shader Settings" — this is OptiFine's control panel. From here you can adjust render distance, enable shaders, and tweak graphics options.
If the game crashes on launch, the most common cause is a conflict between OptiFine and another mod, or Java version mismatch. Uninstall OptiFine by deleting the OptiFine jar from your mods folder (usually at .minecraft/mods/), then reinstall it and make sure you selected the correct mod loader version during installation.
Troubleshooting common problems
If OptiFine does not appear in your launcher profiles after installation, the installer may have failed silently. Try running the OptiFine installer again and watch for any error messages. If you see a message about Java, close the installer and install Java from java.com, then try again.
If the game runs but OptiFine features do not work (you cannot find Video Settings or shaders do not load), you may have installed OptiFine without a mod loader. Uninstall OptiFine, install Forge or Fabric first, then run the OptiFine installer again and select your mod loader as the target.
If you see a black screen or the game freezes after launching, a shader pack may be causing the problem. Delete any .zip files in your shaderpacks folder (at .minecraft/shaderpacks/), then launch again. You can add shaders back one at a time to find which one is causing the crash.
Frequently Asked Questions
Can I use OptiFine with other mods?
Yes, OptiFine works alongside other mods as long as they do not conflict. Mods that change rendering or graphics often conflict with OptiFine. If the game crashes when you add a new mod, try removing it and launching OptiFine alone to confirm OptiFine is not the problem.
Will OptiFine work with Minecraft Bedrock Edition?
No. OptiFine only works with Minecraft Java Edition. Bedrock Edition (Windows 10/11, console, mobile) uses a different code structure and does not support OptiFine. You need Java Edition to use this mod.
Do I need to download OptiFine again if I update Minecraft?
Yes. Each Minecraft version needs its own OptiFine build. When Minecraft updates to 1.21.5 or later, you will need to download the OptiFine version for that release from optifine.net and install it separately.
Is OptiFine safe to download?
OptiFine from optifine.net is safe. Avoid downloading OptiFine from any other website — third-party hosts often include malware or viruses. Stick to the official site only.
Why is my game running slower with OptiFine installed?
OptiFine usually improves performance, but if your game is slower, you may have a shader pack enabled or graphics settings turned up too high. Open Video Settings and lower render distance, disable shaders, and turn off advanced graphics options. Start with low settings and increase them gradually to find what your computer can handle.