Image Aspect Ratio Detector
Reads the natural width and height with the browser's Image API, divides them by their GCD to give a clean integer ratio (`1920×1080` → `16:9`), and matches the result against the most common screen, social, and camera ratios. No upload — the file is decoded locally and discarded when you clear it.
Everything runs in your browser — the file never leaves your device.
How to use
- Drop an image or click to pick one.
- Read the ratio in its simplest form, the decimal version (handy for CSS `aspect-ratio: 1.778 / 1`), and the megapixel count.
- Compare to the closest preset to know if you're effectively on 16:9, 4:3, etc.
Frequently asked questions
- Why does my 4032×3024 phone photo come out as 4:3?
- 4032 ÷ 1008 and 3024 ÷ 1008 both equal a small integer (4 and 3 respectively) — the GCD is 1008. That's standard for 12 MP phone sensors, which are physically 4:3 chips.
- What does "closest preset" mean?
- We score the image against a handful of named ratios (1:1, 4:3, 16:9, 21:9, 9:16, …) and pick whichever is nearest in absolute ratio difference. The percentage tells you how close — under 1% means it's effectively that preset; 5% means you're between two named ratios.
- Does it run on huge images?
- Yes — the browser decodes the image to read dimensions and then discards the decoded pixels. Even 50 MP files measure instantly. Only metadata stays in memory.
Related tools
Aspect Ratio Calculator
Convert between width × height and aspect ratio (16:9, 4:3, 21:9, …) — fit any ratio inside a container.
Image Crop (Aspect Ratio)
Crop any image to a standard aspect ratio (1:1, 16:9, 4:3, etc.) — centered automatically.
Image Padding & Border
Add solid or transparent padding and an optional border around any image. Fit to a target aspect ratio (1:1, 4:5, 16:9…) for Instagram, YouTube, or print — all in your browser.
DPI / Print Size Calculator
Pixels ↔ physical print size at any DPI. Common print presets (72 web, 150 draft, 300 photo, 600 fine art), megapixels, aspect ratio, and file size estimates.
Image Compressor
Compress and resize JPEG, PNG, and WebP images in your browser.
Image to Base64
Convert an image to a Base64 data URL you can paste anywhere.