Aspect Ratio Calculator - Width, Height & Social Media Sizes
Calculate ratios, scale dimensions, detect uploaded image sizes, and preview social media crops.
Features
About this tool
Aspect Ratio Calculator for Designers, Developers and Social Media Creators
An aspect ratio is the proportional relationship between an image or video width and height, expressed as two numbers separated by a colon, like 16:9 or 4:5. Getting it right matters for every visual medium: a YouTube thumbnail that is not 16:9 may be cropped or letterboxed, a TikTok video that is not 9:16 can show black bars, and an OG image that is not close to 1.91:1 can look wrong when your link is shared on Slack or LinkedIn.
Under the hood, the calculator simplifies whatever width and height you enter using the same math you would do by hand, just automated and rounding-safe. It scales both numbers by 1000 to preserve up to three decimal places (so a ratio like 1.91:1 is not truncated to a whole number), then finds the greatest common divisor of the two scaled integers with a recursive Euclidean algorithm and divides both sides by it. That is why 1920x1080 reduces to 16:9 and 1080x1350 reduces to 4:5 instantly as you type, without you needing to know the divisor is 120 or 270. A common hand-calculation mistake is assuming two images with the "same" ratio are interchangeable — 1920x1080 and 3840x2160 are both exactly 16:9, but a 1280x719 image is not, even though it looks close, so the tool also computes a decimal ratio (width divided by height, to four places) and matches it against nine standard presets to report the closest one along with how far off it is.
Beyond ratio math, the calculator scales dimensions bidirectionally — change either the new width or new height and the other is recalculated instantly so you never distort an image by typing both values by hand — and lets you upload an image to read its real pixel dimensions directly in the browser via the File and Image APIs, with nothing uploaded to a server. Once an image is loaded you can preview exactly how it will be cropped into six common frames (YouTube, Instagram post, Story/Reel, square, OG image, and Pinterest) using CSS aspect-ratio boxes, so you can see cropping problems before you export from a design tool. A Social Sizes reference tab covers exact pixel dimensions for 14 platforms, from YouTube channel art to LinkedIn covers, so you can jump straight from a platform name to the correct width, height, and simplified ratio.
How to Use the Aspect Ratio Calculator
- 1Enter your dimensionsType a width and height in pixels. The ratio is calculated and simplified automatically as you type.
- 2Or pick a ratio presetClick a ratio preset such as 16:9, 9:16, 1:1, 4:3, 4:5, or 1.91:1 to apply it to your current width.
- 3Scale to a new sizeEnter a new width or height in the Scale section. The other dimension is calculated instantly while keeping your ratio locked.
- 4Upload an imageUse Image Ratio Detection to load a local image. The tool reads its pixel dimensions, calculates the ratio, and shows the closest standard format.
- 5Preview social cropsAfter uploading an image, review how it fills YouTube, Instagram portrait, Story/Reel, square, OG image, and Pinterest frames before resizing or cropping in the image editor.
- 6Check Social Sizes tabSwitch to the Social Sizes tab for a complete reference of platform-specific dimensions. Click any card to load those exact dimensions into the calculator.
Who Uses an Aspect Ratio Calculator
Frequently Asked Questions
YouTube thumbnails should be 16:9 at 1280x720 pixels minimum. YouTube displays thumbnails at 16:9 in the player and browse view, so images outside that ratio may be cropped or letterboxed.
Instagram supports square 1080x1080 at 1:1, landscape 1080x566 at roughly 1.91:1, and portrait 1080x1350 at 4:5. Stories and Reels use 1080x1920 at 9:16.
Yes. Use Image Ratio Detection to upload an image from your device. The calculator reads the image width and height locally in your browser, calculates the simplified aspect ratio, and shows the closest standard ratio.
Yes. After uploading an image, the Crop Preview section shows how the same image fills common frames such as YouTube thumbnail, Instagram portrait post, Story/Reel, square post, OG image, and Pinterest pin.
The recommended Open Graph image size is 1200x630 pixels, which is approximately 1.91:1. This size works well for Facebook, Twitter/X, LinkedIn, WhatsApp, Slack, and other link previews.
Use the Scale section. Enter your original width and height, or upload an image to detect them automatically, then type a new width or height. The other dimension is calculated automatically.