What is OptiFine and what does it change in Minecraft?

OptiFine adds shaders, zoom, dynamic lights and graphics controls to Minecraft: Java Edition. Check what the mod changes and choose the JAR for your exact game version and loader.

A stepped dark cube ridge beside still blue water at dusk, with one raised outcrop lit orange by the low sun
One outcrop catches the low sun while the cube ridge recedes into blue haze.

OptiFine is a free graphics and optimization mod for Minecraft: Java Edition. It adds shader support, zoom, dynamic lights and more controls in Video Settings. Match the OptiFine JAR to your exact Minecraft version and loader. Bedrock Edition uses its own graphics options and packs.

What you can do with OptiFine

Load a shader pack

Open Options > Video Settings > Shaders…. Use Shaders Folder to place a compatible pack in that installation's shaderpacks folder, then select it in the game. The OptiFine shader guide explains the supported file layout. Try the bare OptiFine installation first if you want to see what a new pack changes.

Right column of OptiFine Shaders settings, with Antialiasing, Render Quality and Shadow Quality controls.
The OptiFine Shaders menu applies the pack and exposes its shader options.

Light nearby blocks while you hold a torch

In J9 for Minecraft 1.21.11, Dynamic Lights sits on the main Options > Video Settings screen. It lets a held or dropped light source light up what your client draws nearby. Try Fast first if you want the effect with less frequent updates, or Fancy for smoother updates. The Dynamic Lights documentation describes the modes, and the developer's J9 troubleshooting thread directs players to that setting.

Video Settings panel with the Dynamic Lights control beside Quick Info, above the Shaders and Quality row.
In the main Video Settings screen, find Dynamic Lights. Fancy updates the effect more frequently than Fast.

Join glass and bookshelf textures

On J9, use Video Settings > Quality… > Connected Textures. The J9 file includes rules for ordinary glass and bookshelves. Resource packs can supply more rules and their own textures through OptiFine's Connected Textures format. Natural Textures is the adjacent control for a separate effect.

Quality Settings panel showing Connected Textures, Natural Textures, Custom Sky and Custom Items.
Connected Textures and Natural Textures have separate controls in Quality.

To change the zoom shortcut, look for Zoom in Minecraft’s key bindings. It works in the OptiFine installation before you install a shader or resource pack.

Check frame rate with the same settings

OptiFine adds controls that can help on a particular setup. Higher render distance, antialiasing and some resource pack features can cost frames, as the developer's performance FAQ explains. I'd start with your usual world, resolution, render distance and resource pack. Compare the same view with vanilla and OptiFine, then change a single setting to see what it costs.

For a frame-time graph in J9, enable Lagometer under Video Settings > Other… and open the FPS and TPS charts with F3+2. Use Reset Video Settings in the same menu when you want to return to the defaults.

Choose the build for your installation

In OptiFine_1.21.11_HD_U_J9.jar, 1.21.11 is the game version, HD U is the Ultra edition and J9 is the build. Use the official catalog to find your exact version. I would pick a release first when the catalog offers one. Use a preview when it contains a needed fix or is the only file for that version.

  • Minecraft Launcher. Start the exact vanilla version once and quit. Open the matching JAR, choose Install and launch the resulting OptiFine installation.
  • Forge. Match the catalog's Forge build and place the intact JAR in that installation's mods folder. The 1.21.11 J9 row lists Forge 61.0.8.
  • NeoForge. Read the changelog for the exact JAR. For example, 1.20.1 I6 names NeoForge 47.1.56.
  • Fabric. If you need the original JAR, look for an OptiFabric Reforged pairing that names your Minecraft and OptiFine builds. For a new shader setup I would start with Iris and its Sodium dependency.

Download for free or donate for a cape

The official OptiFine files are free to download. The donation page explains how to activate a cape for a Minecraft username. The distribution terms require permission in writing before you share the JAR publicly, including in a published modpack.