Skip to main content
Ratioby ButFix

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.

GCD-exact simplificationBrowser-local image decodingFit, fill, and crop previews
ratio / workspace
Live

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.

px
px
Live mathematical GCD reduction applied instantly.
Simplified Aspect Ratio
16:9
Landscape
Decimal Value
1.7778
Source Dimensions
1920 × 1080 px
Standard Match
Exact Standard Match
Exactly matches standard 16:9 (Widescreen HDTV, YouTube video).
CSSaspect-ratio: 16 / 9;

Ratio library

Common Aspect Ratios

Select a verified standard to load its proportions into the active calculator tab.

10 verified standards

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.

image / inspector
Local decode
Local browser privacy guarantee: Your image is processed locally in your browser. It is not uploaded to our servers. Decoding uses the browser's File API and a temporary in-memory object URL.
Drop an image above to inspect dimensions, exact ratio, and simulate fit & crop previews.

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

Ratio = Width ÷ Height

Divide both dimensions by their Greatest Common Divisor for the exact integer ratio.

1920 ÷ 120 : 1080 ÷ 120 = 16 : 9

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.

16:91920 × 1080 px
16:93840 × 2160 px

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:

1. Divisor = GCD(Width, Height)
2. Ratio Width = Width ÷ Divisor
3. Ratio Height = Height ÷ Divisor

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.

01Aspect Ratio

The relative proportion between width and height. Specifies geometric frame shape regardless of physical dimensions.

16:9 · 1:1 · 4:5
02Pixel Resolution

The actual count of horizontal and vertical pixels making up the digital raster image.

1920 × 1080 = 2,073,600 px
03Print Density (PPI / DPI)

Pixels per inch when transferred onto physical paper. High-fidelity photo printing usually targets 300 PPI.

Inches = Pixels ÷ 300

Resize 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

Copy-ready

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
Common aspect ratios, standard names, example resolutions, decimal values, and primary uses.
Aspect RatioStandard NameExample ResolutionDecimalPrimary Uses
1:1SOCIAL1080 × 10801.0000Square images, Instagram feed, Profile avatars
4:3PHOTO1200 × 9001.3333Traditional television, iPad screens, Micro Four Thirds
3:2PHOTO1500 × 10001.500035mm photography, DSLR cameras, Surface Pro laptops
16:9VIDEO1920 × 10801.7778Widescreen HDTV, YouTube video, Computer monitors
9:16VIDEO1080 × 19200.5625TikTok, Instagram Reels, YouTube Shorts, Mobile stories
4:5SOCIAL1080 × 13500.8000Instagram vertical portrait posts (optimal feed coverage)
2:3PHOTO1000 × 15000.6667Portrait photography, Pinterest pins, Poster prints
21:9VIDEO2520 × 10802.3333Ultrawide gaming monitors, Anamorphic cinematic films
16:10DISPLAY1920 × 12001.6000MacBook displays, WUXGA screens, Modern productivity laptops
5:4DISPLAY1280 × 10241.2500Legacy 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.

support@butfix.com
How do I calculate the aspect ratio of an image?
Divide the image's pixel width by its pixel height to obtain the decimal ratio, or divide both numbers by their Greatest Common Divisor (GCD) to find the simplified integer fraction. For example, a 1920×1080 image has a GCD of 120, simplifying directly to 16:9.
What is the difference between an exact ratio and a standard ratio?
An exact ratio is the precise mathematical simplification of your dimensions (for example, 1366×768 simplifies exactly to 683:384). A standard ratio is an established industry preset (like 16:9). While 1366×768 is designed to approximate 16:9 widescreen screens, it has a 0.05% mathematical variance. Ratio by ButFix distinguishes both so you always know whether dimensions are exact or rounded.
How can I resize an image without distorting its aspect ratio?
Multiply or divide both width and height by the same scaling factor. If you know your target width, calculate the matching height with: Height = Target Width × (Original Height / Original Width). Our 'Resize Proportions' tab locks the ratio and automatically computes proportional dimensions as you type.
Are my uploaded photos or images stored on your servers?
No. All image inspection and dimension decoding happens 100% locally inside your web browser using the HTML5 File API and the browser's built-in image decoder. Your files never leave your device, no image data is transmitted across the network, and nothing is stored.
What are the most common aspect ratios for social media?
The most common formats are 1:1 (square, optimal for Instagram feed and LinkedIn carousels), 4:5 (vertical portrait, maximum vertical real estate in the Instagram feed), 9:16 (full-screen vertical video for TikTok, Instagram Reels, and YouTube Shorts), and 16:9 (standard widescreen for YouTube videos and X/Twitter cards).
How do I convert pixel dimensions to physical print inches?
Divide the pixel dimension by your printer's dots per inch (DPI or PPI). For high-quality photographic printing at 300 PPI, a 3000×2000 pixel image prints cleanly at 10×6.67 inches (3000 ÷ 300 by 2000 ÷ 300).
What is the CSS aspect-ratio property and how do I use it?
The modern CSS aspect-ratio property sets a preferred aspect ratio for any container element, preventing layout shift while assets load. Simply apply 'aspect-ratio: 16 / 9;' or 'aspect-ratio: 1 / 1;' in your stylesheet. You can copy the exact CSS snippet directly from our calculator results.

Start with the tool

Ready to resolve your next ratio?

Calculate exact proportions, find matching dimensions, or inspect an image without sending it anywhere.