What OptiFine does and why you might want it
OptiFine is a mod that changes how Minecraft renders graphics, usually making the game run faster and look better at the same time. It does this by optimizing the code that draws everything on screen — the terrain, water, mobs, particles — so your graphics card and processor work more efficiently. If your device struggles to run Minecraft smoothly, or if you want to use texture packs and shaders that need OptiFine to work, this mod is the most common solution.
OptiFine is free and made by a single developer. It works with the standard Java Edition of Minecraft on Windows, Mac, and Linux. It does not work with Bedrock Edition (the version on consoles, phones, and the Windows Store). Once installed, OptiFine adds a new settings screen in the game where you can adjust render distance, chunk loading, particle effects, and dozens of other graphics options without touching any files by hand.
Key Takeaways
- OptiFine requires the Java Edition of Minecraft and the Java Runtime Environment installed on your device before you start.
- read OptiFine from the official website only — optifine.net — and run the installer file to add it to your Minecraft launcher.
- After installation, create a new Minecraft profile that uses the OptiFine version, then launch the game from that profile.
- OptiFine settings appear in a new button on the main menu; start with the default settings and change only what you need to improve performance.
Check what version of Minecraft you have
OptiFine only works with Java Edition. If you own Minecraft on Windows, Mac, or Linux and launched it from the Minecraft Launcher (the official launcher with the dirt block icon), you have Java Edition. If you bought it from the Microsoft Store, the Epic Games Store, or play on a console or phone, you have Bedrock Edition and OptiFine will not work.
Open the Minecraft Launcher and look at the bottom left corner. You should see a version number like "1.20.1" or "1.19.2". Write this number down — you will need to read the OptiFine version that matches your Minecraft version exactly.
Install Java if you do not have it
OptiFine requires the Java Runtime Environment (JRE) to run. Most devices with Java Edition already have it, but if you see an error when you try to run the OptiFine installer, you need to install Java first. Go to java.com, click the large "read Java Now" button, and run the installer. Choose the default settings and let it finish.
On Windows, you may also need to restart your device after Java installs. On Mac, Java may prompt you to install additional tools — follow those prompts and let them complete. Once Java is installed, you can run the OptiFine installer.
read OptiFine from the official website
Go to optifine.net in your web browser. On the left side of the page, you will see a list of Minecraft versions. Find the version number you wrote down earlier and click on it. A new page will load showing read links for that version.
Look for the link labeled "read" (not "read Installer" — just "read"). Click it. Your browser will read a file with a name like "OptiFine_1.20.1_HD_U_I1.jar". Save this file somewhere you can find it, like your Downloads folder. Do not run it yet.
Never read OptiFine from any website other than optifine.net. Copies posted elsewhere may contain malware or outdated versions.
Run the OptiFine installer
Find the OptiFine file you downloaded. Double-click it to open the installer. A window will appear with the heading "OptiFine Installer" and a button that says "Install". The installer will show you where it plans to install OptiFine — this should be inside your Minecraft folder, which is correct.
Click the "Install" button and wait for the message "Installation successful" to appear. This usually takes less than a minute. Close the installer window when it finishes.
Create a new Minecraft profile for OptiFine
Open the Minecraft Launcher. In the top left, you will see a dropdown menu that says "Latest Release" or shows your current profile name. Click on it and select "Create New Profile". A settings window will open.
Give the profile a name like "OptiFine" so you can tell it apart from your regular profile. In the "Version" dropdown, scroll down until you see an entry that says something like "release 1.20.1-OptiFine_HD_U_I1". Select that version. Click "Create" to save the profile.
Now when you open the launcher, make sure the OptiFine profile is selected in the dropdown before you click "Play". The first time you launch with OptiFine, the game may take longer to start while it sets itself up.
Adjust OptiFine settings in the game
Once Minecraft loads, go to Options (the gear icon on the main menu). You will see a new button labeled "Video Settings" or "OptiFine Video Settings" — click it. This opens the OptiFine settings screen where you can change graphics options.
Start with the default settings and play for a few minutes to see if performance improves. If the game still feels slow, try lowering "Render Distance" from 16 to 12 or 10 — this makes the game draw less terrain in the distance. If you see stuttering or lag spikes, lower "Max Framerate" to 60 or enable "VSync". Change only one setting at a time so you can tell which ones actually help.
OptiFine includes many advanced options like "Smooth FPS", "Chunk Updates", and "Lazy Chunk Loading" that can improve performance on slower devices. These are safe to experiment with, and you can always reset to defaults by clicking "Reset to Defaults" at the bottom of the settings screen.
Frequently Asked Questions
Will OptiFine work with my texture packs and mods?
OptiFine works with texture packs and most mods, but not all mods are compatible with each other. If you use other mods, check their documentation to see if they list OptiFine as compatible. Shaders (visual effects mods) almost always require OptiFine to work at all.
Why does my game crash when I try to launch OptiFine?
The most common cause is using the wrong OptiFine version for your Minecraft version. Make sure the version number in the OptiFine filename matches your Minecraft version exactly. If you recently updated Minecraft, you need to read a new OptiFine version for the new Minecraft version.
Can I use OptiFine on a server?
OptiFine is a client-side mod, meaning it only changes what you see on your device. You can use it on any server, including multiplayer servers and Realms. The server does not need OptiFine installed.
Does OptiFine use more or less memory?
OptiFine usually uses less memory than vanilla Minecraft because it optimizes how the game stores and draws data. If you have very little RAM available, OptiFine may still help, but you may also need to lower render distance or other settings further.
What if OptiFine makes my game look worse?
You can always uninstall OptiFine by switching back to your old profile in the launcher. Your worlds and settings will not be affected. If you want to keep OptiFine but disable specific features, go to OptiFine Video Settings and turn off individual options like "Smooth Lighting" or "Connected Textures".