Aspect Ratio Calculator
An aspect ratio describes the shape of a picture or a video frame by comparing its width to its height. This aspect ratio calculator turns pixel sizes into readable ratios, works out the missing side of a target ratio, and reads the dimensions of an image without uploading it anywhere.
What an aspect ratio is
Every rectangle has a shape, and that shape is written as two numbers separated by a colon. A 1920 by 1080 screen has a ratio of 16:9, which means the width is 16 units for every 9 units of height. A 1080 by 1080 square has a ratio of 1:1. A phone screen held upright is 9:16, the same shape as 16:9 turned on its side.
Ratios matter because software keeps them. A video editor, a slide deck, a game engine, and a social platform each expect a specific shape, and giving them the wrong one means black bars, a stretched picture, or a crop that loses something you wanted to keep.
Two numbers describe the same shape. 1920 by 1080 and 640 by 360 are both 16:9, and so are 3840 by 2160 and 2560 by 1440. The pixels tell you how big the picture is, and the ratio tells you its shape.
How to use the calculator, step by step
Step one: type or pick a ratio. The preset buttons cover 16:9, 9:16, 4:3, 1:1, 21:9, 3:2 and 4:5, and you can type your own in the ratio box as 16:9, 16x9 or a decimal such as 1.7778.
Step two: set the width or the height. Change the width and the height recalculates so the shape stays locked to the ratio. Change the height and the width follows. Whichever side you edited last is the side that stays fixed when you change the ratio later.
Step three: read the results. The simplified ratio shows the smallest whole-number pair that matches your size, and the decimal ratio shows the width divided by the height with four decimal places.
Step four: copy the summary when you need the numbers somewhere else. The copy button puts the pixel size, the simple ratio and the decimal ratio on your clipboard in one line.
Worked example: 1920 by 1080 to 16:9
Take a 1920 by 1080 picture. Divide both numbers by their largest common divisor, which is 120, and you get 16 and 9. That is why the tool reports a simplified ratio of 16:9 and a decimal ratio of 1.7778, since 1920 divided by 1080 is 1.7777..., rounded to four places.
Now work the other way. You want a video that is 16:9 and 1080 pixels tall. The width is the height multiplied by 16 and divided by 9, which is 1080 times 1.7778, so the width is exactly 1920 pixels. Ask for 360 pixels tall instead and you get 640 pixels wide.
Watch what happens with a size that does not sit neatly on a ratio. A width of 1000 pixels at 16:9 needs a height of 562.5, which cannot exist as a pixel, so the tool rounds to 563. The result is 1000 by 563, a ratio of 1.7762 instead of 1.7778. The difference is tiny, but it is why a program that needs an exact 16:9 frame should use a size built from the ratio, such as 1920 by 1080 or 1280 by 720.
Worked example: reading the size of your own image
Drop a picture onto the upload area and the tool reads its dimensions straight from the file. The width and height boxes fill in, the ratio box switches to the simplified ratio of that image, and the file name and size appear next to the heading.
The reading happens in your browser. The file is turned into a local image object to read its pixel dimensions, and nothing is sent to a server, so a private photo never leaves the device. The same applies to the common sizes table: select a row and those numbers load into the calculator.
One thing to know about the reading: it reports the stored pixel size of the file. A photo shot at 4000 by 3000 and then uploaded to a site that compresses it to 1600 by 1200 keeps the ratio but not the pixels, and the file on disk is the one the tool measures.
The presets and when each one is useful
16:9 is the widescreen shape used by video players, streaming platforms, slide decks and most laptop and monitor screens. 9:16 is the same shape turned upright, which is what phone videos and vertical stories use. 1:1 is the square used by avatars and square posts.
4:3 is the older television and projector shape, still common in classrooms and on older monitors. 3:2 matches many cameras and standard photo prints. 21:9 is the wide cinema shape found on ultrawide monitors. 4:5 is the taller rectangle that portrait feeds prefer because it fills more of a phone screen than a square.
Platforms adjust these sizes often, and what a feed recommends today may differ from what it recommended last year. Check the current spec before you build a whole set of assets around one ratio.
How to resize an image without stretching it
If you scale a picture to a size with the same ratio, nothing is distorted. A 1920 by 1080 image scaled down to 960 by 540 keeps every shape in place, because both sides shrank by the same factor of two. That is the rule to follow when you resize.
When the target ratio is different, the program has to choose. It can crop the edges, it can stretch the picture, or it can keep the picture whole and add bars. Cropping a 1920 by 1080 image to a square takes a 1080 by 1080 slice from the middle and loses the left and right sides. Letterboxing keeps everything and adds empty space above and below.
For a wide screenshot that needs to sit inside a fixed panel, the Steam artwork cropper on Tolz.me frames an image to the exact pixel size a Steam showcase panel expects, so you can check what a crop looks like before you upload it.
Limits and things to keep in mind
The tool works with whole pixels. Solving a ratio can produce a fraction, such as 562.5, and that gets rounded to the nearest whole pixel, which nudges the final ratio very slightly off the one you asked for.
It does not compress, resize or export anything. It calculates numbers. If you need the image itself changed, open it in an editor, use a resize tool, or use the crop helper mentioned above for Steam panels.
Ratios describe shape only. They say nothing about quality, file size, resolution, or whether a platform accepts the result, and a larger pixel count in the same ratio does not make an image sharper if the source was not sharp to begin with.
Troubleshooting
If the calculator stops updating when you type, the ratio is probably still incomplete. The tool waits for a shape it understands, so type the full 16:9 rather than stopping at 16, or use a preset button instead.
If the results look wrong, check the ratio box first. A leftover decimal such as 1.7778 changes the target shape by a fraction of a percent, and a stale value can keep pulling the other side back.
If a dropped image does not load, the browser may block local file previews for that format. Try a PNG or JPG, or pick the file with the Choose an image button instead of dragging it in.
Explore more calculator tools on Tolz.me.