Metadata Editor

EXIF EditorEXIF ReaderRemove MetadataGuidesGlossaryAbout

Camera and lens serial numbers in photos

At a glance

ExifTool tag namesEXIF:SerialNumber, EXIF:LensSerialNumber, XMP:SerialNumber, MakerNotes:SerialNumber
Tag ID / location0xA431 (SerialNumber), 0xA435 (LensSerialNumber)
CategoryCamera & lens
Example value012345678901
On metadata-editor.comShown in the EXIF reader, editable in the EXIF editor (JPEG, TIFF)

A camera serial number in EXIF identifies one physical body, not a model. Every photo from that camera carries the same string, so two images posted under different names, on different sites, years apart, can be tied to the same device and very likely the same person. Of all the camera tags, this is the one worth removing before you publish anonymously.

Every place a serial number can hide

The EXIF spec calls tag 0xA431 BodySerialNumber. ExifTool names it SerialNumber, and the difference bites: in ExifTool 12.76, -BodySerialNumber=123 on a JPEG reports "0 image files updated" without an error. The full list of usual locations:

  • ExifIFD SerialNumber (0xA431), the body
  • ExifIFD LensSerialNumber (0xA435), the lens
  • XMP-aux:SerialNumber, written by Adobe software such as Lightroom
  • the maker notes, where Canon, Nikon, Olympus and Pentax keep their own SerialNumber or InternalSerialNumber

A test file with the first three filled in:

$ exiftool -a -G1 -s "-*Serial*" photo.jpg
[ExifIFD]       SerialNumber                    : 012345678901
[ExifIFD]       LensSerialNumber                : 0000123456
[XMP-aux]       SerialNumber                    : 012345678901
$ exiftool -a -G -s "-*Serial*" photo.jpg
[EXIF]          SerialNumber                    : 012345678901
[EXIF]          LensSerialNumber                : 0000123456
[XMP]           SerialNumber                    : 012345678901

Searching with the *Serial* wildcard is the quickest audit. A plain -SerialNumber read shows a single copy, while -a with the wildcard lists the duplicates from every group.

Deleting every copy

ExifTool accepts the same wildcard for deletion:

exiftool "-*SerialNumber*=" photo.jpg

That catches LensSerialNumber and InternalSerialNumber too. Run the audit command again afterwards. If a serial survives inside a binary maker-note record, drop the whole block with -MakerNotes:all=. Don't use -MakerNotes:all= or -all= on a CR2 or other proprietary RAW file: converters need the maker notes, so stick to the named tags there.

Our tools are partial here. The reader and editor handle LensSerialNumber but not the body serial, which is not in the whitelist. The metadata remover runs exiftool -all=, so every copy listed above goes, together with everything else in the file. It isn't the only option; see how to remove metadata from photos.

Related fields

Camera model

The EXIF Model tag names the camera or phone that took a photo. Real values, why Canon repeats its brand, Sony's ILCE codes, and how to edit or strip it.

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.

Maker notes

MakerNote (0x927C) is the vendor-specific EXIF block that holds lens IDs and shutter counts. Why edits corrupt it, and how ExifTool reads or strips it.

Owner name

OwnerName is ExifTool's name for EXIF CameraOwnerName (0xA430), the camera owner's name. Other tags with the same name, privacy risks, and how to clear it.

Where Serial number comes up

Other Metadata Tools