DCT Block Viewer
Visualizes the Discrete Cosine Transform coefficients of JPEG 8×8 blocks — AC energy, the DC component and block boundaries. An exploration tool: it shows you the block structure, it does not return a verdict.
Drag & drop a file here, Ctrl+V to paste, oror
Runs in your browser
8×8 Block DCT
Computes the Discrete Cosine Transform on every 8×8 pixel block — the same transform JPEG uses for compression.
Block Energy Statistics
Reports mean AC energy per block, its spread, the zero-coefficient ratio and how many blocks sit far from the mean — figures you read alongside the map, not a verdict.
100% Private
All analysis runs locally in your browser via Web Worker. Nothing is uploaded to any server.
How it works
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 Block Viewer recomputes this transform on the decoded pixels and visualizes the result as a map: per-block AC energy, the DC component, or the strength of the 8×8 boundaries. Because it reads decoded pixels rather than the quantized values stored in the file, it describes the block structure you can see — it does not recover the quantization tables and does not tell you how many times the file has been saved. For compression-level error analysis, combine with the ELA Scanner.
What the block map shows
AC energy is the amount of high-frequency detail in a block, so the map is mostly a picture of content: edges, hair, foliage and text run hot, skies and walls run cool. What is worth looking for is a block that differs sharply from its neighbours in a region that looks uniform, or a run of unusually strong 8×8 boundaries in one area of the frame — either can be worth investigating further, and neither is evidence on its own. 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. It reads mostly as a detail map, since AC energy follows texture. 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 — these rise with coarse compression over smooth areas, and also wherever the image itself has hard edges. For a view of the same edges as brightness gradients rather than DCT coefficients, try the Luminance Gradient Scanner.
Who uses DCT analysis
Analysts use a block map as a first look at an unfamiliar file, alongside tools that do return a measurement. Students and researchers use it to see what the DCT actually does to an image — the same transform JPEG applies, made visible. Anyone comparing two versions of a photo can put the maps side by side and see where the block structure differs. For metadata-level verification, combine with the Authenticity Checker. For a complete forensic workflow, visit the photo forensics hub.
A DCT block map is a way of seeing compression structure, not of measuring it. If you need a figure, ELA shows error-level differences and the JPEG Ghost Scanner sweeps quality levels; to read the quantization tables as they are actually stored in the file, use JPEG Structure. 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.