Image metadata

What is EXIF data? What your photos reveal

The short answer

EXIF data is a block of details that a camera or phone writes into a photo file: the make and model, the exposure settings, the date and time, and often GPS coordinates. You don't see it when you look at the picture, but anyone who opens the file in a metadata viewer can read it. It is one of several metadata layers, alongside XMP, IPTC, color profiles and Content Credentials. EXIF is also unsigned and easy to edit, so it can raise questions about a photo but it cannot prove where or when the photo was taken.

Every photo from a phone or camera is two things at once: the picture, and a small hidden record of how it was taken. That record is EXIF data. It can say which camera took the shot, what time it was and, if location tagging was on, where you were standing.

This guide covers where EXIF sits inside a file, which tags matter, what the data can and cannot prove, and how to look at it on Windows, Mac, iPhone and Android. To see what a particular file contains, drop it into the Image Metadata Viewer and come back to read what the fields mean.

What EXIF data is and where it lives

EXIF stands for Exchangeable image file format. It is a standard maintained jointly by two Japanese industry bodies, CIPA and JEITA, under the reference DC-008. The current revision is Exif 3.1, and version 3.0 (2023) added UTF-8 text, so names in non-Latin scripts can be stored properly. CIPA publishes the standard.

In a JPEG, EXIF lives in a segment called APP1 near the start of the file, ahead of the compressed pixel data. Inside it the tags are grouped into blocks for general image details, exposure and dates, GPS, and a small preview thumbnail. Other formats reuse the same structure. PNG has a dedicated eXIf chunk, WebP has an EXIF chunk in its container, and HEIC files from many phones, along with AVIF files, carry it as well. GIF does not normally use EXIF, though it can hold a comment and XMP.

Where metadata sits in a JPG fileA JPG file is a stack of segments: a start marker, then metadata segments (EXIF, XMP, an ICC color profile, IPTC), then the tables and compressed image data, then an end marker.FFD8 · start of the fileAPP1 · EXIFcamera, lens, settings, date, GPS location, orientation, a thumbnailAPP1 · XMPediting history, ratings, and AI-tool information in some filesAPP2 · ICC profilethe color space the colors are inAPP13 · IPTCcaption, keywords, creator, copyrightTables and image datathe picture itself: the pixels, compressedFFD9 · end of the file
A simplified map; the order and the sizes vary, and not every file has every segment. Removing metadata means dropping the labelled segments above the picture and leaving the image data untouched.

The other metadata layers

People often say "EXIF" when they mean metadata in general. A file can carry several independent layers, depending on its format and the software that last saved it.

LayerWhat it holdsWhere it appears
EXIFCamera, lens, exposure settings, capture time, GPS, thumbnailJPEG, TIFF, PNG, WebP, HEIC, AVIF, camera RAW files
XMPXML text: titles, descriptions, ratings, keywords, creator, editing historyJPEG, PNG, WebP, GIF, TIFF and more; sidecar files for RAW
IPTCCreator, credit line, copyright notice, keywords, captionStored inside XMP; the older IIM form sits in a JPEG APP13 segment
ICC profileThe color space the pixels were saved inJPEG, PNG, WebP, GIF, TIFF
PNG text chunksFree-form keyword and text pairsPNG only
Content Credentials (C2PA)A signed record of how a file was made or editedJPEG, PNG and some other formats

IPTC and XMP are written by photographers and editing software to say who made an image and how to credit it, which is why our image SEO guide covers them. PNG text chunks are where several image generators store their prompt and settings, which the guide to reading generation data walks through. Content Credentials are a signed provenance record, a different thing from EXIF, explained in our guide to Content Credentials and watermarks.

The main EXIF tags

The standard defines hundreds of tags. These are the ones you are most likely to meet, under the names a metadata viewer shows.

GroupTagWhat it tells you
DeviceMake, ModelThe manufacturer and model of the camera or phone
LensModelThe lens, for cameras with interchangeable or built-in lens data
SoftwareThe firmware or editing program that last wrote the file
ExposureExposureTimeShutter speed in seconds; 1/250 means a 250th of a second
FNumberThe aperture, written as f/1.8, f/8 and so on
ISOSensor sensitivity (newer versions of the standard call it PhotographicSensitivity)
FocalLengthLens focal length in millimeters
TimeDateTimeOriginalThe local date and time the picture was taken; it carries no time zone by itself
OffsetTimeOriginalThe UTC offset for that time, such as +02:00; newer cameras and phones write it
PlaceGPSLatitude, GPSLongitudeCoordinates, stored as degrees, minutes and seconds with a separate N/S or E/W letter
GPSAltitudeHeight above or below sea level
GPSImgDirectionThe compass direction the camera was facing
DisplayOrientationHow to rotate or flip the stored pixels for display (values 1 to 8)
PeopleArtist, CopyrightFree-text name and copyright notice, usually set by the owner or editing software
CameraOwnerNameAn owner name some cameras let you enter
BodySerialNumber, LensSerialNumberSerial numbers that are unique to one camera body or lens, when the device writes them
ExtrasMakerNoteA private block each manufacturer fills in its own way; the standard does not define its contents
ThumbnailA small JPEG preview stored inside the EXIF block

The GPS tags are the ones most people care about. A viewer converts the degrees, minutes and seconds into decimal coordinates and offers map links that only load when you click them.

Inside the EXIF block, byte by byte

EXIF borrows its layout from the TIFF image format, which is why the same reader works for JPEG, PNG, WebP and HEIC files. In a JPEG the block looks like this:

  1. The APP1 marker (FF E1) and a two-byte length.
  2. The text Exif followed by two zero bytes.
  3. A TIFF header: II (Intel order, least significant byte first) or MM (Motorola order, most significant first), the number 42, and the position of the first tag table.
  4. Tag tables, which the standard calls IFDs. Each starts with a count, then holds one 12-byte entry per tag: a 2-byte tag number, a 2-byte type, a 4-byte count of values, and 4 bytes that hold the value itself if it fits or else the position where the value is stored.

The first table (IFD0) holds the general tags such as Make, Model and Orientation, plus pointers to the other tables: tag 0x8769 points to the Exif table with the exposure and date tags, and 0x8825 to the GPS table. A link at the end of IFD0 leads to IFD1, which describes the preview thumbnail. The common value types are BYTE, ASCII text, SHORT (16-bit), LONG (32-bit), RATIONAL (two LONGs, a numerator and a denominator), SRATIONAL (the signed version) and UNDEFINED (raw bytes, used for blocks such as MakerNote).

The length field explains a hard limit. Two bytes count up to 65,535, which includes the length field itself and the six bytes of Exif and its two zero bytes, so a JPEG's EXIF data can be at most 65,527 bytes. That is plenty for tags and too little for large maker notes plus a big preview, which is why some programs drop or shrink the thumbnail when they rewrite the block.

Worked example: decoding a GPS position

Say the GPS table contains these four tags:

GPSLatitudeRef   N
GPSLatitude      48/1  51/1  3024/100
GPSLongitudeRef  E
GPSLongitude     2/1   17/1  4020/100

Each coordinate is three rationals: degrees, minutes and seconds. Latitude is 48 + 51/60 + 30.24/3600 = 48 + 0.85 + 0.0084 = 48.8584. Longitude is 2 + 17/60 + 40.2/3600 = 2 + 0.28333 + 0.01117 = 2.2945. The letters set the signs: S and W make the number negative. The result, 48.8584, 2.2945, is the Eiffel Tower. Storing seconds as 3024/100 keeps two decimal places of a second, which is about 30 cm on the ground, far finer than a phone's fix is accurate.

What EXIF can reveal about you

No single tag is alarming. The risk comes from what a few of them say together:

  • Where. GPS coordinates, altitude and facing direction can point to a specific building rather than just a town. Even without GPS, a time plus a UTC offset narrows down the region.
  • When. DateTimeOriginal records the moment of capture, which can show when you were away from home.
  • Which device. Make, model and lens identify the gear. Two photos with the same BodySerialNumber came from the same camera, even if they were posted under different names.
  • Who. Artist, Copyright and CameraOwnerName can hold a real name, typed in by you or filled in by an app.
  • What was edited. Software names the program that saved the file. Microsoft engineer Raymond Chen has pointed out that some editing programs appear not to refresh the embedded thumbnail, so content cropped out of the main image can linger there.
Not every photo has all of this

A tag exists only if the device wrote it and nothing removed it later. A photo has GPS data only if location tagging was on and the device had a position. Check your own files before assuming either way. If you find coordinates you did not want to share, our guide to removing location data from photos covers each device.

What EXIF cannot prove

EXIF is a set of notes with no lock on it. Nothing signs the data, and free tools can edit any field. Treat it as a claim the file makes about itself, which anyone could have edited.

  • Values can be wrong without anyone lying. A camera with a reset clock or the wrong time zone writes the wrong date.
  • Values can be copied or invented. You can copy the EXIF block from one photo into another, or type any camera name, date or coordinates you like.
  • Missing EXIF means very little. Plenty of ordinary files have none (see below). A bare file is not proof of a fake, a stolen image or a generated one.

When provenance really matters, the stronger tool is a signed record such as Content Credentials. Even then, finding a manifest in a file is different from checking that its signature is valid. Our viewer reports that a manifest is present and shows what it can read, but it does not verify the signature.

Checking when a photo was really taken

A modern phone photo often records its time three ways, and comparing them is the quickest test of whether the date can be trusted:

TagExample valueWhat it is
DateTimeOriginal + SubSecTimeOriginal2026:07:14 18:42:09 and 347Local time on the camera's clock, to the millisecond. Note the colons in the date
OffsetTimeOriginal+02:00The difference from UTC for that local time, added in Exif 2.31 (2016)
GPSDateStamp + GPSTimeStamp2026:07:14 and 16/1 42/1 8/1The time of the position fix, in UTC

Check the arithmetic: 18:42:09 local at +02:00 is 16:42:09 UTC, and the GPS stamp says 16:42:08. A second apart is normal, since the fix and the shutter are separate events. Three things can break the agreement:

  • A camera clock set wrong. Dedicated cameras keep whatever time someone set. If the local time is off by a round number of hours from the GPS time, the camera was probably left on home time while traveling.
  • No offset at all. Older cameras and many editing programs write DateTimeOriginal without an offset, so the time is local to somewhere unstated. Do not convert it to another zone without knowing where the camera was.
  • An edited date. If someone changed DateTimeOriginal and left the GPS stamp, the two now disagree by an odd amount. That is a hint, and only a hint: plenty of ordinary software writes one and not the other.

A third date tag, DateTime, records when the file was last changed by software, which is what editors update when they save. Our viewer shows the capture time with its sub-seconds and offset and notes when the offset hints at a time zone.

How to view EXIF data on your device

Every major platform shows some of it. Built-in views show a subset of the fields, so expect fewer details than a dedicated viewer lists.

Windows

Right-click the file, choose Properties, then open the Details tab. Sections such as Camera and GPS appear when the file has that data. Explorer reads some formats better than others, so a file that shows nothing may still have metadata.

Mac

Open the photo in Preview, choose Tools > Show Inspector (or click the Info button in the toolbar) and open the More Info tab. For location, Apple says to choose Tools > Show Location Info; if the item is gray, the image has no location data.

iPhone and iPad

Open a photo in the Photos app, then swipe up or tap the Info button. Apple says the panel shows the date and time, the file name and the camera details, plus a map when the photo has a location.

Android

In Google Photos, open the photo and swipe up from the bottom of the screen to reach its Details section. Gallery apps from phone makers show their own set of fields, usually behind an Info or Details option.

In your browser

The Image Metadata Viewer reads the file's metadata in the browser. It takes many files at once and shows the layers in this guide, including XMP, IPTC, the embedded thumbnail, PNG text chunks and the color profile name. A "What this file reveals" summary flags privacy-relevant items such as GPS, serial numbers and owner names, and you can export everything as JSON or CSV. For how files added to our tools are handled, see the privacy policy.

Editing EXIF: fixing dates, adding credit

The Image Metadata Editor changes EXIF in JPEG, PNG and WebP files without touching the picture. It has 35 fields in seven groups (Description, Author and rights, Dates, Location, Camera and lens, Exposure, Display), lists every other tag in the file with a Remove button, and copies all the non-EXIF blocks across unchanged. An empty field is not written, and a value it cannot store gets a sentence under the field explaining why.

Worked example: a camera left on home time

You flew from London to Tokyo in March and forgot to change the camera clock. A photo you took mid-afternoon, DSC_0412.JPG, says 2026:03:02 07:15:00 with no offset. Tokyo is nine hours ahead of London at that time of year, so the real local time was 16:15.

  1. Open the photo in the editor and find the Dates group.
  2. Set Date taken to 2026-03-02 16:15:00, and Date digitized to the same if the file has it.
  3. Set Time zone to +09:00. Readers can now convert the time correctly anywhere.
  4. Download DSC_0412-edited.jpg and open it in the viewer to confirm.

For a whole memory card, the editor's "Change all photos at once" sets the same value on every photo, which suits the time zone field but would give every picture the same capture time. Shifting each photo by nine hours is a job for ExifTool on a computer, where the documented form is exiftool -alldates+=9 folder. It shifts the three main EXIF dates and keeps each original with _original added to its name. Then set the time zone on all of them in the editor in one go.

Adding your name before you publish

Fill in Artist, Copyright and, if you like, Authors under "Author and rights". Windows shows the editor's Title, Subject, Keywords, Comments and Authors fields on the Details tab, because those are the Windows-specific XP tags, stored as UTF-16 so any script displays. Rating is written the way Windows writes star ratings, as a star count plus a percentage (1 star is 1, then 25, 50, 75 and 99). Fields that the standard defines as plain text, such as Copyright, are written as UTF-8. Most current software reads that correctly, though some libraries show a © sign as "©".

We checked the editor on 208 real files: phone and camera JPEGs and AI-made JPEG, PNG and WebP pictures. With all 35 fields edited, every value read back the same in our reader, in Pillow and in ImageMagick, every other tag was unchanged, and the decoded pixels were identical to the original in all 208.

Maker notes: the manufacturer's private block

MakerNote is the one EXIF tag whose contents the standard leaves to each manufacturer. Camera makers use it for settings that have no standard tag, such as focus points, picture styles and lens corrections, and sometimes a serial number. The format differs between brands and even between models, and it is often undocumented, so general-purpose viewers either decode it brand by brand or show it as a block of bytes. Our viewer shows its size and flags it, since a serial number may be inside.

Maker notes are fragile when a file is rewritten. Many of them refer to their own data by position within the EXIF block, so a program that moves the block can leave those positions pointing at the wrong bytes, and other software then misreads the settings. The metadata editor keeps maker notes byte for byte at their original position whenever it can, lays the rest of the block out around them, and warns you if it ever has to move them. In our 208-file test, all 26 files with maker notes kept them in place. If you would rather drop them, untick "Keep the camera maker notes" before saving.

Why screenshots and edited images often have none

A screenshot is built by the operating system from what is on the screen. No camera is involved, so there is no lens, exposure or GPS position to record. A screenshot usually has file basics and perhaps a color profile, and little else.

Edited and exported images lose EXIF in several ways. Many editing tools have an export setting for how much metadata to keep, and some strip it by default. Converting between formats can drop it. Messaging apps and websites often resize and recompress what you send. Some platforms remove metadata and some keep it, and their behavior can change, so do not rely on it. If you need a clean file, remove the metadata yourself and check the result.

The orientation tag gotcha

Phones often save the pixels in the sensor's native landscape layout and write an Orientation tag to say how to turn them. The values run from 1 (as stored) through 8, and 6 means rotate 90 degrees clockwise, which is common for portrait shots from phones.

Browsers apply the tag by default, so the photo looks upright. Some programs and code libraries load the raw pixels and ignore it, and the same photo then appears sideways. Two situations bite. If a tool strips the orientation tag along with the rest of the EXIF, an upright phone photo can turn sideways. And if you prepare images for training, a tool that ignores the tag sees rotated pixels, so check early in an image dataset workflow. Our Image Metadata Remover keeps the rotation tag by default for this reason. To bake the rotation into the pixels so every program agrees, open the photo in our rotate and flip tool and download it: the saved file is upright and carries no orientation tag.

What to do next

Start by looking: open a few photos you have shared in the viewer. If you find coordinates, serial numbers or an owner name you did not mean to publish, you can stop the camera writing location, hide it when you share, or strip it from the file. The location removal guide covers all three. For batches of JPEG, PNG, WebP and GIF files, the Image Metadata Remover strips the metadata block. It is a website you give a file to, so for a photo whose location is itself sensitive, use the options built into your phone or computer first.

Put this into practice

See the EXIF, GPS location, copyright, Content Credentials and generation settings hidden inside any image, then export them as JSON or CSV. It runs in your browser. Open the Image Metadata Viewer.

Frequently asked questions

Does every photo include my location?

No. A photo has GPS tags only if the camera app was allowed to use your location when you took it. On many phones that is a per-app permission you can change at any time, and it only affects photos taken afterward. Pictures saved from messaging apps or the web often have none. Open a file in a metadata viewer to see whether it does.

What is the difference between "date taken" and "date modified"?

"Date taken" usually comes from the EXIF DateTimeOriginal tag, which the camera wrote at capture. "Date modified" is the file system's record of when the file last changed, and copying, syncing or editing can reset it. The EXIF value is the better clue to when a photo was taken, as long as the camera's clock was right.

Does removing EXIF change how a photo looks?

Not the pixels, if the tool removes the metadata and leaves the compressed image data as it is. Two things can still change what you see: the orientation tag, which decides whether a phone photo shows upright, and the color profile, which affects how colors render. Good tools let you keep those two. Ours keeps both by default.

Can EXIF show whether a photo was edited?

Sometimes it hints at it. A Software tag naming an editing program, or a modified date later than the capture date, suggests the file was saved after the camera wrote it. But editors can leave these fields alone and anyone can change them, so no hint does not mean untouched.

Can I add EXIF to a picture that has none?

Yes. Open it in the metadata editor, fill in the fields you want, such as Copyright or Date taken, and save. The editor creates the EXIF block, and for a simple WebP it adds the extended header that WebP needs to carry EXIF. Keep in mind that added values are as unsigned as any others.

How much space does EXIF take up?

Usually a few kilobytes for the tags, plus whatever the embedded preview and maker notes add, which can be most of it. In a JPEG the whole block cannot exceed about 64 KB. The viewer's "How the file is built" group lists each metadata block and its size, so you can see where the bytes go.