fileformer
search⌘KtranslateENexpand_moreupload_fileConvert
Converters8 file families · 44 direct conversions
What changes in a conversionarrow_forward
home/calculators/aspect-ratio

Image Aspect Ratio Calculator

Resize without stretching. Keep the shape, change the size.

Enter the original width and height to find the ratio, then type one new side and get the other. The frame on the right draws the result to scale, and flags sizes that would give fractional pixels.

original size
×
or start from a preset
1920×1080Full HD3840×21604K UHD1080×1920Reels, TikTok1080×1350Instagram 4:51080×1080square post4032×3024phone photo2560×1080ultrawide1200×630link preview
new size · type one side
link
height is calculated from the width you typed
ratio16:9as a decimal1.7778scale66.7%
original
1280 × 720
check_circleExact match: both sides are whole, even numbers, so it works for images and video.
~/when-the-shapes-differ

Landscape video, portrait phone: something has to give.

When the ratio changes, you can't keep the whole picture and fill the frame. Pick a source and a destination to see the three options and exactly how much each one costs.

16:9 video4:3 photo9:16 phone clip
arrow_forward
9:16 story1:1 post4:5 feed16:9 TV
Fit68% barsThe whole picture is kept and shrunk until it fits; black bars above and below fill the rest.
Fill68% croppedThe frame is filled edge to edge, and 68% of the picture is cut off at the sides. Keep the subject centred.
Stretchdistorted 216%Everything is kept and the frame is filled, but the picture is squashed. Circles become ovals. Almost never what you want.
~/where-each-comes-from

Eight ratios you'll meet, and where they're from.

Each shape is drawn to scale at the same height, so you can compare them directly. Click one to load it into the calculator.

16:91.78:1The standard for TV, YouTube and most monitors since the late 2000s.1920×1080 · 3840×2160
4:31.33:1Old TVs and monitors, and still what most phone and compact cameras shoot.4032×3024 · 1024×768
3:21.50:1From 35 mm film. DSLRs, mirrorless cameras and 6×4 inch prints.6000×4000 · 6×4 in print
1:11.00:1Square. Profile pictures, album art and the original Instagram post.1080×1080 · 3000×3000
4:50.80:1The tallest portrait Instagram allows in the feed. Takes more screen than square.1080×1350
9:160.56:116:9 turned on its side. Stories, Reels, TikTok and Shorts.1080×1920
21:92.37:1Marketed as 21:9, really about 2.37:1. Ultrawide monitors and cinema.2560×1080 · 3440×1440
1.91:11.91:1Link previews on social sites and chat apps.1200×630
~/when-pixels-are-not-square

Stored shape × pixel shape = the shape you see.

DV, HDV, broadcast SD and anamorphic lenses store frames with pixels that are wider or narrower than they are tall. The player stretches them on playback, using a pixel aspect ratio (PAR) written into the file. Ignore it and circles turn into ovals. Pick a format or enter your own; every value below is computed from your inputs.

DV NTSC 4:3DV NTSC 16:9DV PAL 4:3DV PAL 16:9HDV 1080DVCPRO HD2× anamorphicSquare pixels
stored size (width × height)
×
pixel aspect ratio (PAR)
:
storage ratio3:2
display ratio (DAR)15:11
DAR as decimal1.3636
square-pixel size654.55×480
Stored at 720×480 (1.500:1) but shown at 1.3636:1, 9.1% narrower. Nearest named ratio: 1.375:1 (-0.83%). The ITU-R BT.601 pixel shapes are defined for the central 704 samples: 704 × 10/11 = 640.0 display pixels, exactly 4:3 at this height. The extra 8 samples each side are overscan, so the full 720 frame is 15:11, not exactly 4:3.
Stored, shown with square pixels720×480
What a player shows if it ignores the PAR. The round object is 9.1% too wide.
Displayed with PAR applied654.5×480
Each stored pixel stretched by 10/11 horizontally. Circles are round again.
Where the pixel shape is written
FFmpeg, keep anamorphic-vf "setsar=10/11" (or setdar=15/11)
FFmpeg, to square pixels-vf "scale=654:480,setsar=1"
H.264 / HEVC VUIaspect_ratio_idc = 3 (Table E-1: 10:11)
MP4 / QuickTime pasp box00 00 00 10 70 61 73 70 00 00 00 0a 00 00 00 0b (hSpacing 10, vSpacing 11)
Matroska / WebMPixelWidth 720, PixelHeight 480, DisplayWidth 654, DisplayHeight 480
~/naming-a-ratio

“21:9” is a name, not a measurement.

2560 × 1080 reduces to 64:27, which is 2.370. Real sizes rarely reduce to small numbers, so they get named after the nearest simple fraction. Continued fractions find those best approximations step by step: each convergent is the closest fraction possible for its denominator size. Enter a size like 3440×1440 or a decimal like 2.39.

2560×10803440×14402.391.85DCI 2048×1080√2 (A4)Golden1366×768
= 2.37037
continued fraction (exact, from the integer sizes)[2; 2, 1, 2, 3]
stepfractiondecimalerror
12:12.0000015.625%
25:22.500005.469%
37:32.333331.562%
419:82.375000.195%
564:272.37037exact
Nearest named ratios
64:27 “21:9”ultrawide monitors+0.00%
2.39:1anamorphic scope-0.82%
2.76:1Ultra Panavision 70-14.12%
Best fraction with a denominator of 16 or less: 19:8, off by 0.195%. Convergents in orange have small enough terms to be used as names.
This screen, measuredAnalyse it
screen (CSS pixels)800×600 · 4:3
devicePixelRatio1
physical pixels (approx.)800×600
this viewport1440×1000 · 1.440:1
@media (min-aspect-ratio: 16/9)does not match
@media (orientation: landscape)matches
~/why-1080-is-coded-as-1088

Encoders work in blocks, so some sizes cost more than others.

H.264 splits every frame into 16 × 16 macroblocks. 1080 isn’t a multiple of 16, so a 1080p stream is coded as 1088 rows and the extra 8 are cropped on playback. With 4:2:0 colour, the crop works in 2-pixel steps, which is why odd widths fail. The table computes this for any size, and the button asks your browser’s own encoders whether they accept it.

1920×10801280×7203840×21601080×1920854×4801366×7682560×10801919×1079
×Use calculator’s new sizememoryTest with WebCodecs
codecblockcoded sizepadding4:2:0 rulehow the edge is handled
H.264 / AVC16 × 16 macroblock120 × 68 = 8,160 blocks1920×10880.7%check_circleeven: okCoded size is whole macroblocks; frame_cropping in the SPS hides the extra rows and columns.
HEVC / H.265min coding block 8, CTU up to 64240 × 135 = 32,400 blocks1920×10800%check_circleeven: okpic_width/height must be multiples of the minimum coding block; the conformance window crops the rest.
VP98 × 8 blocks, 64 superblockssize stored exactlyexact-check_circleany sizeThe true size is stored; edge blocks are coded partly outside the picture. Odd sizes allowed, chroma rounds up.
AV14 × 4 to 128 × 128size stored exactlyexact-check_circleany sizeThe true size is stored, and odd sizes are allowed. Edge superblocks are clipped to the frame.
JPEG, 4:2:016 × 16 MCU120 × 68 = 8,160 blocks1920×10880.7%check_circleany sizeThe encoder pads edge MCUs; the SOF marker holds the true size. Odd sizes are fine.
JPEG, 4:4:48 × 8 MCU240 × 135 = 32,400 blocks1920×10800%check_circleany sizeNo chroma subsampling, so 8-pixel blocks and no even-size rule.
Macroblock grid at this size (H.264)
120 × 68 = 8,160 macroblocks. Hatched areas are coded and then cropped: 0 columns and 8 rows. Sizes that are multiples of 16 (1280×720, 3840×2160) waste nothing.
Your browser’s encoders at 1920×1080
H.264 High 5.1avc1.640033check_circlesupported
HEVC Main 5.1hvc1.1.6.L153.B0cancelrejected
VP9 profile 0vp09.00.51.08check_circlesupported
AV1 Main 5.1av01.0.13M.08check_circlesupported
VideoEncoder.isConfigSupported() at 30 fps and 5 Mbps. Results depend on your browser, operating system and hardware encoder, and on each codec level’s maximum frame size.
~/reference

Aspect ratio in code, film and paper.

The first table uses your calculator’s original size (1920×1080); the last column is tested in this browser.

wheresyntax for your sizerulethis browser
CSS propertyaspect-ratio: 16 / 9;Box Sizing Level 4. Sets the preferred ratio; an explicit height or min-height on the box still wins.supported
HTML img / video<img width="1920" height="1080">Browsers map the attributes to aspect-ratio: auto w / h, so space is reserved before the image loads.auto 1920 / 1080
Legacy padding hackpadding-top: 56.25%;Percentage padding resolves against the width, so height = width × h/w. Needed before 2021.still works
Media query@media (min-aspect-ratio: 16/9)Compares the viewport’s width/height. device-aspect-ratio is deprecated.viewport does not match
object-fitcontain · cover · fillThe fit, fill and stretch options shown above, for img and video.supported
FFmpeg-vf "scale=-2:1080,setsar=1"-2 keeps the ratio and rounds to an even number for 4:2:0 video.command line
MP4 tkhdwidth 1920.0, height 1080.0 (16.16 fixed point)Track display size; players combine it with pasp and the codec’s VUI.file metadata
H.264 / HEVC VUIaspect_ratio_idc 1 = squareTable E-1 lists 16 preset pixel shapes; 255 means explicit sar_width and sar_height.bitstream
JPEG / EXIFOrientation (tag 0x0112) = 6No ratio field. Orientation values 5-8 rotate by 90°, swapping width and height on display.file metadata
Matroska / WebMDisplayWidth 1920, DisplayHeight 1080DisplayUnit 3 means the values are a ratio rather than pixels.file metadata

Standard ratios and their real pixel sizes

The pixel check column reduces each standard frame size and shows how far it is from the nominal ratio.
namedecimaloriginframepixel check
4:31.333Dickson and Edison’s 35 mm film frame, 1892; later analogue TV640×4804:3 = 1.333 · exact
Academy1.375AMPAS, 1932, to make room for the optical sound track2048×1490 (scan)1024:745 = 1.374 · -0.04%
3:21.500Leica 24 × 36 mm still film, 19256000×40003:2 = 1.500 · exact
16:101.600Computer displays, VESA timings2560×16008:5 = 1.600 · exact
16:91.778Proposed for HDTV by Kerns Powers, SMPTE, 1984; ITU-R BT.7093840×216016:9 = 1.778 · exact
1.85:1 flat1.850US theatrical widescreen from 1953DCI 1998×108037:20 = 1.850 · exact
DCI full1.896DCI Digital Cinema System Specification container4096×2160256:135 = 1.896 · exact
IMAX 70 mm1.43015-perf 70 mm film, 1970-film only
2.39:1 scope2.390Anamorphic projection per SMPTE, 1970s; CinemaScope began at 2.55 then 2.35 in 1953DCI 2048×8581024:429 = 2.387 · -0.13%
“21:9”2.370Marketing name for ultrawide panels3440×144043:18 = 2.389 · +0.78%
32:93.556Two 16:9 screens side by side5120×144032:9 = 3.556 · exact
ISO 216 (A4)1.414Halving keeps the shape; DIN 476 in 1922, ISO 216 in 1975210×297 mm99:70 = 1.414 · +0.01%
US Letter1.294ANSI paper size, 8.5 × 11 in8.5×11 in11:9 = 1.294 · exact

Timeline

1892Dickson and Edison settle on 35 mm film with four perforations per frame, about 4:3.
1922DIN 476 introduces A-series paper on a √2 ratio, so halving a sheet keeps its shape.
1925The Leica I popularises 24 × 36 mm still frames: 3:2.
1932AMPAS standardises the 1.375:1 Academy ratio for sound film.
1953CinemaScope opens with The Robe; studios answer with 1.66 and 1.85 flat widescreen.
1970sSMPTE narrows anamorphic projection to 2.39:1, still often called 2.35.
1982CCIR Rec. 601 fixes 720 samples per line for digital SD, so its pixels are not square.
1984Kerns Powers proposes 16:9 for HDTV: close to the geometric mean of 4:3 and 2.35:1.
2003H.264 is published, with 16 preset pixel shapes in its VUI.
2005DCI 1.0 sets the 2048×1080 and 4096×2160 digital cinema containers.
2008-2012PC monitors and laptops move from 16:10 to 16:9 panels.
2021With Safari 15, the CSS aspect-ratio property works in every major browser.