OptiFine for Minecraft 1.12.2: G5 release, G6 preview and Forge

Download G5 for Minecraft 1.12.2, or G6 pre1 for its macOS crash fix. Both list Forge 14.23.5.2847.

A zigzag path of square stones over blue water and mist.

Download OptiFine HD U G5 for Minecraft: Java Edition 1.12.2. Try the G6 pre1 preview if you hit the macOS crash it fixes with newer JDKs. OptiFine lists Forge 14.23.5.2847 for both files.

Read the Minecraft version before the G5 label

On the official OptiFine catalog, click Show all versions and find Minecraft 1.12.2. G5 is on the release row. Open + Preview versions to find G6 pre1. Choose (Mirror) on your row and click Download on the build's page.

Expanded Minecraft 1.12.2 catalog with G6 pre1 above G5 and the G5 Mirror link highlighted.
G5 is on the release row below the preview.
  • G5 release OptiFine_1.12.2_HD_U_G5.jar
  • G6 pre1 preview preview_OptiFine_1.12.2_HD_U_G6_pre1.jar

Search can also lead to E3 and C5. Those are older 1.12.2 builds. The catalog lists Forge #2795 for E3 and Forge N/A for C5. Look at the complete Minecraft version for G5 as well:

What G6 pre1 changes

The G6 pre1 changelog identifies the macOS crash with newer JDKs and lists Forge #2847. I'd keep a working G5 profile and try the preview in a separate 1.12.2 installation if that fix matters to you.

Match Forge before changing the pack

On the Forge downloads page for Minecraft 1.12.2, open Show all Versions and find 14.23.5.2847. The Forge page names 14.23.5.2864 as Latest and 14.23.5.2859 as Recommended. For the pairing listed with G5 or G6 pre1, use the 2847 row. For RLCraft and other established packs, use the existing Forge 1.12.2 pack instructions before changing the loader.

Forge 1.12.2 listings with 14.23.5.2847 highlighted above the 14.23.5.2846 row.
For the Forge build OptiFine lists, use the 14.23.5.2847 row.

Keep an existing pack's required Forge version. A separate instance lets you try the listed combination without replacing the loader used by the rest of your mods.

In Prism Launcher, copy the working instance with Minecraft closed and give the copy a distinct name. Check its Minecraft version and Forge component in Edit > Version. Leave the symbolic and hard link options off when you need independent files.

In the matching copy, choose Edit > Mods > Add file and select the intact G5 or G6 pre1 JAR. The Prism instructions put the file straight into the selected instance.

Add file highlighted on the right side of the Prism Launcher Mods tab.
Choose Add file in the copied Prism instance, then select the 1.12.2 JAR.

Start the copy. If adding the JAR stops it from launching, use the checkbox in Prism's Mods tab to disable OptiFine in the copy and check whether it starts again. With Forge in Minecraft Launcher, put the intact JAR in the selected installation's mods folder and start that Forge profile.

Install OptiFine without Forge

Launch plain Minecraft 1.12.2 once and quit. Open the G5 or G6 pre1 JAR with Java, choose Install and select the new OptiFine installation in Minecraft Launcher before pressing Play. Follow the standalone OptiFine installation steps if you need help finding the new launcher profile.