AI Image Detector vs Exif: What the File Says Before the Pixels Do (2026)

Short answer: a great many image files answer the question before any model starts, and the answer is written in a field that costs 36 bytes. An AI image detector that reads only pixels throws that answer away deliberately — the two best-known ones say so in their own copy — so their percentage is a probability about pixels, while the same file is simultaneously carrying a statement of fact about its own origin. Those are not two estimates of the same thing. One is a guess with a confidence interval, the other is a declaration that either validates or does not.

That asymmetry is the whole subject of this page, and it decides how you should read any score you are given.

Here is the part almost nobody explains. Metadata is a one-way witness. If the tags name a generator, or carry a signed manifest that says the media was synthesised, that is close to proof and no percentage can override it. If the tags are absent, blank, or say "Canon EOS R6", that proves nothing at all, because every ordinary step between a file being made and a file reaching you — a screenshot, a chat app, a platform upload, a print, a scan, a re-save — can remove the tags or replace them with someone else's. A detector score is expected to speak in both directions. Metadata only speaks in one.

So the useful question is not "does this tool read metadata". It is "which direction can this file still be read in, and has the channel already been destroyed by something innocent".

That question is missing from every major detector page, and the miss is not accidental. As of 5 November 2026, zerogpt.com/ai-image-detector says in its own Step 2 that the tool "scans visual patterns and structures commonly found in AI-generated images, without relying on watermarks or metadata" (third-party reports, checked 5 November 2026). deepai.org/ai-image-detector goes further and dismisses the entire channel in a subordinate clause: it "does not rely on watermarks or metadata which can easily be altered or deleted", and elsewhere contrasts itself with "a regular image detector" that "may only analyze format, size or general image properties" (third-party reports, checked 5 November 2026). That one clause is the closest any of the three comes to the subject, and it is a dismissal, not an explanation. isthisai.com advertises that "a parallel ensemble of models scans for AI fingerprints across pixel patterns, frequency anomalies, and frame timing", and sells an "AI Model & Source Detection" feature that identifies "invisible signatures to determine exactly which AI generator created the media" (third-party reports, checked 5 November 2026). Note what "invisible signatures" means there: signatures in the pixels, not in the container. None of the three tells you what a tag is, which tag to look at, or what to conclude when the tags and the score disagree.

This page is that missing explanation, in the order you would actually use it.

The file is three things stacked, and only one of them is a picture

A JPEG is not "an image". It is a container with a header made of marker segments, one or more entropy-coded scans that hold the actual picture data, and an end marker. The Exif and XMP blocks live entirely in the header. They are not compressed with the picture, not derived from it, and not checked against it. You can rewrite every byte of them without decoding a single pixel.

That has a consequence people find surprising the first time: the metadata can be perfectly intact in a file whose picture has been replaced, and completely absent in a file whose picture is untouched. The two are independent variables. This is why any argument that treats "metadata present" as equivalent to "original file" collapses, and why the reverse argument — "metadata gone, therefore edited" — is even weaker.

LayerWhat it holdsSurvives a pixel re-encodeSurvives a metadata strip
Marker segments (APP0, APP1, APP2, COM and others)Exif, XMP, ICC profiles, thumbnails, commentsOnly if copied across by the tool doing the re-encodeNo: this is exactly what a strip removes
Entropy-coded scanThe picture itself, as DCT coefficientsNo: this is what changesYes: untouched by a tag-only strip
Trailing structure (EOI, appended data)Occasionally a second payloadVaries by toolVaries by tool

Read the middle row again. A tag-only strip does not touch the picture, which is the property that makes the four-way test later on this page possible at all. Most people assume stripping metadata means re-saving the image, and therefore that the two effects can never be separated. They can.

A 65,533-byte envelope called APP1

JPEG marker segments were defined with a 16-bit length field in ITU-T T.81 (1992), and that field counts itself: the maximum segment is 65,535 bytes including the two length bytes, which leaves 65,533 bytes of payload per segment. A segment declares its own type with a one-byte marker code, and APP1 is marker 0xE1.

Exif is the payload that starts with the six bytes "Exif" followed by two zero bytes. After that comes a TIFF header of 8 bytes — byte order, the number 42, and an offset telling the reader where the first image file directory begins. Everything else is directories from there.

A directory, in this format, is a very small and very rigid structure. It opens with a 2-byte count of how many entries follow. Each entry is exactly 12 bytes: a 2-byte tag number, a 2-byte type, a 4-byte count of values, and 4 bytes that hold either the value itself or an offset to where the value lives. The directory closes with a 4-byte pointer to the next directory, or zero.

Twelve bytes per entry is the number to remember, because it sets every budget on this page. A camera file with 30 tags occupies 8 bytes of TIFF header, 2 bytes of entry count, 360 bytes of entries and 4 bytes of terminator — 374 bytes of structure before a single string is stored. And the 65,533-byte envelope permits at most about 5,459 entries in one directory, on arithmetic alone, since 65,513 bytes remain after the headers and each costs 12.

What that means practically: there is room in an ordinary JPEG header for a completely different account of the image than the one the pixels support, and the room is enormous relative to what anyone uses. A camera fills a few hundred bytes. Almost all of the envelope sits empty in the file you were sent.

The twelve bytes that declare a tag

These are the tags that matter for this question. The numbers are stable and have been for two decades of the Exif specification maintained by CIPA as DC-008.

TagIDWhat it recordsWho writes it
Make0x010FManufacturer stringCamera firmware, or whatever app last saved the file
Model0x0110Body model stringCamera firmware, or whatever app last saved the file
Software0x0131The application that last wrote the fileThe last application to save it, which is rarely the generator
DateTime0x0132Last modification time, as a stringThe saving application
DateTimeOriginal0x9003Shutter release timeCamera firmware only
ExposureTime0x829AShutter speed as a rationalCamera firmware only
FNumber0x829DAperture as a rationalCamera firmware only
ISO0x8827SensitivityCamera firmware only
Flash0x9209Whether the flash firedCamera firmware only
Orientation0x0112One of eight rotation codesCamera, or an editor that does not rotate pixels
PixelXDimension0xA002Declared width in pixelsWhoever saved it
PixelYDimension0xA003Declared height in pixelsWhoever saved it
ExifIFDPointer0x8769Offset to the Exif sub-directoryThe writer
GPSInfoIFDPointer0x8825Offset to the GPS sub-directoryThe writer

Two of these are worth pausing on, because they carry most of the diagnostic weight and almost nobody uses them that way.

Software (0x0131) is owned by the last writer, not the originator. Every application that saves a file typically overwrites that string with its own name and version. So a generated image that passed through a desktop editor will announce the editor and say nothing about the generator. The absence of a generator name in that field is not evidence of absence of a generator — it is evidence that something else touched the file afterwards. Read it as a breadcrumb about the pipeline, never as a verdict about the origin.

Orientation (0x0112) tells you whether pixels were rotated or only instructed to be. The eight codes cover the eight ways a frame can be reflected and turned. An editor that sets a code instead of rotating pixels leaves the pixel grid in its original orientation and pushes the work onto the viewer. That is a free tell for a re-save that avoided a re-encode: the tags changed, the scan data did not. And because a rotation done this way changes nothing in the coefficient statistics, a pixel detector sees literally the same image before and after.

The field that was designed to answer this question

There is a standardised vocabulary for exactly the question you are asking, and it exists because C2PA and newsroom workflows needed it: the IPTC Digital Source Type list. One of its values is trainedAlgorithmicMedia, which asserts that the media was produced by a trained algorithmic model.

That string is 23 characters. Stored as a null-terminated value behind a 12-byte directory entry, the entire declaration costs 36 bytes.

Set that against the surface a pixel detector works on. A 4032 by 3024 frame is 12,192,768 pixels. Thirty-six bytes are 0.0003 per cent of that. So the file carries, in roughly three parts in a million of its own size, a statement that either settles the matter or does not — next to twelve million pixel values that can only ever yield a probability.

That is the sharpest way to state the problem with the current generation of detector pages. They have optimised the 99.9997 per cent, and abandoned the part with the certainty in it, on the stated grounds that the small part is easy to forge. It is easy to forge. It is also the only part that can be verified rather than estimated, and the two facts are not in conflict, they are the reason you need both.

A signed manifest sits above even the tag, and the reason is mechanical: C2PA binds a manifest to an asset by hashing its bytes, so the manifest validates only if the bytes it describes are the bytes you have. Re-encode the picture and the binding fails — not because the image is false, but because the asset is no longer the one that was signed. The practical reading is precise: a manifest that validates and declares algorithmic media is as close to proof as this field offers; a manifest that fails to validate tells you the file was transcoded after signing, which is common and usually innocent; no manifest tells you nothing.

A camera record is a cluster, not a field

Here is where most people go wrong with metadata, and it is a reasoning error rather than a technical one. They check Make and Model, see a camera name, and stop.

A real camera capture is a cluster of tags that co-occur because one piece of firmware wrote them all in the same instant, from the same sensor reading, in the same operation. Make and Model are in that cluster. So are ExposureTime, FNumber, ISO, Flash, FocalLength, DateTimeOriginal, and in most phones a GPS block. None of them is optional in the sense that a human chose it: they are the by-products of taking a photograph.

So the diagnostic question is not "is there a camera name". It is "do the tags that must accompany a camera name also exist, and do they agree with each other".

What you seeWhat it is consistent withWhat it rules out
Make, Model, ExposureTime, FNumber, ISO, DateTimeOriginal, GPS all presentA camera capture, possibly edited afterwardsVery little, but that is the point of a coherent cluster
Make and Model present, no ExposureTime, no FNumber, no ISO, no DateTimeOriginalTags copied onto a file that was never a captureA camera capture
No Make, no Model, Software names an image application, DateTime presentA file saved by software, origin unrecordedNothing about AI either way
Software names a generator, no capture clusterA generated file that was not launderedA camera capture
Declared PixelXDimension disagrees with the actual decoded widthA resize that did not update the tagsAn untouched file
Orientation set to a rotation code, pixels not rotatedA tag-only editA re-encode

The second row is the one that matters most in practice, and it is the one nobody publishes. A borrowed header is cheap and common — template workflows, "copy tags from this file", stock metadata packs — and it always leaves the same hole: the name without the exposure record. A camera cannot write its own name without also writing the shutter. Anything that writes one and not the other is not a camera.

The fifth row is a smaller version of the same test, and it needs no judgement at all, only a comparison. If the file says 4032 wide and decodes to 3024, someone resized it and did not care what the tags said. That is a fact about the file, not an inference.

The second image hiding inside the file

A directory entry can point at a thumbnail. Tag 0x0201 gives the offset of an embedded JPEG and 0x0202 gives its length, and what sits at that offset is a complete, independently encoded picture — usually 160 by 120 pixels, which is 19,200 pixels, roughly 0.16 per cent of a 12-megapixel frame.

Three things follow, and all three are useful.

First, a detector that loads the main image never sees it. Whatever the thumbnail shows, the score is computed without it.

Second, the thumbnail is frequently older than the main image, because the tool that replaced the picture did not bother to regenerate the preview. That makes it a fossil of an earlier state of the same file, and a fossil is exactly what you want when the question is what the file used to be. If the thumbnail and the main image disagree about content rather than quality, the file was assembled from more than one source.

Third, the reverse case is equally diagnostic: a main image that has clearly been shrunk or cropped, next to a thumbnail that matches it exactly, means the whole file was produced in one pass by one tool. Consistency is not proof of authenticity, but a mismatch is proof of assembly, and assembly is the one operation that a single whole-image score structurally cannot represent.

Comparing the two costs nothing. Extract both, look at them side by side, and ask whether the small one could be a downscale of the large one.

Ordinary operations rewrite the witness, and none of them is an attack

The reason a missing tag proves nothing is that the operations people perform every day, for no adversarial reason at all, either delete the metadata or substitute someone else's. This is not a list of tricks. It is a list of things that happen to files by default.

What happened to the fileWhat the tags say afterwardsWhat that does to the evidence
Screenshot of the image on screenNothing at all: a framebuffer has no camera and no tagsThe witness is deleted by the act of looking
Upload through a social platform or marketplaceStripped, or rewritten with the platform's own fieldsSomeone else's record replaces the original
Sent through a messaging app, then savedOften stripped, sometimes kept, depending on the pathInconsistent between two copies of the same picture
Printed, then scannedThe scanner's Make and Model, not the camera'sA real device's name attached to a picture no device photographed
Photographed off a screenThe phone's Make and ModelThe same, by a different route
Passed through a desktop editorThe editor's name in Software, capture tags partly keptA pipeline record where an origin record used to be

The print and recapture rows are the ones that should end the argument about metadata being reliable. Both produce a file whose capture cluster looks entirely plausible and is entirely irrelevant: a real sensor did write those tags, and it was not looking at the scene the picture depicts. That is why this site has separate pages on printed and scanned files and on photographing a screen — in both, the metadata is truthful about the last device and silent about the origin.

The screenshot row deserves its own note because it is the most common and the most total. A screenshot does not lose the metadata; it never had any, because it was never a photograph of anything. Running a detector on a screenshot and then checking the tags is a category error: you are reading the container of a copy of a rendering of an image.

The four-way strip test: proving what a tool can actually see

Everything above is structural. This is the part you run.

The claim "we do not rely on metadata" is testable, and testing it takes four uploads and about ten minutes, because a tag strip and a pixel re-encode are separable operations and you can produce files that vary them independently.

You need four versions of one image:

  1. Version A: the original, untouched.
  2. Version B: the original with all metadata removed and the picture data left exactly as it was. A tag-only strip does this; the compressed scan is copied, not regenerated.
  3. Version C: a full re-encode at high quality, with the original metadata copied across.
  4. Version D: a full re-encode at the same setting, with the metadata stripped.

Upload all four to the same tool, in the same session, and record the four scores.

Pattern of scoresWhat it proves
A and B differ, C equals DThe tool reads tags. Its own claim is false, and its score moves for reasons that have nothing to do with the picture
A equals B, C differs from DThe tool reads the encoding, not the tags. Note that this pattern cannot arise from metadata alone
A differs from B, and C differs from DThe tool reacts to both channels and does not separate them
All four equalThe tool is insensitive to both changes at this quality level, which is a stronger statement than the marketing makes

There is one confound you have to control for, and it is the reason most people who try this get a confusing result. Stripping a tag block changes the file size, and file size is itself a feature that some models consume — a smaller file can look more heavily compressed, and heavy compression is weakly associated with the "real" side of many training sets. So a score that moves after a strip may be reacting to the size change rather than to the tag content.

The control is a padding segment. JPEG has a comment marker, 0xFFFE, which carries arbitrary bytes and is ignored by decoders. Add a comment whose length matches the removed metadata and version B comes back to within a few bytes of the original size with its tags gone. If the score still moves, it moved because of the tags. If it stops moving, it was the size all along.

Run the pad-controlled version once and you will know more about the tool than its own page tells you, and you will have it in a form you can show someone: four files, four numbers, one variable.

What to read, in the order that saves time

You do not need to understand the format to read it. One command prints everything, grouped by where it came from, and the grouping is the useful part.

  1. Print every tag with its group and its raw value. In ExifTool the flag set is dash a for all tags including duplicates, dash G1 for the group name, and dash s for short names. The output is long; the group column is what you are reading.
  2. Print just the small set that matters: Software, Make, Model, DateTimeOriginal, ExposureTime, FNumber, ISO, Orientation, and the two pixel dimension tags. You are looking for the cluster, not for a single hit.
  3. Compare the declared pixel dimensions against the real ones. Any mismatch ends the question of whether the file was resized, and tells you it was resized without housekeeping.
  4. Look for a manifest. If the file carries one and it validates, read what it asserts about the digital source type before you look at any score at all.
  5. Only then run a pixel detector — and read its number as a probability about the picture, not as a verdict about the file.

If you want to see what a strip does to a score, do it on a copy, never on the only file you have. And if you want to know whether the tool you are using reads tags at all, the four-way test above answers it in ten minutes, with no knowledge of the model required.

The verdict hierarchy

Once both channels are on the table, they need an order, because they will sometimes disagree and the disagreement is informative rather than annoying.

ChannelWhat it can establishWhat it cannot
Validating signed manifest asserting algorithmic mediaThe asset was signed by a known signer and has not changed sinceThat an unsigned file is real
A generator named in the tags, with no capture clusterThe file was written by that generator, or by something using its metadataThat the picture is the one that generator made
A coherent camera capture clusterA camera wrote this fileThat the picture is the scene the camera saw
A pixel-model scoreA probability, under an unknown training distributionAnything with certainty, in either direction
No tags, no manifestNothingNothing

The ordering principle is simple and it is the sentence to take away: a tag can convict and cannot acquit. Evidence that survives in the file is evidence. Evidence that is missing from the file is not evidence of anything, because six ordinary operations delete it.

That is also the precise sense in which the three big detector pages are answering a different question than the one their visitors are asking. They are not wrong to distrust metadata — the distrust is well founded, and their reason, that tags can be altered or deleted, is correct. What they omit is that the same sentence justifies keeping the channel and reading it carefully, because a channel that can only convict is still the only channel that can convict.

Why the percentage cannot stand in for this

A model score compresses everything it can see into one number between zero and one, and that compression is lossy in a specific way: it cannot express "this file declares itself". A file whose tags say trainedAlgorithmicMedia and whose pixels were smoothed by a platform's upload pipeline can easily score as real, and the score is not lying about the pixels. It is answering a narrower question than the one you asked.

If you want the longer treatment of what that number means and why two tools give two answers for one file, the percentage page covers it. The short version is that a confidence score is a property of a model plus an input, not a property of an image, and the same file is a different input to every tool that opens it.

Metadata does not have that problem, and it has a worse one. It is a property of the file that any of six ordinary operations can rewrite. Both statements are true at once, which is why the answer is not "trust the tags" or "ignore the tags" but "read them first, and know which way they can point".

The short version

Links on this site may be affiliate links.