> ## Content Index
> Fetch the complete content index at: https://optifinepro.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# How to install OptiFine in Minecraft and where the file goes
- URL: https://optifinepro.com/install-optifine-minecraft/
- Published: 2026-11-27T14:20:13.000Z
- Updated: 2026-12-03T16:33:54.000Z
- Description: Run your exact Minecraft: Java Edition version once, open the matching OptiFine JAR and click Install. Then select OptiFine in Minecraft Launcher. On compatible Forge, put the intact JAR in that installation's mods folder and launch Forge.
- Author: Tom Fletcher
- Tags: Installing OptiFine

Get the [OptiFine JAR for your exact Minecraft: Java Edition version](https://optifine.net/downloads?ref=optifinepro.com). For a [standalone install](#standalone-install), run that Minecraft version once, open the JAR with Java, click **Install** and launch **OptiFine** from Minecraft Launcher. With [compatible Forge](#forge-install), put the intact JAR in that installation's `mods` folder and launch Forge. Open **Options > Video Settings** in the game to check that OptiFine loaded. If the installer stays closed, [check what Java reports](#jar-does-not-open).

## Match the Minecraft version before choosing a file

In Minecraft Launcher, open **Minecraft: Java Edition > Installations**. On the installation you want to use, open the three-dot menu, select **Edit** and read the **Version** field. For a clean profile, [create a new installation](https://help.minecraft.net/hc/en-us/articles/23431114561037-Troubleshooting-Launching-Minecraft-from-the-Minecraft-Launcher?ref=optifinepro.com) and select the version from the **Version** list. Copy the full number. In the [OptiFine catalog](https://optifine.net/downloads?ref=optifinepro.com), click **Show all versions** to reveal builds beyond the first few rows. If the launcher shows `1.21.1`, scroll to that exact Minecraft heading.

For example, the 1.21.11 row lists **OptiFine HD U J9**, with **Forge 61.0.8** beside it. Its file is `OptiFine_1.21.11_HD_U_J9.jar`. The [J9 changelog confirms that Forge pairing](https://optifine.net/changelog?f=OptiFine%5F1.21.11%5FHD%5FU%5FJ9.jar&ref=optifinepro.com). This guide uses J9 to make the file moves concrete; use the row for your own Minecraft version.

Pick a release for your exact game version when the catalog offers one. If it has previews only, expand **\+ Preview versions** and read the selected build's changelog for feature limits. If the full catalog has no entry for your version, keep playing without OptiFine or make a separate installation for a supported version. Back up an existing world before you try to open it in an older Minecraft version. The Forge column belongs to that exact JAR. A row marked **N/A** lists no Forge pairing.

These files work with Java Edition. [Bedrock Edition on Windows, phones and consoles](https://optifinepro.com/optifine-bedrock/) has no OptiFine build. On Fabric, [OptiFabric is a separate bridge](https://prismlauncher.org/wiki/getting-started/installing-optifine/?ref=optifinepro.com#fabric) with its own version and mod limits. Prism's [Quilt notes](https://prismlauncher.org/wiki/getting-started/installing-optifine/?ref=optifinepro.com#quilt) list no known working setup. Use the Forge steps below only with a Forge build paired with your OptiFine JAR.

## Download the intact JAR from optifine.net

On the matching row, I'd use **(Mirror)**: it opens the download page on optifine.net, while the main Download link passes through an advertising link. Click **Download** on that build's page, then check the saved filename. The [J9 download page names the exact JAR](https://optifine.net/adloadx?f=OptiFine%5F1.21.11%5FHD%5FU%5FJ9.jar&ref=optifinepro.com), so an unrelated executable or browser extension isn't the expected file.

Keep the JAR intact. You don't need to unpack it into the game's files. OptiFine's [copyright terms require advance written permission for public redistribution](https://optifine.net/copyright?ref=optifinepro.com), and its FAQ applies a permission requirement to modpacks. Download your own copy from the developer rather than taking a re-upload from a mod bundle or a look-alike site.

## Install it on its own in Minecraft Launcher

Use this route when you want OptiFine without Forge. You'll need the official Minecraft Launcher, the matching plain Minecraft version, and a Java runtime that can open the downloaded JAR.

1. **Start the matching plain Minecraft version once.** For the J9 example, select a 1.21.11 installation, play to the title screen, then quit the game. The [community-maintained OptiDocs installation instructions](https://optifine.readthedocs.io/install%5Fvanilla.html?ref=optifinepro.com) put this step before the installer: the matching vanilla version must already be installed and have run.
2. **Open `OptiFine_1.21.11_HD_U_J9.jar`.** Find it in your downloads folder on Windows, macOS or Linux. The expected result is the OptiFine installer window. If double-clicking opens an archive, browser or text editor, stop at the Java checks below.
3. **Check Folder, then click Install.** Use the Minecraft folder that contains your installed `versions` directory. If the installer can't find Minecraft, start the exact vanilla release again and check the folder it is looking in. The [standalone installation steps](https://optifine.readthedocs.io/install%5Fvanilla.html?ref=optifinepro.com) finish with a new OptiFine profile in Minecraft Launcher. Wait for the installer's success dialog before you close it.

[![OptiFine HD Ultra J9 installer for Minecraft 1.21.11, with Folder and the Install, Extract and Cancel buttons.](https://storage.ghost.io/c/32/e6/32e6ee7b-5f4d-4638-b645-87874bcd9fde/content/images/2026/11/a01-installer-j9-20261126.webp)](https://storage.ghost.io/c/32/e6/32e6ee7b-5f4d-4638-b645-87874bcd9fde/content/images/2026/11/a01-installer-j9-20261126.webp?ref=optifinepro.com)

Check Folder, then click Install.

1. **Reopen Minecraft Launcher and play OptiFine.** Choose the OptiFine installation in the selector next to Play, then click Play. Launching the plain 1.21.11 installation again will leave you in vanilla Minecraft.

[![OptiFine 1.21.11 J9 selected to the left of the Play button in Minecraft Launcher.](https://storage.ghost.io/c/32/e6/32e6ee7b-5f4d-4638-b645-87874bcd9fde/content/images/2026/11/a01-launch-j9-20261126.webp)](https://storage.ghost.io/c/32/e6/32e6ee7b-5f4d-4638-b645-87874bcd9fde/content/images/2026/11/a01-launch-j9-20261126.webp?ref=optifinepro.com)

Select OptiFine in the picker next to Play.

If OptiFine isn't visible under Installations, enable the **Modded** filter. The launcher separates Releases, Snapshots and Modded installations. Check the selected installation's version before opening a world.

### If the JAR won't open

Open a terminal in the folder containing the download and run `java -jar "OptiFine_1.21.11_HD_U_J9.jar"`. Substitute your exact filename. [Java's \-jar option](https://docs.oracle.com/javase/tutorial/deployment/jar/run.html?ref=optifinepro.com) starts the installer, where you can click **Install**.

Run `java -version` if the command fails. If the terminal can't find Java, choose a runtime for your operating system and processor from [Eclipse Temurin](https://adoptium.net/temurin/releases/?ref=optifinepro.com), follow [Adoptium's setup steps](https://adoptium.net/installation/?ref=optifinepro.com) and open a new terminal. If you get `Unable to access jarfile`, check the filename and the folder you're in. If the installer opens from the terminal, you can finish there even if double-click still opens another app. If the command leaves you stuck, follow the [OptiFine JAR checks for your exact symptom](https://optifinepro.com/open-optifine-jar-file/).

## Add it to an existing Forge installation

Use this route after Forge reaches the title screen on its own. Start with the Forge build printed beside the OptiFine entry. For this example, use Minecraft 1.21.11 and Forge 61.0.8 with J9\. If your modpack calls for a different Forge build, leave the pack as it is until you've found an OptiFine JAR that the catalog pairs with it. If the Forge profile does not exist yet, start with [the separate Forge installation walkthrough](https://optifinepro.com/install-optifine-with-forge/).

Keep a backup of your worlds before changing a modded installation. The [OptiFine FAQ says to install OptiFine last](https://optifine.net/faq?ref=optifinepro.com), with exceptions for mods explicitly designed to follow it. For this route, put Forge in place first, confirm it starts, then add OptiFine.

1. **Start that Forge installation once, then quit the game.** Forge creates `mods` under its game directory if the folder is missing; its [game-directory path definitions](https://raw.githubusercontent.com/MinecraftForge/MinecraftForge/1.21.11/fmlloader/src/main/java/net/minecraftforge/fml/loading/FMLPaths.java?ref=optifinepro.com) make that relationship explicit.
2. **Open the installation's game directory.** In Minecraft Launcher > Installations, use [the folder icon on the Forge installation](https://help.minecraft.net/hc/en-us/articles/4409159214605-How-to-Uninstall-Minecraft-Java-Edition?ref=optifinepro.com). If its Game directory field uses a custom path, that path is the one that matters. In another launcher, open the selected instance's game folder through that launcher.
3. **Put `OptiFine_1.21.11_HD_U_J9.jar` inside `mods`.** The developer's Forge method uses the same intact JAR you downloaded. For a default game directory, the [Minecraft Wiki's operating-system locations](https://minecraft.wiki/w/.minecraft?ref=optifinepro.com) give these destinations:  
  - Windows: `%APPDATA%\.minecraft\mods\OptiFine_1.21.11_HD_U_J9.jar`
  - macOS: `~/Library/Application Support/minecraft/mods/OptiFine_1.21.11_HD_U_J9.jar`
  - Linux: `~/.minecraft/mods/OptiFine_1.21.11_HD_U_J9.jar`  
A custom game directory or managed instance overrides these defaults.
4. **Launch Forge again.** Choose the Forge installation, not the standalone OptiFine installation. The loader should now pick up the JAR from its own `mods` folder.

Those are default paths, not three folders to populate. Use only the folder belonging to the installation you launch. In Prism Launcher, for example, **Edit > Mods > Add file** adds the downloaded JAR to the selected instance; its standalone installation method is different from the official launcher's Install button.

## Confirm OptiFine loaded in Video Settings

At the title screen, open **Options > Video Settings**. Look for OptiFine buttons such as **Shaders...**, **Quality...**, **Details...**, **Performance...** and **Other...**. These labels appear in [OptiFine's English language definitions](https://raw.githubusercontent.com/sp614x/optifine/master/OptiFineDoc/assets/minecraft/optifine/lang/en%5Fus.lang?ref=optifinepro.com); its FAQ also names routes through Details and Other. The button positions can vary by version. Open **Shaders...** if it is present. You can confirm the menu opens without installing a shader pack.

[![Right column of OptiFine Shaders settings, with Antialiasing, Render Quality and Shadow Quality controls.](https://storage.ghost.io/c/32/e6/32e6ee7b-5f4d-4638-b645-87874bcd9fde/content/images/2026/11/a01-shaders-j9-20261126.webp)](https://storage.ghost.io/c/32/e6/32e6ee7b-5f4d-4638-b645-87874bcd9fde/content/images/2026/11/a01-shaders-j9-20261126.webp?ref=optifinepro.com)

The Shaders menu confirms OptiFine is active. Its render controls appear on the right.

If the extra controls are missing, check the installation you selected in Minecraft Launcher. In a standalone setup, select **OptiFine**. In a Forge setup, check that the intact JAR sits in the selected installation's `mods` folder and that its full Minecraft version matches the installation. If Forge stops launching after you add the JAR, move it out of `mods` and check that the original setup starts.