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.

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.

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:
| Minecraft | OptiFine file | Listed Forge |
|---|---|---|
| 1.21.4 | J3 release | 54.0.34 |
| 1.21.4 | J4 pre2 preview | 54.1.0 |
| 1.21.3 | J2 release | 53.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.

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

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.


