Aperture is the opening in a camera lens that lets light pass through to the sensor. In everyday English, the word means any opening, such as a hole, a gap, or a slit.
In a photo file, aperture is the lens opening the camera used for that picture. The camera writes it into the EXIF data as an f-number, such as f/2.8. The EXIF data stores the f-number together with the shutter speed and the ISO setting.
Why a smaller number means a bigger opening
The f-number is the focal length of the lens divided by the diameter of the opening. When the opening gets wider, you divide by a bigger number, so the f-number gets smaller.
This is why f/2.8 is a wider opening than f/8. A lower number lets more light into the camera, and a higher number lets less light in. Photographers also call these numbers f-stops.
What the values look like
The standard f-numbers, called full f-stops, form a fixed series. Each step to a higher number lets in half as much light, and the f-number grows by a factor of about 1.4:
f/1.4,f/2, andf/2.8: wide openings that let in a lot of lightf/4andf/5.6: the middle of the seriesf/8andf/11: small openings that keep the foreground and the background sharpf/16,f/22, andf/32: very small openings that let in little light
A camera can also record values between these full f-stops, such as f/4.5. The file stores the number as a fraction of 2 whole numbers. For example, the sample file in the EXIF specification stores 4/1 for f/4.
A second tag, ApertureValue, can hold the same setting on a scale called APEX. On that scale, 4 stands for f/4 and 5 stands for f/5.6. Metadata readers such as ExifTool show this value as an f-number too.
How aperture changes a photo
Aperture does 2 jobs. It controls how much light reaches the sensor, and it controls how much of the scene looks sharp. The sharp zone from near to far is called the depth of field.
A wide opening, with a low number, gives a shallow depth of field. The subject stays sharp and the background is blurred, so portrait photographers often use a wide opening.
A small opening, with a high number, gives a deep depth of field. Landscape photographers use a small opening to keep details sharp across the frame.
Neither a low nor a high number is better in every case. A low number helps when the light is dim, and a high number helps when the whole scene must be sharp.
Aperture never works alone. Together with shutter speed and ISO, it decides how bright the photo turns out. Depth of field also depends on the focal length and the distance to the subject.
Another tag records how the camera set the exposure. If the photographer chose aperture priority, the ExposureProgram tag holds 3, which ExifTool shows as Aperture-priority AE.
Which files carry it
Aperture is part of the EXIF data that digital cameras write. JPG, HEIC, and TIFF photos can carry it, and so can raw files such as CR2, NEF, ARW, and DNG.
The main tag is FNumber, with the tag ID 0x829D. The EXIF standard marks it as optional, so some files leave it out. XMP metadata can hold the same values in fields with the same names.
A related tag, MaxApertureValue, records the smallest f-number of the lens, which is its widest opening. A zoom lens can have a different widest opening at each end of its zoom range. The LensSpecification tag stores both of these values.