In case you are installing Optifine into a Forge version of Minecraft, place the file into the mods folder inside Minecraft's installation directory located in: “Local Disk (C:) > Users > (Your PC Name) > AppData > Roaming > .minecraft > mods”.