Aspect ratio basics
An aspect ratio describes the proportional relationship between a display's width and height. It's written
as two numbers separated by a colon, like 16:9. This means for every 16 units of width, there are 9 units
of height. The ratio is found by dividing both pixel dimensions by their greatest common divisor (GCD).1
A 1920×1080 display has a GCD of 120, so 1920/120 = 16 and 1080/120 = 9, giving 16:9. This is the most
common ratio for HDTV, YouTube videos, and modern web content.2 Knowing the ratio lets you scale
dimensions without distortion: double the width and you must double the height to keep the same shape. Two
resolutions can look very different in pixel count yet share the same ratio, which is why the simplified form
is more useful than raw dimensions when you are comparing displays or planning content for multiple screens.
Common ratios
A handful of aspect ratios cover most of what you will encounter in video, photography, and web design. Each one became standard for a reason, usually driven by manufacturing constraints or the needs of a particular medium. Knowing which ratio a platform expects saves you from unexpected cropping or black bars.
Widescreen and standard formats
16:9 dominates modern displays. It is the standard for HDTV, 4K, and most online video.3 The format
was originally proposed in 1984 as a compromise between the older 4:3 ratio and wider cinematic ratios, and it
became the most common video ratio once HD broadcasting took off. 4:3 is the older standard for CRT monitors,
NTSC and PAL video, and early computer displays. 21:9 is the ultrawide format used in cinematic displays and
some gaming monitors, giving more horizontal space without increasing vertical height.
Square, photo, and tall formats
1:1 is the square format used for social media profile images and some mobile app interfaces. 16:10 is a
slightly taller variant of 16:9 that was common on widescreen monitors and laptops before manufacturing costs
shifted the industry toward native 16:9 panels. 3:2 is the Micro Four Thirds photo standard and also appears
on some tablets and print formats. 9:16 is the vertical counterpart to 16:9 and has become the default for
short-form mobile video on TikTok, Instagram Reels, and YouTube Shorts.
Some platforms accept several ratios but display them differently depending on where the image appears, such as a landscape feed thumbnail versus a full-screen vertical story. Checking your intended ratio against the platform's stated requirement before uploading prevents the automated cropping that often cuts off the most important part of the frame.
Letterbox explained
When content and display do not share the same aspect ratio, players and editors fill the gaps with black bars. The effect is either letterboxing or pillarboxing, and the pixel size of those bars is determined by the difference between the two ratios. The same math applies whether you are scaling video, resizing images, or checking whether a design will fit a target screen without distortion.
How the bars are calculated
Letterboxing adds horizontal black bars at the top and bottom when widescreen content plays on a narrower display. Pillarboxing does the opposite, adding vertical bars on the left and right when tall content displays on a wide screen. The bar sizes depend on the difference between the source and target aspect ratios.4 In each case the source is scaled to fit along one axis while the other axis is padded to fill the remaining space.
Why the pixel sizes matter
If you are editing video, designing for multiple screen sizes, or building a web player, knowing the exact bar sizes in pixels helps you position overlays, subtitles, and UI elements so they do not end up hidden behind the padding. Guessing the bar size often places text or buttons where a player will cover them, which is hard to catch until you preview on an actual device. Enter your source resolution and target display above to see the exact bar dimensions before you export.
Aspect ratios in video encoding and streaming
Video codecs and streaming platforms encode at specific resolutions tied to standardised aspect ratios.
H.264 uses 16×16 macroblocks, while H.265 uses flexible coding tree units rather than a fixed 16×16 block
size.5 Encoders may internally pad dimensions and use frame cropping so playback displays the intended size, which is
why video editors sometimes see thin black bars added automatically to footage that does not conform.6
YouTube, Vimeo, and most streaming platforms treat 16:9 as the canonical format; uploads at other ratios are
padded with black bars or scaled depending on the platform's handling policy. Knowing your source ratio before
uploading lets you pre-apply letterbox or pillarbox padding at the correct dimensions so the platform does not
apply its own version.
Vertical video formats have become common on platforms designed for mobile viewing, with 9:16 as the
standard for TikTok, Instagram Reels, and YouTube Shorts.7 This is simply the inverse of 16:9. When
repurposing landscape footage for vertical formats, the letterbox calculator shows the pillar bars that
would appear on either side of a 16:9 source displayed in a 9:16 container, helping you decide whether
to crop centrally, pan and scan, or shoot new content natively at 9:16.
Responsive design and display density
High-DPI and Retina displays render physical pixels at twice or more the CSS pixel density. A CSS image
element declared as 800 × 450 pixels displays at 1600 × 900 physical pixels on a 2x device, maintaining
the same 16:9 ratio.8 When providing multiple image sources via the HTML srcset attribute, every scaled
version must share the same aspect ratio to avoid layout shifts between breakpoints.9 Using this
calculator to verify that each scaled dimension pair reduces to the same simplified ratio catches
mismatches before they reach production.
Thumbnails, open graph images, and app store screenshots each have fixed ratio requirements. Facebook's
link preview uses approximately 1.91:1 (1200 × 630 pixels).10 Twitter cards use 2:1 (1200 × 600).11 Apple
App Store screenshots have device-specific required dimensions.12 Entering your source image dimensions
into the calculator and checking whether the simplified ratio matches the platform's requirement
immediately tells you whether cropping is needed, and the scale-to-target feature shows the exact
output dimensions to use.
Social Platform Crop Specs
- Facebook link preview ~1.91:1 (1200×630)
- Twitter card 2:1 (1200×600)
Enter your own source dimensions above and compare the simplified ratio against these platform specs.
- 1.
Eric W. Weisstein, "Greatest Common Divisor," mathworld.wolfram.com, accessed June 2026. https://mathworld.wolfram.com/GreatestCommonDivisor.html
- 2.
ITU, "BT.709: Parameter values for the HDTV standards for production and international programme exchange," itu.int, June 2015. https://www.itu.int/rec/R-REC-BT.709/en
- 3.
Wikipedia, "16:9 aspect ratio," Wikipedia, accessed June 2026. https://en.wikipedia.org/wiki/16:9_aspect_ratio
- 4.
Wikipedia, "Letterboxing (filming)," Wikipedia, accessed June 2026. https://en.wikipedia.org/wiki/Letterboxing_(filming)
- 5.
Library of Congress, "High Efficiency Video Coding (HEVC) Family, H.265, MPEG-H Part 2," loc.gov, November 2020. https://www.loc.gov/preservation/digital/formats/fdd/fdd000530.shtml
- 6.
Chromium, "media/filters/h264_parser.cc," chromium.googlesource.com, accessed June 2026. https://chromium.googlesource.com/chromium/src/+/66c91e5046e5f7430e4f62593a1fe5d6dfe347de/media/filters/h264_parser.cc
- 7.
YouTube, "From epic edits to quick clips: Transitioning your long-form content to YouTube Shorts," blog.youtube, April 2025. https://blog.youtube/creator-and-artist-stories/transitioning-your-long-form-content-to-youtube-shorts/
- 8.
MDN, "image-set() CSS function," developer.mozilla.org, April 2026. https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/image/image-set
- 9.
MDN, "Using responsive images in HTML," developer.mozilla.org, accessed June 2026. https://developer.mozilla.org/en-US/docs/Web/HTML/Guides/Responsive_images
- 10.
Meta for Developers, "Images in Link Shares," developers.facebook.com, accessed June 2026. https://developers.facebook.com/docs/sharing/webmasters/images/
- 11.
X Developers, "Twitter card summary_large_image," devcommunity.x.com, October 2020. https://devcommunity.x.com/t/twitter-card-summary-large-image/144086
- 12.
Apple Developer, "Screenshot specifications," developer.apple.com, accessed June 2026. https://developer.apple.com/help/app-store-connect/reference/app-information/screenshot-specifications