Aspect Ratio Calculator

Upload an image or type a width and height to reduce the ratio, fit a target shape with a crop preview, or browse common resolutions.

Images are measured on a local canvas and never uploaded. The calculations run offline.

—
Greatest common divisor
—
Decimal value
—
Orientation
—

How It Works

The calculator runs three small jobs on your numbers: reduce them, resize them, and compare them against the sizes people actually ship. Load an image and its pixel dimensions fill in the width and height fields automatically, or just type them.

GCD reduction
The simplest ratio is both dimensions divided by their greatest common divisor, found with the Euclidean algorithm — repeatedly replace the larger number by the remainder until one side reaches zero. For 1920 and 1080 the GCD is 120, so the ratio is (1920÷120):(1080÷120) = 16:9. The divisor is printed alongside the answer so you can verify the arithmetic by hand.
Portrait, landscape, and the decimal check
A width greater than the height is landscape; smaller is portrait; equal is square. The decimal value (width ÷ height) is the fastest cross-check: 1.7778 is 16:9, 1.6 is the 3:2 photo look, 1.0 is square, and anything under 1 flips to vertical. Ratios like 9:16 are the same shape as 16:9 — just rotated — and the tool keeps your orientation as written.
The 4K ladder
Modern displays scale 16:9 by whole steps: 1280×720 → 1920×1080 → 2560×1440 → 3840×2160 → 7680×4320. Each rung is exactly double the previous linear size, meaning four times the pixels — which is why "4K" (3840 wide) needs four Full HD panels to cover it, and why cropping a 4K photo down to 1080p loses no sharpness in the output box.

Frequently Asked Questions

Why is 1920 × 1080 exactly 16:9?

Divide both numbers by their greatest common divisor, 120: 1920 ÷ 120 = 16 and 1080 ÷ 120 = 9. Every standard 16:9 resolution on the ladder (1280×720, 2560×1440, 3840×2160) is just 16:9 multiplied by 80, 160 and 240 — which is why the same screen shape tiles cleanly from phone to TV.

What ratios do Instagram and TikTok use?

TikTok is full-screen vertical: 9:16 (1080×1920). Instagram Reels and Stories are also 9:16; feed posts accept 1:1 (1080×1080), 4:5 (1080×1350) portrait and 1.91:1 (1080×566) landscape. The Reference tab covers the square and vertical presets; 4:5 is unusual because it is portrait but not full-screen.

Does the tool assume square pixels?

Yes. A ratio written as 16:9 counts pixels, not physical shape — it only equals the on-screen shape when pixels are square. Before ~2010, SD video (720×576 PAL, 720×480 NTSC) used non-square pixels with a pixel aspect ratio that stretched them back to 4:3. For any modern screen, image or video export, the square-pixel assumption is correct.

Does loading an image change or upload my file?

Neither. The file is decoded into a local canvas purely to measure its dimensions and draw the crop-preview overlay. Your original file is untouched, nothing is downloaded or re-encoded unless you ask, and no bytes leave your device.

Is anything uploaded to a server?

No. The GCD math, the fit calculations and the canvas overlay are plain JavaScript running in your browser. The tool keeps working with the network switched off.