OptiFine for Minecraft 1.21.4 and 1.21.3

Download J3 for Minecraft 1.21.4 or choose J4 pre2 for its filtering fix and Forge 54.1.0. Use J2 if your launcher shows 1.21.3.

Stepped stone landings beside a blue alpine lake, with warm light on the lower landing.

Use OptiFine J3 for Minecraft Java 1.21.4. It is the release build and lists Forge 54.0.34. I’d try the J4 pre2 preview if your setup needs Forge 54.1.0 or its anisotropic filtering fix. Use J2 if your launcher shows 1.21.3.

Download the file for your launcher version

On the OptiFine downloads page, scroll to the bottom and click Show all versions. Find Minecraft 1.21.4. J3 sits on the release row. Expand + Preview versions to find J4 pre2. For J2, scroll to the separate 1.21.3 heading.

OptiFine downloads for Minecraft 1.21.4 with the preview section expanded and the J3 Mirror outlined.
With Preview versions expanded, J3 is the release row below J4 pre1 and J4 pre2.

The (Mirror) link on your row opens a page with a Download button. Check the filename before opening the JAR. The three builds covered here have these pairings:

MinecraftOptiFine fileListed Forge
1.21.4J3 release54.0.34
1.21.4J4 pre2 preview54.1.0
1.21.3J2 release53.0.25

When to try J4 pre2

The report linked from J4 pre2 shows black patches on blocks with anisotropic filtering on J3 pre11. If you see the same symptom, try J4 pre2 in a copy of your installation and revisit the same spot at the same filtering level. The J3 release notes separately record a fix for blurry textures with AA and AF and changes to chunk loading.

Install the JAR you selected

Standalone in Minecraft Launcher

Launch the exact vanilla version once and quit. Open the matching OptiFine JAR, choose Install and select the new OptiFine installation in Minecraft Launcher. The standalone installation guide shows the installer sequence. If this is your first OptiFine profile, follow the launcher installation walkthrough for the profile check. For a Forge profile, use the Forge installation walkthrough to locate the game directory.

In an installation that uses Forge

Find 54.0.34 or 54.1.0 under Show all Versions on the Forge page for 1.21.4. For J2, find 53.0.25 on the 1.21.3 Forge page.

If you’re setting up Forge from scratch, run that Forge installer and select Install client.

Windows Forge installer with Install client selected, a .minecraft path and the OK button.
In the Forge installer, select Install client and confirm the launcher folder.

In Minecraft Launcher, open Installations and use the folder icon on the Forge row to open its game directory.

Play, folder and more options controls at the right of a Forge installation row.
In Minecraft Launcher, open the folder on the Forge installation row.

Put the OptiFine JAR in mods inside that directory. Start the Forge installation and open Options → Video Settings. Look for Shaders and Quality to confirm OptiFine loaded.

If a modpack already pins another Forge version, leave that installation in place and compare the documented pair in a separate game directory. The OptiFine Forge installation guide also explains where to find the right mods folder in MultiMC.