Browser-local image utility
Aspect Ratio Calculator
Calculate image and video aspect ratios instantly. Find matching dimensions, resize without distortion, and inspect image cropping — all without uploading a file.
Calculate Your Aspect Ratio
Enter any pixel width and height to reduce them to the exact mathematical ratio.
Enter Dimensions
Type resolution or dimensions in pixels to calculate the exact reduced ratio.
aspect-ratio: 16 / 9;Find Image Dimensions From an Aspect Ratio
Pick a ratio, enter one known side, and get the matching width or height.
Target Aspect Ratio & Known Side
Specify your desired aspect ratio and enter one known dimension to compute the other.
aspect-ratio: 16 / 9;Resize Dimensions Without Distortion
Scale an existing size up or down while keeping the original proportions locked.
Original & Target Dimensions
Scale dimensions up or down while keeping the original aspect ratio locked.
Ratio library
Common Aspect Ratios
Select a verified standard to load its proportions into the active calculator tab.
Local image inspector
Check an Image's Aspect Ratio
Drop any image to detect its exact pixel dimensions, identify its closest standard aspect ratio, and preview how it will fit or crop into other frames.
Technical guide
How to Calculate Aspect Ratio
A practical guide to aspect ratio mathematics, pixel resolutions, proportional scaling, and CSS layout behavior for designers, developers, photographers, and editors.
The one-line formula
Divide both dimensions by their Greatest Common Divisor for the exact integer ratio.
What is an Aspect Ratio?
An aspect ratio expresses the proportional relationship between the width and height of an image, video, screen, or canvas. It is written as two numbers separated by a colon, such as 16:9 or 4:3.
Critically, an aspect ratio describes shape, not physical size or pixel count. Both a 1920 × 1080 Full HD monitor and a 3840 × 2160 4K Ultra HD television share the exact same 16:9 aspect ratio despite a 4× difference in total pixel density.
The GCD formula
To simplify any pixel resolution W × H into its lowest whole-number ratio, find the Greatest Common Divisor (GCD) using the Euclidean algorithm, then divide both dimensions by that GCD:
Example: For 1920 × 1080, GCD(1920, 1080) = 120. Dividing gives 16:9.
Aspect Ratio vs. Resolution
Why two images with identical ratios can look completely different in clarity and file size.
The relative proportion between width and height. Specifies geometric frame shape regardless of physical dimensions.
16:9 · 1:1 · 4:5The actual count of horizontal and vertical pixels making up the digital raster image.
1920 × 1080 = 2,073,600 pxPixels per inch when transferred onto physical paper. High-fidelity photo printing usually targets 300 PPI.
Inches = Pixels ÷ 300Resize Without Distortion
When an image is placed into a container with a different aspect ratio, you must choose between three behaviors:
- Fit (Contain): Scales the image to fit entirely inside the frame. Preserves 100% of the original content without distortion, but introduces empty bars (letterbox or pillarbox).
- Fill (Cover): Scales the image to completely cover the container area. Eliminates empty margins, but trims (crops) the excess edges that exceed the target ratio.
- Stretch (Distort): Forces both width and height to match the container independently. Causes severe visual squishing or stretching. Never recommended for photographs or videos.
CSS aspect-ratio implementation
Modern layout spec
Modern browsers natively support the CSS aspect-ratio property, replacing the legacy 16:9 padding-top hack:
/* Widescreen Responsive Video Frame */
.video-container {
width: 100%;
aspect-ratio: 16 / 9;
object-fit: cover;
}
/* Square Avatar Profile */
.avatar {
width: 96px;
aspect-ratio: 1 / 1;
border-radius: 50%;
}Eliminates Cumulative Layout Shift (CLS) by reserving exact canvas bounds before media finishes downloading.
Common Resolutions & Aspect Ratios
Verified standard dimensions| Aspect Ratio | Standard Name | Example Resolution | Decimal | Primary Uses |
|---|---|---|---|---|
| 1:1 | SOCIAL | 1080 × 1080 | 1.0000 | Square images, Instagram feed, Profile avatars |
| 4:3 | PHOTO | 1200 × 900 | 1.3333 | Traditional television, iPad screens, Micro Four Thirds |
| 3:2 | PHOTO | 1500 × 1000 | 1.5000 | 35mm photography, DSLR cameras, Surface Pro laptops |
| 16:9 | VIDEO | 1920 × 1080 | 1.7778 | Widescreen HDTV, YouTube video, Computer monitors |
| 9:16 | VIDEO | 1080 × 1920 | 0.5625 | TikTok, Instagram Reels, YouTube Shorts, Mobile stories |
| 4:5 | SOCIAL | 1080 × 1350 | 0.8000 | Instagram vertical portrait posts (optimal feed coverage) |
| 2:3 | PHOTO | 1000 × 1500 | 0.6667 | Portrait photography, Pinterest pins, Poster prints |
| 21:9 | VIDEO | 2520 × 1080 | 2.3333 | Ultrawide gaming monitors, Anamorphic cinematic films |
| 16:10 | DISPLAY | 1920 × 1200 | 1.6000 | MacBook displays, WUXGA screens, Modern productivity laptops |
| 5:4 | DISPLAY | 1280 × 1024 | 1.2500 | Legacy desktop monitors (SXGA), 8×10 photographic prints |
Answers & clarifications
Frequently Asked Questions
Clear answers to the most common questions regarding aspect ratios, image dimensions, resizing, and browser privacy.
Still curious?
Send a dimension, a browser, and the result you expected. We can reproduce a calculation without a private image.
[email protected]How do I calculate the aspect ratio of an image?
What is the difference between an exact ratio and a standard ratio?
How can I resize an image without distorting its aspect ratio?
Are my uploaded photos or images stored on your servers?
What are the most common aspect ratios for social media?
How do I convert pixel dimensions to physical print inches?
What is the CSS aspect-ratio property and how do I use it?
Start with the tool
Ready to resolve your next ratio?
Calculate exact proportions, find matching dimensions, or inspect an image without sending it anywhere.