AI Image Detector on AVIF Photos: Grain That Was Never Photographed (2026)
Short answer: in an AVIF file, the fine grain that an AI image detector reads as evidence of a camera can be manufactured after the picture has already been decoded. The AV1 specification defines a film grain synthesis step that runs on the output image, generates noise from one fixed table of 2,048 values, and tiles a single 82 by 73 sample template across the frame. The parameters that drive it are signaled in the frame header in about 22 to 63 bytes, no matter how many megapixels the picture has. So the same AVIF can arrive at a detector wearing a full layer of photorealistic noise, or none at all, depending on which software decoded it — and none of the three sites you are comparing says which of those two things it is looking at.
This page is about the one kind of pixel evidence that can be switched on and off after the fact without touching a single coded sample: synthetic grain.
The reason this deserves its own page, rather than a paragraph inside the compression pages, is that every other artifact we have covered is a side effect. Blocking, banding, mosquitos, moiré, halftone dots, heic conversion loss — all of those are damage that something did to a picture while moving it. Film grain synthesis is not damage. It is a feature whose entire purpose is to put noise back, and noise is exactly the low-level signal that a detector uses when it wants to say "a sensor was here."
What the three pages you are comparing say about noise and AVIF
Checked 17 November 2026, reading structure, headings, and whether the page carries any table or number on the subject — not the marketing copy around it.
zerogpt.com/ai-image-detector names three formats in its step-by-step instructions: it "supports common formats like JPG, PNG, and WEBP" (third-party reports, checked 17 November 2026). Its second step says the tool "scans visual patterns and structures commonly found in AI-generated images, without relying on watermarks or metadata" (third-party reports, checked 17 November 2026). The word AVIF does not appear on the page, and neither does noise, grain, or any statement about what happens to a file's sensor-level texture before analysis.
deepai.org/ai-image-detector is the closest of the three to this subject, and only by accident of format support: its upload box reads "Supports JPG, JPEG, PNG, WebP, AVIF, HEIC" (third-party reports, checked 17 November 2026). So it accepts AVIF explicitly. Its FAQ then says the tool "analyzes the actual pixel-level patterns and structures within images" and that it "does not rely on watermarks or metadata which can easily be altered or deleted" (third-party reports, checked 17 November 2026). That is the whole distance the page travels: it sells pixel-level analysis and it accepts the one still-image format whose specification defines a legal way to synthesize pixels after decoding. It never mentions grain.
isthisai.com describes its pipeline as "A parallel ensemble of models scans for AI fingerprints across pixel patterns, frequency anomalies, and frame timing" (third-party reports, checked 17 November 2026), and separately offers to "identify invisible signatures" to name the generator (third-party reports, checked 17 November 2026). Frame timing is a video concept and pixel patterns is a broad one, but the page never distinguishes measured noise from noise that a decoder painted on.
Put together: all three treat a decoded image as a recording of something. In AVIF, the last stage of decoding is allowed to invent high-frequency detail. That is the gap this page fills.
In AV1 the noise is a step in the output process, not part of the picture
The AV1 Bitstream and Decoding Process Specification places a film grain synthesis process inside the output process, which is where the decoded frame is assembled for display, and it runs after reconstruction and after the in-loop filters. That placement is the whole story in one sentence: the grain is added to a finished picture, which means nothing downstream of it is allowed to quantize it, transform it, or filter it away. Every other kind of texture in a compressed image has survived a transform, a quantization step, and a loop filter. This texture has survived nothing, because it did not exist yet.
The syntax that controls it is small. In section 5.9.30 the specification reads a one-bit apply_grain flag, a sixteen-bit grain_seed, and for a still picture, since the frame is not an inter frame, update_grain is forced to one and a full parameter set follows (AV1 specification, §5.9.30). Then come the parts that decide what the noise looks like:
- num_y_points, at most 14 points of a piecewise linear scaling curve for luma, each point carrying an 8-bit position and an 8-bit value (AV1 specification, §5.9.30 and §6.8.20).
- num_cb_points and num_cr_points, each capped at 10 points, unless the chroma curve is simply borrowed from luma via chroma_scaling_from_luma (AV1 specification, §6.8.20).
- ar_coeff_lag, which sets how many auto-regressive coefficients are coded: the specification computes numPosLuma as 2 × lag × (lag + 1), so lag 0 through 3 gives 0, 4, 12, or 24 positions (AV1 specification, §5.9.30).
- grain_scaling_minus_8, a two-bit field that sets the divisor applied to the scaled noise, and ar_coeff_shift_minus_6, which sets the coefficient range to one of [-2, 2), [-1, 1), [-0.5, 0.5), or [-0.25, 0.25) (AV1 specification, §6.8.20).
- overlap_flag, which decides whether adjacent noise blocks get blended, and clip_to_restricted_range, which decides whether the result is clipped to the legal video range (AV1 specification, §5.9.30).
That list is the entire vocabulary. There is no field for "the sensor's read noise was 2.3 electrons." There is a seed, a curve, a filter, and two switches.
The generator's raw material is a table of 2,048 numbers
Here is the detail that changes how you read a noisy AVIF. The reference implementation of AV1, libaom, generates the noise by indexing a single hard-coded array. The comment above that array in the decoder source reads: "Samples with Gaussian distribution in the range of [-2048, 2047] (12 bits) with zero mean and standard deviation of about 512" and adds that the values "should be divided by 4 for 10-bit range and 16 for 8-bit range" (libaom, av1/decoder/grain_synthesis.c, checked 17 November 2026). The array holds 2,048 entries, and the index into it is an eleven-bit random number — the same file defines gauss_bits as 11 (libaom, av1/decoder/grain_synthesis.c).
So the vocabulary of "camera noise" in an AVIF is 2,048 integers with a known distribution and a known standard deviation. Everything else — the amplitude at each brightness, the spatial correlation, the chroma relationship — is a parameter you can read out of the header. A physical sensor's noise is not like that: it is the result of photon arrival statistics, read noise, dark current, and a fixed pattern stamped by the silicon, and its amplitude is tied to exposure in a way the photographer did not choose.
| What a detector assumes it is measuring | What an AVIF actually supplies |
|---|---|
| photon shot noise, whose amplitude follows the light | a 256-entry lookup table indexed by the decoded luma value |
| read noise, roughly constant and set by the sensor | a signed parameter, grain_scaling_minus_8, dividing the noise by 2 to 8 |
| fixed-pattern noise bound to one sensor | a 16-bit seed, so 65,536 possible fields per parameter set |
| noise that was recorded before compression | noise added after reconstruction, so never transformed or quantized |
| independently noisy chroma channels | chroma borrowed from luma whenever chroma_scaling_from_luma is set |
The last row is worth dwelling on, because it is the easiest one to check and the hardest one to explain away. When chroma_scaling_from_luma is one, the specification derives the chroma scaling curve from the luma curve, and when chroma grain is synthesized it is filtered together with a luma term, so the chroma noise is a smoothed copy of the luma noise rather than an independent measurement (AV1 specification, §7.18.3.3). A camera has three noisy channels that are correlated by the color filter array and the demosaic, but the correlation has a phase structure tied to the Bayer pattern. A synthesized layer has a correlation defined by two coefficients and a downsample.
Every frame is cut from a 64 by 64 window of one 5,986-sample template
The template itself is small enough to describe exactly. Section 7.18.3.3 generates an array named LumaGrain that is 82 samples wide and 73 samples high of white noise, then applies the auto-regressive filter to it starting at row 3 and column 3 and stopping three samples short of the right edge (AV1 specification, §7.18.3.3). That is 5,986 samples in total, of which 5,320 get filtered and 666 — 11.1% of the template, a border three samples wide on the top, left, and right — never do (calculated here from the loop bounds in §7.18.3.3).
Then the frame is assembled from that template in blocks. The add noise process works on stripes 32 luma samples high and builds 34 by 34 noise blocks on a 32-sample stride, pulling each block out of the template at a random offset (AV1 specification, §7.18.3.5). The offsets are not free: for luma the specification computes 9 + 2 × offsetX and 9 + 2 × offsetY, where each offset comes from four bits of an 8-bit random number, so there are sixteen possible origins per axis, all odd, spanning 9 to 39 (AV1 specification, §7.18.3.5). Sixteen origins plus a block 34 wide means every luma grain pixel in the frame is cut from columns 9 through 72 and rows 9 through 72 of the template — a 64 by 64 window (calculated here from the offsets and block size in §7.18.3.5). The 666 unfiltered border samples sit outside that window and are never used.
Follow that to a normal photograph and the numbers get strange:
- A 4032 by 3024 frame holds 12,192,768 pixels. Divided by 5,986 template samples, each sample of the template is reused an average of 2,036.9 times across the frame (calculated here from the frame size and the template dimensions in §7.18.3.3).
- The frame is covered by 126 noise blocks per 32-row stripe and 95 stripes, which is 11,970 blocks in total (calculated here from the block stride and frame size in §7.18.3.5).
- Each block picks one of 16 × 16 = 256 possible origins, so within a single stripe of 126 blocks, the expected number of blocks that repeat an origin already used in that same stripe is about 26, and across the frame that is roughly 2,500 duplicated patch pairs (calculated here assuming the origins are drawn uniformly, which the use of the low four bits of an 8-bit random number in §7.18.3.5 makes reasonable).
Read item 3 again in plain words. A twelve-megapixel AVIF contains at most 256 distinct 32 by 32 grain patterns, and in practice about 26 of the 126 blocks in every stripe are exact copies of another block in the same stripe, before the brightness scaling is applied. The copies are not bit-identical in the final image, because each block's noise is multiplied by the scaling value for that block's local brightness. They are identical in shape. Normalize each 32 by 32 residual to unit variance and the duplicates match.
This is the check that a sensor cannot pass. A real sensor's noise never repeats a 32 by 32 pattern anywhere in the frame, because the fixed-pattern component is one pattern for the whole sensor and the random component never repeats. A synthesized layer repeats itself thousands of times by construction.
Two smaller details fall out of the same section and are useful for reading a picture rather than a spec. The overlap blending, when overlap_flag is one, averages the two columns and two rows where blocks meet with weights of 27 and 17 out of 32 (AV1 specification, §7.18.3.5) — so the seams are not sharpened or faded, they are mixed, which suppresses any visible grid. And the stripe seed is derived per stripe from the frame seed with the arithmetic in the same section, so the offset pattern changes every 32 rows; there is no global repetition grid you can see by squinting, which is why this survives visual inspection and does not survive a correlation test.
The brightness curve is a piecewise line with flat ends
A detector that looks at noise amplitude across tonal ranges is looking for a curve. In AVIF that curve is an explicit list of at most 14 points for luma, expanded into a 256-entry table by linear interpolation, with the value held constant below the first point and above the last (AV1 specification, §7.18.3.4). Fourteen points means at most thirteen straight segments, with flat tails at both ends.
That is a shape a physical process does not produce. Take an illustrative three-point curve — 30 at luma 40, 180 at luma 120, 90 at luma 200 — and run it through the specification's formula, where the final standard deviation is the template deviation multiplied by the table value and divided by 2 raised to ScalingShift. With grain_scaling_minus_8 at zero, ScalingShift is 8, and the template deviation for an 8-bit picture is about 512 divided by 16, so about 32 levels.
| Luma value | Table value from the illustrative curve | Resulting noise deviation, in levels |
|---|---|---|
| 0 to 39 | 30 (flat tail) | 3.8 |
| 80 | 105 | 13.1 |
| 120 | 180 | 22.5 |
| 160 | 135 | 16.9 |
| 200 to 255 | 90 (flat tail) | 11.3 |
Every figure in the last column is calculated here from the interpolation and scaling rules in §7.18.3.4 and the template deviation reported in libaom's source comment; the curve itself is an example, not a measured file. What matters is the shape: two kinks at luma 40 and 120, then a straight line, then a flat tail above 200. Plot measured noise deviation against brightness on a real photograph and you get a smooth curve with no corners, because photon statistics do not have corners. Plot it on a grainy AVIF and you can, in principle, read the encoder's 14 numbers off the graph.
The flat tails are the tell that is easiest to spot without arithmetic: above the last control point the noise stops changing with brightness entirely, and below the first point it also stops. If your shadows from luma 0 to 30 all carry the same noise level to within a rounding step, you are not looking at a sensor.
Two files with the same seed carry the same noise
Nothing in this process is sampled at encode time in a way that leaves the decoder any freedom. The seed is sixteen bits, the random number generator is a shift register defined in the specification, the noise values come from the fixed table, and the filter is integer arithmetic with a defined rounding (AV1 specification, §7.18.3.2 and §7.18.3.3). Given the same parameters and the same seed, two different pictures receive the same noise field, and the same picture re-encoded twice with those settings receives it twice.
The seed space is 65,536 values, so the chance that two unrelated grainy AVIF files chosen at random carry the same field is 1 in 65,536, about 0.0015% (calculated here from the 16-bit field width in §5.9.30). That is small enough to be a coincidence test and large enough that an encoder which sets the seed once and reuses it across a batch will produce a family of files with correlated grain. If you are looking at a set of images that claim to be different photographs and their grain correlates in patches, the grain was not recorded with the photographs.
Whether the grain is in your pixels depends on your export path
This is the part that matters when you upload a file to a detector, and it is where the standards go quiet in a way you can verify in a few minutes.
dav1d, the decoder used by most browsers and by many image pipelines, exposes a setting whose header comment reads "whether to apply film grain on output frames (default 1)" (dav1d, include/dav1d/dav1d.h, checked 17 November 2026). The same header warns that if that setting is true, film grain was already applied, and calling the separate apply function again "leads to double application of film grain" (dav1d, include/dav1d/dav1d.h). So in the default configuration, grain is on, and a caller can also add it a second time by mistake.
libaom's own command line decoder ships the opposite switch: an option named skip-film-grain, described as "Skip film grain application", wired to a decoder control flag (libaom, apps/aomdec.c, checked 17 November 2026). Same bitstream, same library family, two different output images depending on a flag.
libavif, the library most applications use to read AVIF, exposes ignore switches for Exif, XMP, and ICC profiles and none for grain, and its changelog from version 0.1.0 in 2019 through 1.4.2 in May 2026 never mentions film grain at all (libavif, include/avif/avif.h and CHANGELOG.md, checked 17 November 2026). The AVIF specification itself, version 1.2.0 dated 16 October 2025, contains no text about film grain, grain synthesis, or apply_grain anywhere including its index of terms defined by reference to AV1 (AVIF specification v1.2.0, checked 17 November 2026).
Put those four facts in a row and you get a container format whose specification is silent about a pixel-level feature that its codec defines, whose reference decoder can be told to skip it, and whose common library exposes no control over it. The practical consequence: the pixels that arrive at a detector depend on which decoder produced them and with which settings, not only on the file. A web service that converts your upload server-side may hand the detector an image with no grain at all, while the file you have on disk, opened in a viewer that applies grain, is visibly noisy. Same bytes, two pictures.
That also means "the tool said real" and "the tool said AI" can both be true about one upload, and the difference is not the model. It is the export path.
What the grain costs, and why that matters more than what it looks like
Here is the arithmetic that should recalibrate how you read file sizes. The film grain parameters in section 5.9.30 are read once per frame. Adding up the fields for a modest real-world set — apply_grain, a 16-bit seed, three luma points, chroma scaling from luma, lag 2 so twelve luma coefficients, the two shift fields, and the two switches — comes to 176 bits, which is 22 bytes (calculated here by summing the field widths in §5.9.30). A fully specified version with separate chroma curves, two chroma points each, and thirteen chroma coefficients per plane comes to 504 bits, or 63 bytes (same method).
Now put those bytes against the pixels they change. In a twelve-megapixel frame the minimal grain header is 22 bytes for 12,192,768 pixels, which is 554,217 pixels per byte of parameter data; the full set is 193,536 pixels per byte (calculated here from 4032 × 3024 and the two bit totals).
| Grain parameter set | Header cost | Pixels per byte of parameters |
|---|---|---|
| luma only, three points, lag 2 | 176 bits, 22 bytes | 554,217 |
| luma and chroma, separate curves, lag 2 | 504 bits, 63 bytes | 193,536 |
In a JPEG, noise is expensive, because every noisy block costs coefficients. That is why a heavily grained JPEG is large, and why "this file is noisy and also small" has historically been a mild sign of something. In AVIF, noise is nearly free, because the noise is not in the coefficients. A 40 KB grainy AVIF at twelve megapixels is not a contradiction; it is the format working as designed.
Five checks that separate synthesized grain from sensor noise
None of these requires the original file, and none of them proves what the picture depicts. They separate one mechanism from another.
| Check | What synthesized grain does | What sensor noise does |
|---|---|---|
| 32 by 32 patch matching on the residual | about 26 duplicates per 126-block stripe, all with matching shape | no exact repeats anywhere in the frame |
| Noise deviation plotted against luma | piecewise line, at most 13 segments, flat at both ends | smooth curve, no corners, no plateau |
| Luma to chroma residual correlation | high and phase-locked to a 2 by 2 downsample when chroma is derived from luma | correlated through the CFA, with a different spatial phase |
| Residual autocorrelation at lag 1 to 3 | set by ar_coeff_lag and the coded coefficients, so a chosen value | close to zero beyond the pixel, plus a fixed pattern that is stable across the frame |
| Noise near black and near white | one-sided if clip_to_restricted_range pins the output to 16 and 235 | clipped by the sensor and the tone curve, not by a flag |
The last row deserves a note. When clip_to_restricted_range is set, the specification clamps the grained output to 16 and 235 for luma and 240 for chroma in 8-bit (AV1 specification, §7.18.3.5, and libaom defines the same constants as min_luma_legal_range and max_luma_legal_range). Grain added to a shadow at luma 18 can only push up, never down, so the residual distribution in the deepest shadows becomes asymmetric in one direction. In the highlights the asymmetry is mirrored. That is a signature of a clamp applied after noise, and it is not what a sensor does, because a sensor clips before the tone curve and its noise at the top end is mostly gone by then.
Four failure modes you will actually meet
These are the shapes this problem takes in practice, and each one produces a confident score from a detector that is doing nothing wrong.
- A real photograph, re-exported as AVIF with grain enabled, becomes more real. The grain is not a lie about the scene, but it is a synthetic layer, and a detector reading noise as evidence will move toward "camera". The photograph was genuine before the export and the export added evidence.
- A generated image plus grain reads as a photograph. This is the mirror case and the one that matters for verification work: the cheapest possible addition of "sensor texture" is a 22-byte header field.
- The grain disappears between the file and the detector. A server-side conversion, a re-save, a decoder that skips grain, or a denoiser in an editing app removes the layer without touching the picture. The score moves, the photograph does not.
- A grainy AVIF is re-encoded to PNG or JPEG. Now the grain is baked into the pixels and cannot be switched off, and every subsequent analysis inherits it as if it had been photographed. This is the laundering step, and it is usually accidental — someone converted a file to send it to you.
A ten-minute test on one file
You need one grainy AVIF, one image editor that can show a residual, and a spreadsheet.
- Decode the same file twice, once with grain applied and once with it skipped, using two different tools rather than two settings of the same tool. If the two outputs differ in their fine texture and nowhere else, the texture is synthesized.
- Pick a flat midtone area, at least 200 by 200 pixels, with no edges, and extract the residual by subtracting a heavily blurred copy.
- Measure the residual's standard deviation. Repeat on flat patches at five brightness levels from deep shadow to near-white.
- Plot deviation against brightness. Look for corners and flat ends. Two kinks and two plateaus is a 14-point table, not a sensor.
- Take one 32 by 32 patch of residual, normalize it to zero mean and unit variance, and search the whole residual image for other patches whose normalized values match above 0.99.
- Count the matches and note where they sit. Dozens of matches inside one 32-row stripe is the block tiling described above.
- Compare the luma residual with the chroma residual at the same location after downsampling the luma by two. A near-perfect match means the chroma curve was borrowed from luma.
- Look at the residual histogram in the darkest 5% of the frame. A one-sided distribution means the noise was added and then clamped.
- Send both decodes to the same detector and record both scores. If they differ, the number you were about to quote describes your export path, not the picture.
If steps 4, 5, and 7 all point the same way, you are looking at synthesized grain. If only one does, treat the result as inconclusive, because a re-encoded real photo with strong denoising, or a phone that applies its own grain, can produce single-check false alarms.
How to read the score after this
The useful conclusion is not "AVIF lies". It is narrower and more practical: in this format, noise is a parameter, and a detector that uses noise is reading a parameter.
| What you know | What the score can mean |
|---|---|
| the file is AVIF, grain confirmed synthesized, nothing else known | the noise channel is compromised; the score reflects other evidence only |
| the file is AVIF, grain absent, picture otherwise photorealistic | the noise channel is silent, because the decoder removed it; absence proves nothing |
| the file was converted to PNG before upload | the grain is now pixels; any noise-based conclusion is inherited from the conversion |
| the file is AVIF, grain present, and the image is a scan of a document | grain was added for looks; treat the score as measuring the page, not the sensor |
Our own recommendation for a page like this one: report the evidence layer by layer, and do not let a single percentage stand in for a chain of decisions you can name. We have argued the same thing about metadata on a file, about color profiles, and about the compression history of a screenshot, and the argument does not change here — it just gets sharper, because this is the one layer whose entire design goal is to be indistinguishable from measurement.
What this page does not say
It does not say that a grainy AVIF is fake, or that grain proves anything about how an image was made. Grain synthesis is a legitimate feature with a legitimate purpose — it hides banding in flat gradients and restores the look of film — and the encoders that use it are usually trying to make a picture look better, not to fool a classifier.
It also does not say that AVIF is the only format where this happens, or that every AVIF carries grain. Most do not. The point is narrower: when a file does carry it, the noise in that file was authored, and every downstream judgment that treats noise as measurement is reading an author's choice.
And it does not tell you whether the scene is real. Grain is a statement about texture, not about events. If you need to know whether a photograph was taken, the layers that answer that question are the file's provenance record, the capture metadata if any survived, and the consistency of the scene — not the fine detail, which in this format can be drawn from a table of 2,048 numbers and tiled from a 64 by 64 window.
For the neighboring cases, see AI Image Detector vs Exif for what a file says before its pixels do, AI Image Detector and the ICC Profile for the other header that changes what a pixel means, AI Image Detector on iPhone HEIC Photos for the container that competes with this one, and How to Test an AI Image Detector Yourself if you want the sampling arithmetic behind any score you are about to quote.