PCA Scanner

Decompose any image into its principal components. PCA reveals hidden color patterns, manipulation artifacts, and steganography traces invisible to the naked eye.

500+ images analyzed

Drag & drop a file here, or

JPG PNG WebP GIF BMP AVIF Max 50MB • Processed in browser

3-Component Decomposition

Decomposes the RGB color space into three orthogonal principal components, revealing the dominant axes of color variation in the image.

Hidden Pattern Detection

The third principal component (PC3) can reveal manipulation artifacts, composite boundaries, and steganographic traces invisible in normal viewing.

100% Private

All PCA computation runs locally in your browser via Web Worker. Nothing is uploaded to any server. Your images never leave your device.

What is PCA for images

Principal Component Analysis (PCA) transforms the three correlated RGB color channels into three uncorrelated components ordered by how much image variation they capture. The first component (PC1) typically represents overall brightness and resembles a grayscale conversion. The second (PC2) captures the main chromatic contrast — often warm-vs-cool tones. The third (PC3) holds the residual variation, which in natural photos is mostly sensor noise. In manipulated images, PC3 often reveals structured artifacts invisible in normal viewing. For tonal distribution analysis, pair PCA with the Histogram Analyzer. For overall quality scoring, see the Quality Analyzer.

PCA in image forensics

PCA is a powerful forensic technique because it separates meaningful image content from noise and artifacts. When an image has been composited from multiple sources, PC3 often shows sharp boundaries between regions with different noise characteristics. AI-generated images may produce unusually clean or uniform PC3 components compared to photographs captured by real sensors. Color-graded or heavily filtered images show distinctive eigenvector orientations that differ from natural lighting. For dedicated AI detection, use the AI Detector. For noise pattern analysis, try the Noise Analysis Scanner.

Eigenvectors and variance

The eigenvectors describe the direction of each principal component in RGB color space — they tell you which mix of red, green, and blue makes up each component. The eigenvalues measure how much variance each direction captures. In a typical outdoor photo, PC1 might explain 90% of variance with an eigenvector close to equal RGB weights (luminance), while PC3 explains under 3%. Unusual variance distribution or eigenvector orientations can indicate non-standard color processing. For per-channel statistical breakdown, see the Histogram Analyzer. For bit-level channel inspection, try the Bit Plane Analyzer.

Steganography and hidden data

Steganographic techniques that embed data across color channels often disturb the natural correlation between RGB values. PCA is particularly effective at detecting these disturbances because the embedded data appears as structured noise in the minor components. When combined with contrast enhancement, even subtle steganographic modifications become visible as patterns in the PC3 view. For dedicated steganography detection, use the Stego Scanner. For LSB-level analysis, see the Bit Plane Analyzer. For compression-based detection, try the ELA Scanner.

The PCA Scanner processes your image entirely in the browser using a Web Worker for the matrix computations. The Jacobi eigenvalue algorithm decomposes the 3×3 covariance matrix to find the principal axes of color variation. Use the contrast slider to amplify subtle patterns in PC2 and PC3, and download any component as a PNG for further analysis. For a comprehensive forensic workflow, visit the photo forensics hub. To check full image metadata, start with the EXIF Checker. Learn more in our articles on image forensics guide and detecting edited photos.

Frequently Asked Questions

What is PCA and how does it work on images?

Principal Component Analysis (PCA) is a mathematical technique that finds the directions of greatest variation in data. Applied to images, it decomposes the three RGB color channels into three new uncorrelated components. PC1 captures the most variation (usually brightness), PC2 the second most (usually color contrast), and PC3 the least (usually noise or hidden artifacts). The tool computes a 3×3 covariance matrix from all pixel colors and finds its eigenvectors and eigenvalues.

What can PC3 reveal about an image?

In natural photographs, PC3 contains mostly random sensor noise — it looks like uniform static. If PC3 shows structured patterns, sharp edges, or distinct regions, this can indicate image manipulation, compositing from multiple sources, or embedded steganographic data. Use the contrast slider to amplify subtle patterns in PC3 for closer inspection.

What does variance explained percentage mean?

Variance explained tells you how much of the total color variation each component captures. In typical natural photos, PC1 explains 85–95% (most of the image information), PC2 explains 3–12%, and PC3 explains 1–3%. If PC3 explains more than about 5%, the image has unusual color properties that may warrant closer examination.

How is PCA different from looking at individual RGB channels?

RGB channels show fixed color separations — red, green, and blue as recorded. PCA finds the optimal separation based on the actual color distribution in each specific image. This means PCA can reveal patterns that exist across multiple channels simultaneously, which would be invisible when viewing R, G, or B individually. PCA is particularly effective at separating signal from noise.

What does the contrast slider do?

The contrast slider multiplies the difference of each pixel from the midpoint, making subtle variations more visible. This is especially useful for PC2 and PC3 where the actual variation may be very small. At 1.0× you see the normalized component as-is. At 3.0× or higher, faint patterns become clearly visible. The enhancement is applied only to the display — the underlying data and statistics remain unchanged.

Is my image uploaded to a server?

No. All PCA computation runs entirely in your browser using a Web Worker thread. The image data never leaves your device. No pixels, metadata, or analysis results are transmitted, stored, or logged on any server.