OptiFine 1.20.6 Download and Forge Setup

Choose J1 pre18 for Minecraft Java 1.20.6. Find the preview in the OptiFine catalog, then use the installer or the mods folder for Forge 50.1.19.

Sunlight catches a stone bridge across a misty blue channel.

Use OptiFine HD U J1 pre18 for Minecraft: Java Edition 1.20.6. OptiFine lists three previews for this game version, and pre18 is the newest and the only one paired with Forge 50.1.19. Minecraft 1.20.6 runs on Java 21.

Find the 1.20.6 preview in the OptiFine catalog

Open the OptiFine downloads page and choose Show all versions. Find Minecraft 1.20.6 and expand Preview versions. Use Mirror on the HD U J1 pre18 row, then Download on the file page.

Minecraft 1.20.6 catalog with OptiFine J1 pre18 and Forge 50.1.19.
Use Mirror on the J1 pre18 row for Minecraft 1.20.6.

Several builds open a page titled OptiFine Download. Read the build name above the download button. The file you want is preview_OptiFine_1.20.6_HD_U_J1_pre18.jar.

OptiFine previewCatalog dateForge column
HD U J1 pre18September 27, 202450.1.19
HD U J1 pre17September 25, 2024N/A
HD U I9 pre1June 6, 2024N/A

I'd start with pre18 on a fresh 1.20.6 installation. The pre18 changelog confirms the Forge pairing and lists shader fixes, including a crash tied to missing camera orientation. Both older previews show Forge N/A. If your launcher shows 1.20.1, 1.21 or a later 1.21 point release, use the matching row in the OptiFine version finder.

Install the preview in Minecraft Launcher

  1. In Minecraft Launcher, open Installations and select release 1.20.6 for a new installation. Start it and quit at the title screen. See Minecraft's instructions for choosing a game version.
  2. Run preview_OptiFine_1.20.6_HD_U_J1_pre18.jar and choose Install in the OptiFine installer. The developer's standalone instructions show how this creates a launcher installation.
  3. Reopen Minecraft Launcher, choose the OptiFine installation for 1.20.6 and start the game.

Leave the launcher on its bundled runtime for the game. If you open the JAR from a terminal, java -version checks the separate system Java. The Minecraft 1.20.6 version metadata specifies Java 21. If the installer JAR won't open, use the OptiFine JAR guide to check the Java executable or file association.

Add OptiFine to Forge 50.1.19

Open the Forge downloads for Minecraft 1.20.6, expand Show all Versions and find 50.1.19. Use the information icon beside Installer for the direct download. The file is forge-1.20.6-50.1.19-installer.jar.

Forge 50.1.19 row in the archive with Installer underlined.
Find Forge 50.1.19 in Show all Versions and locate Installer on that row.
  1. Open the Forge 50.1.19 installer and choose Install client. Start the Forge 1.20.6 installation once and quit at the title screen.
  2. In Installations, use the folder icon on that Forge entry to open its game directory. If a modpack launcher manages your game, open the folder for that instance.
  3. Put the intact OptiFine pre18 JAR in the instance’s mods folder. Create the folder in lowercase if needed. This is the developer’s OptiFine installation method for Forge.

For an installation that uses Minecraft’s default game directory, the folder is %APPDATA%\.minecraft\mods on Windows, ~/Library/Application Support/minecraft/mods on macOS or ~/.minecraft/mods on Linux.

Folder button between Play and the three-dot menu in a Minecraft Launcher installation row.
Use the folder button for the Forge installation you plan to launch.

If your modpack pins a different Forge build, keep that pack intact. Use a separate 1.20.6 installation for the pairing of pre18 and 50.1.19.

Check which installation started

At the title screen, open Options → Video Settings and look for Shaders. If the control is missing, check the selected launcher installation. On Forge, check that the active mods folder contains a single OptiFine JAR with 1.20.6 and J1_pre18 in its name.

If Forge stops before the title screen, take the OptiFine JAR out of that test instance and launch the same Forge installation. If that starts, try pre18 on its own with Forge 50.1.19 before adding the rest of the pack. If Forge still stops, check the 1.20.6 installation and its Java executable first.