EXIF tag · IFD0

XPSubject

The XPSubject tag stored in the IFD0 directory.

0x9c9f
Tag ID (40095 decimal)
IFD0
IFD / group
int8u
Data type
EXIF
Table

What XPSubject means#

The XPSubject tag stored in the IFD0 directory.

Read, write and remove it#

# read
exiftool -XPSubject photo.jpg
# write
exiftool -XPSubject="…" photo.jpg
# remove
exiftool -XPSubject= photo.jpg
# all files in a folder, as CSV
exiftool -csv -XPSubject -r ./photos > xp-subject.csv

In Python with Pillow:

from PIL import Image
exif = Image.open("photo.jpg").getexif()
value = exif.get(0x9c9f)  # XPSubject
print(value)

Frequently asked questions#

What is the EXIF tag ID of XPSubject?

0x9c9f (40095 decimal), in the IFD0 directory.

How do I see XPSubject in a photo?

Run exiftool -XPSubject photo.jpg, or open the file's info panel in Lightroom, Photoshop, Windows (Properties → Details) or macOS Preview (Tools → Show Inspector).

Last updated October 03, 2026 · How we calculate · Sources