EXIF tag · IFD0

PreviewDateTime

The PreviewDateTime tag stored in the IFD0 directory.

0xc71b
Tag ID (50971 decimal)
IFD0
IFD / group
string!
Data type
EXIF
Table

What PreviewDateTime means#

The PreviewDateTime tag stored in the IFD0 directory.

Read, write and remove it#

# read
exiftool -PreviewDateTime photo.jpg
# write
exiftool -PreviewDateTime="…" photo.jpg
# remove
exiftool -PreviewDateTime= photo.jpg
# all files in a folder, as CSV
exiftool -csv -PreviewDateTime -r ./photos > preview-date-time.csv

In Python with Pillow:

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

Frequently asked questions#

What is the EXIF tag ID of PreviewDateTime?

0xc71b (50971 decimal), in the IFD0 directory.

How do I see PreviewDateTime in a photo?

Run exiftool -PreviewDateTime 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