Metadata Editor

EXIF EditorEXIF ReaderRemove MetadataGuidesGlossaryAbout

Aperture (FNumber, ApertureValue, MaxApertureValue)

At a glance

ExifTool tag namesEXIF:FNumber, EXIF:ApertureValue, EXIF:MaxApertureValue
Tag ID / location0x829D (FNumber), 0x9202 (ApertureValue), 0x9205 (MaxApertureValue)
CategoryExposure
Example valuef/2.8
On metadata-editor.comShown in the EXIF reader, editable in the EXIF editor (JPEG, TIFF)

Aperture is the size of the lens opening for the shot, given as an f-number: f/2.8 lets in twice as much light as f/4. EXIF records the aperture twice, in two different units, and nearly every question about these tags comes from that.

Two tags, two units

FNumber (0x829D) is the f-number itself, stored as an unsigned rational such as 14/5 or 28/10 for f/2.8. This is the value the camera displayed.

ApertureValue (0x9202) holds the same setting in APEX units, from the Additive System of Photographic Exposure, where each full stop adds 1. The conversion is Av = 2 × log2(N), and back again N = 2^(Av/2):

f-numberAPEX Av
f/1.40.97
f/22
f/2.82.97
f/44
f/5.64.97
f/86
f/168

MaxApertureValue (0x9205) uses the same APEX scale for the widest aperture the lens can open to, which is useful for telling an f/1.8 prime from an f/4 zoom when the lens model is missing.

What ExifTool shows you

ExifTool converts APEX to an f-number before printing, and it does so even with -n, so both tags look identical in normal output. The stored APEX number only appears in verbose mode:

$ exiftool -G1 -s -FNumber -ApertureValue -MaxApertureValue photo.jpg
[ExifIFD]       FNumber                         : 2.8
[ExifIFD]       ApertureValue                   : 2.8
[ExifIFD]       MaxApertureValue                : 1.8
$ exiftool -v1 photo.jpg | grep -E "Aperture|FNumber"
  | | 0)  FNumber = 2.8 (14/5)
  | | 3)  ApertureValue = 2.970853659 (24361/8200)
  | | 4)  MaxApertureValue = 1.695993817 (13166/7763)

Some cameras write neat APEX values instead. A Canon EOS RP JPEG shot at f/16 stores ApertureValue as 524288/65536, exactly 8.

When the two disagree, believe FNumber. ApertureValue is redundant and the f-stop labels are rounded: store an exact APEX 5 for a nominal f/5.6 and ExifTool prints f/5.7, because 2^(5/2) is 5.657. Most phones have a fixed aperture per camera module, so FNumber only changes when the phone switches lenses.

Editing aperture values

The EXIF editor writes FNumber, ApertureValue and MaxApertureValue for JPEG and TIFF files. Type the f-number (2.8) in all three; ExifTool does the APEX conversion. For the wider picture of exposure tags in a JPEG file, see what EXIF data is.

Related fields

Shutter speed

EXIF stores shutter speed twice: ExposureTime (0x829A) in seconds and ShutterSpeedValue (0x9201) in APEX. Why a 1/125 shot can read 1/128 in ExifTool.

ISO

EXIF:ISO (0x8827) stores sensor sensitivity as a 16-bit number, so it tops out at 65535. How SensitivityType and RecommendedExposureIndex fill the gap.

Focal length

FocalLength (0x920A) is the real optical focal length; FocalLengthIn35mmFormat (0xA405) is the full-frame equivalent. Crop factors, phone values, ExifTool.

Lens model

How EXIF records the lens: LensModel (0xA434), LensMake (0xA433) and LensInfo (0xA432), why ExifTool can print f/0, and where LensID comes from.

Other Metadata Tools