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.
| Layer | What it holds | Survives a pixel re-encode | Survives a metadata strip |
|---|---|---|---|
| Marker segments (APP0, APP1, APP2, COM and others) | Exif, XMP, ICC profiles, thumbnails, comments | Only if copied across by the tool doing the re-encode | No: this is exactly what a strip removes |
| Entropy-coded scan | The picture itself, as DCT coefficients | No: this is what changes | Yes: untouched by a tag-only strip |
| Trailing structure (EOI, appended data) | Occasionally a second payload | Varies by tool | Varies 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.
| Tag | ID | What it records | Who writes it |
|---|---|---|---|
| Make | 0x010F | Manufacturer string | Camera firmware, or whatever app last saved the file |
| Model | 0x0110 | Body model string | Camera firmware, or whatever app last saved the file |
| Software | 0x0131 | The application that last wrote the file | The last application to save it, which is rarely the generator |
| DateTime | 0x0132 | Last modification time, as a string | The saving application |
| DateTimeOriginal | 0x9003 | Shutter release time | Camera firmware only |
| ExposureTime | 0x829A | Shutter speed as a rational | Camera firmware only |
| FNumber | 0x829D | Aperture as a rational | Camera firmware only |
| ISO | 0x8827 | Sensitivity | Camera firmware only |
| Flash | 0x9209 | Whether the flash fired | Camera firmware only |
| Orientation | 0x0112 | One of eight rotation codes | Camera, or an editor that does not rotate pixels |
| PixelXDimension | 0xA002 | Declared width in pixels | Whoever saved it |
| PixelYDimension | 0xA003 | Declared height in pixels | Whoever saved it |
| ExifIFDPointer | 0x8769 | Offset to the Exif sub-directory | The writer |
| GPSInfoIFDPointer | 0x8825 | Offset to the GPS sub-directory | The 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 see | What it is consistent with | What it rules out |
|---|---|---|
| Make, Model, ExposureTime, FNumber, ISO, DateTimeOriginal, GPS all present | A camera capture, possibly edited afterwards | Very little, but that is the point of a coherent cluster |
| Make and Model present, no ExposureTime, no FNumber, no ISO, no DateTimeOriginal | Tags copied onto a file that was never a capture | A camera capture |
| No Make, no Model, Software names an image application, DateTime present | A file saved by software, origin unrecorded | Nothing about AI either way |
| Software names a generator, no capture cluster | A generated file that was not laundered | A camera capture |
| Declared PixelXDimension disagrees with the actual decoded width | A resize that did not update the tags | An untouched file |
| Orientation set to a rotation code, pixels not rotated | A tag-only edit | A 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 file | What the tags say afterwards | What that does to the evidence |
|---|---|---|
| Screenshot of the image on screen | Nothing at all: a framebuffer has no camera and no tags | The witness is deleted by the act of looking |
| Upload through a social platform or marketplace | Stripped, or rewritten with the platform's own fields | Someone else's record replaces the original |
| Sent through a messaging app, then saved | Often stripped, sometimes kept, depending on the path | Inconsistent between two copies of the same picture |
| Printed, then scanned | The scanner's Make and Model, not the camera's | A real device's name attached to a picture no device photographed |
| Photographed off a screen | The phone's Make and Model | The same, by a different route |
| Passed through a desktop editor | The editor's name in Software, capture tags partly kept | A 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:
- Version A: the original, untouched.
- 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.
- Version C: a full re-encode at high quality, with the original metadata copied across.
- 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 scores | What it proves |
|---|---|
| A and B differ, C equals D | The 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 D | The tool reads the encoding, not the tags. Note that this pattern cannot arise from metadata alone |
| A differs from B, and C differs from D | The tool reacts to both channels and does not separate them |
| All four equal | The 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.
- 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.
- 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.
- 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.
- 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.
- 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.
| Channel | What it can establish | What it cannot |
|---|---|---|
| Validating signed manifest asserting algorithmic media | The asset was signed by a known signer and has not changed since | That an unsigned file is real |
| A generator named in the tags, with no capture cluster | The file was written by that generator, or by something using its metadata | That the picture is the one that generator made |
| A coherent camera capture cluster | A camera wrote this file | That the picture is the scene the camera saw |
| A pixel-model score | A probability, under an unknown training distribution | Anything with certainty, in either direction |
| No tags, no manifest | Nothing | Nothing |
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
- An ordinary JPEG has room for 65,533 bytes of header per segment, and a camera uses a few hundred of them. The rest is empty space in the file you were sent.
- A metadata entry costs 12 bytes of structure. The field that declares algorithmic media costs 36 bytes in total. A 12-megapixel frame is 12,192,768 pixels. The certainty lives in about three parts in a million of the file.
- Two of the three biggest detector pages say in their own copy that they do not use metadata. Read that as a scope statement, not as a virtue: they have excluded the only channel that can produce certainty, and left the one that produces estimates.
- Metadata is a one-way witness. Present and specific, it convicts. Absent or borrowed, it says nothing, because screenshots, platform uploads, chat apps, printers, scanners and editors all delete or replace it without anyone intending anything.
- The test is not a single tag but a cluster. A camera name without a shutter speed, an aperture, an ISO and a capture time is a copied header, not a capture.
- The thumbnail at tag 0x0201 is a second image, usually 160 by 120, that no detector sees and that often predates the main picture. A mismatch between the two is proof of assembly.
- To find out whether a tool reads tags at all, vary the tags and the encoding independently, four versions, one padding control. The pattern of four scores tells you which channel moved, and no marketing copy survives that test intact.