OptiFine 1.16.5: the G8 download and its Forge match
Pick OptiFine G8 for Minecraft 1.16.5 and use Forge 36.1.0 for its documented pairing. If your pack requires Forge 36.2.x, test the G8 file in a separate copy.

For Minecraft: Java Edition 1.16.5, download the OptiFine HD U G8 release. Its documented pairing is Forge 36.1.0. If your modpack requires a 36.2.x build, keep its loader and try G8 in a copy of that instance.
Choose G8 on the Minecraft 1.16.5 row
Open Show all versions in the official OptiFine catalog and find Minecraft 1.16.5. Click (Mirror) on G8. The download page names OptiFine 1.16.5 HD U G8. Check that the file you saved is OptiFine_1.16.5_HD_U_G8.jar.

Search can take you straight to older releases. Under + More, G7 lists Forge 36.0.42 and G6 lists 36.0.0. I would start with G8 unless your pack specifically needs one of those earlier pairs. The G8 changelog includes fixes for shaders with Forge, geometry shaders on Mac M1 and input lag with lazy chunk loading.
A result named Mandatory Optifine is a separate utility that shows an installation reminder. Get the original G8 JAR from optifine.net. The OptiFine distribution terms require advance written permission to redistribute it publicly.
Set up Forge 36.1.0 for a separate instance
On Forge’s Minecraft 1.16.5 download page, expand Show all Versions and choose Installer on row 36.1.0. Open the Forge installer JAR, click Install client and launch the resulting Forge installation once.

In Minecraft Launcher, open Installations and use the folder icon on the Forge installation you play. Follow the Forge installation route by putting the intact G8 JAR in that game directory’s mods folder. If you use a modpack app, open the selected instance’s folder in that app. Keep shader packs in shaderpacks.

Launch Forge and check Options > Video Settings for the OptiFine controls. For a pack on Forge 36.2.x, change one file in the copy and read its logs/latest.log if the game fails. Removing G8 from the copy gives you a simple check against the working pack. An OptiFine issue for Forge 36.2.2 records a texture problem on one setup, where Forge 36.1.0 and standalone worked for the reporter.
Use the standalone installer if you play without Forge
Run plain Minecraft 1.16.5 once until the title screen, then quit. Open the G8 JAR, choose Install and select its OptiFine profile in Minecraft Launcher, following the standalone launcher steps. Mojang’s 1.16.5 game manifest specifies Java 8 for the game. Check the terminal’s Java separately if opening the JAR fails. Follow the standalone launcher walkthrough if you still need to create the matching profile.
For shaders, choose Options > Video Settings > Shaders… > Shaders Folder. Use a pack that supports 1.16.5 and choose it from the Shaders menu. The shader installation instructions cover the supported pack formats.
Match earlier Minecraft 1.16 versions by full number
Minecraft 1.16.4 G7 pairs with Forge 35.1.37. The same G7 label on the 1.16.5 row points to a different JAR and another Forge build. The catalog lists 1.16.3 G5 with 34.1.42, 1.16.2 G5 with 33.0.61 and 1.16.1 G2 with 32.0.98. Plain Minecraft 1.16 has no listed build. For another Minecraft series, compare the full OptiFine version table.
The changelogs for 1.16.3 G5, 1.16.2 G5 and 1.16.1 G2 say antialiasing and anisotropic filtering are unavailable in those builds. Before updating a world to use a different build, check the server and mod versions and make a world backup.


