DCT Coefficient Viewer
Visualizes the Discrete Cosine Transform coefficients of JPEG 8×8 blocks. Double compression — saving a JPEG, editing it, and re-saving — creates periodic artifacts in the coefficient histogram that reveal the edit.
500+ images analyzed
Drag & drop a file here, Ctrl+V to paste, oror
8×8 Block DCT
Computes the Discrete Cosine Transform on every 8×8 pixel block — the same transform JPEG uses for compression.
Double Compression Detection
Analyzes coefficient histogram periodicity to detect re-compression artifacts that indicate JPEG re-saving after editing.
100% Private
All analysis runs locally in your browser via Web Worker. Nothing is uploaded to any server.
How DCT coefficient analysis works
JPEG compression divides an image into 8×8 pixel blocks and applies the Discrete Cosine Transform to each one. This converts spatial pixel data into frequency coefficients — the DC component captures average brightness, while AC coefficients capture edges and texture. The DCT Viewer recomputes this transform and visualizes the coefficient distribution. When a JPEG is edited and re-saved, the second compression pass creates periodic artifacts in the coefficient histogram — a telltale sign of manipulation. For compression-level error analysis, combine with the ELA Scanner.
Why double compression matters
An unedited photo from a camera is compressed exactly once. When someone opens a JPEG, modifies it, and saves it again, the second compression quantizes already-quantized coefficients. This creates a characteristic comb-like pattern in the histogram — peaks at multiples of the new quantization step. The periodicity score quantifies this pattern. A score above 2.5 strongly indicates re-compression. For JPEG quality-level splice detection across image regions, use the JPEG Ghost Scanner.
Visualization modes explained
AC Energy shows the sum of absolute AC coefficients per block as a heatmap. Blocks with different compression history stand out in energy. DC Component visualizes the average brightness of each 8×8 block — useful for seeing the overall luminance structure. Blockiness highlights discontinuities at 8×8 block boundaries — stronger blockiness in some regions may indicate a pasted element compressed at a different quality. For lighting direction analysis, try the Luminance Gradient Scanner.
Who uses DCT analysis
Forensic analysts use DCT analysis to prove an image was re-saved after editing — a key piece of evidence in manipulation cases. Journalists verify that press photos haven't been re-compressed, which would indicate post-capture editing. Insurance investigators detect doctored claim photos. Researchers studying JPEG compression artifacts use it to understand quantization behavior. For metadata-level verification, combine with the Authenticity Checker. For a complete forensic workflow, visit the photo forensics hub.
DCT coefficient analysis is the most direct way to detect JPEG re-compression. While ELA shows error-level differences and the JPEG Ghost Scanner reveals quality-level splices, the DCT Viewer examines the mathematical fingerprint of the compression itself. For noise-level manipulation, use the Noise Analysis Scanner. For AI-generated image detection, try the AI Detector. All processing runs entirely in your browser — your images are never uploaded. Learn more in our articles on JPEG compression artifacts and JPEG ghost analysis.