Aspect Ratio To Pixel Converter
Convert between an aspect ratio and exact pixel dimensions, work out a simplified ratio from pixel dimensions, or fit a ratio inside a bounding box.
Free, no sign-upNo uploads, files stay on your deviceSave it to use offline
Four calculators in one box. Turn a ratio and one side into exact pixels, reduce pixel dimensions to a ratio, find the biggest size that fits inside a box, or find the largest centred crop for a target ratio. Presets cover common ratios and a few platform sizes. It does the arithmetic only; it does not touch your images.
How To Use The Four Modes#
- Set the ratio at the top, either by clicking a preset or typing into the two fields. Decimals are allowed, so
1.91works. Simplify reduces the pair to its smallest whole numbers and the swap button flips width and height. - To pixels: choose whether you know the width or the height, enter it, and read the other side. 16:9 at a width of 1920 gives 1920 × 1080.
- To ratio: enter a width and height in pixels and read the reduced ratio plus its decimal value.
- Fit in box: enter a maximum width and height and get the largest size at your ratio that stays inside both, the same maths as a "contain" image fit.
- Crop to ratio: enter the actual width and height of an image and get the largest centred crop at your target ratio, plus its offset from the top-left corner.
Every result has a Copy button, and a small preview draws the shape. Your last ratio and mode are remembered in this browser.
Good To Know: The Presets#
There are 13 ratio presets: 1:1, 4:3, 3:2, 16:9, 21:9, 9:16, 4:5, 5:4, 3:4, 2:3, 2:1, 1.91:1 and 2.39:1. There are also 8 real-world size presets: YouTube thumbnail (1280 × 720), Instagram post (1080 × 1080), Instagram story or Reel (1080 × 1920), Facebook cover (820 × 312), Twitter / X post (1600 × 900), LinkedIn banner (1584 × 396), OG / link preview image (1200 × 630) and A4 at 300 dpi (2480 × 3508).
Clicking a size preset sets the reduced ratio, switches to To pixels and fills in the width. Treat these sizes as shortcuts, and check the platform's current specification before you export, because platforms change them.
Results are rounded to whole pixels.
Worked Example: Real Results#
| Mode | Input | Result |
|---|---|---|
| To pixels | 4:5 at width 1080 | 1080 × 1350 |
| To pixels | 4:5 at height 1920 | 1536 × 1920 |
| To pixels | 1.91:1 at width 1200 | 1200 × 628 |
| To ratio | 1920 × 1080 | 16:9 (decimal 1.7778) |
| To ratio | 1200 × 630 | 40:21 (decimal 1.9048) |
| To ratio | 1366 × 768 | 683:384 (decimal 1.7786) |
| Fit in box | 16:9 in 1200 × 800 | 1200 × 675 |
| Fit in box | 16:9 in 1200 × 500 | 889 × 500 |
| Fit in box | 9:16 in 1200 × 800 | 450 × 800 |
| Crop to ratio | 4000 × 3000 photo to 16:9 | crop 4000 × 2250, offset 0, 375 |
| Crop to ratio | 4000 × 3000 photo to 1:1 | crop 3000 × 3000, offset 500, 0 |
| Crop to ratio | 4000 × 3000 photo to 9:16 | crop 1688 × 3000, offset 1156, 0 |
The crop rows read like this: for the 16:9 crop the full 4000-pixel width is kept, the height becomes 2250, and the box starts 375 pixels down so it sits in the middle.
Things That Surprise People#
- 1200 × 630 is not exactly 1.91:1. Reduced, it is 40:21, which is 1.9048. At a width of 1200 the 1.91:1 preset gives 628 pixels of height. The two differ by 2 pixels, which is why link-preview images are usually described both ways.
- To ratio gives the exact fraction, not the nearest "nice" ratio. A 1366 × 768 screen is 683:384, not 16:9, because it is very slightly off 16:9. The decimal next to it shows how close it is.
- The A4 preset is not a tidy ratio. 2480 × 3508 reduces to 620:877 (0.7070), because the pixel sizes are rounded from the paper dimensions.
- Crop mode gives numbers, not a cropped image. Use the numbers in the crop tool or your editor. It always centres the crop.
- Fit in box never exceeds either limit. If the width limit is the tighter one the width wins, otherwise the height does.
How We Tested This#
On 2 November 2026 we loaded this tool's own code into headless Chromium on a Linux cloud server and ran 18 checks. All 18 passed, and the results in the table above are the numbers the tool produced.
| What we checked | Checks |
|---|---|
| The default (16:9 at width 1920) and the three To pixels cases above, by width and by height | 4 |
| To ratio: 1920 × 1080, 1200 × 630, 1366 × 768, and the message for a zero value | 4 |
| Fit in box: width-limited, height-limited and portrait | 3 |
| Crop to ratio for 16:9 and 1:1 | 2 |
| Simplify, swap, and the Instagram story size preset | 3 |
| No script errors and no network requests | 2 |
Not tested: touch screens, and browsers other than Chromium.
Frequently asked questions#
How do I calculate height from width and ratio?
Multiply the width by the ratio's height and divide by its width. For 16:9 at a width of 1920: 1920 × 9 ÷ 16 = 1080. The tool does this and rounds to whole pixels.
Can I use a ratio that is not on the list?
Yes. Type any two numbers into the ratio fields, including decimals such as 1.91.
Can I go from pixel dimensions back to a ratio?
Yes. Use To ratio, enter the width and height, and it returns the reduced ratio and its decimal value.
Does it resize or crop my image?
No, it only calculates sizes. Use the resize or crop tool to apply them.
Are my numbers sent anywhere?
No. The calculations run in your browser. Only your last ratio and mode are saved, in this browser.
Where to go next#
- Crop: apply a fixed-ratio crop with a live preview.
- Resize: set exact pixels, a percentage or a longest edge.
- YouTube thumbnail safe-zone tester: see which parts of a 1280 × 720 thumbnail get covered.
- Social banner safe-zone previewer: check a banner against each platform's crop zones.
- Make square: pad an image to 1:1 instead of cropping it.
When People Use It#
Typical jobs: sizing a social post or video export to a platform's ratio, working out what height a 1200-pixel-wide banner needs, checking what ratio an odd screen or photo really is, and deciding how much of a photo a 16:9 or square crop will lose.
More Image Tools
See all 52 Image Tools →- Border / Frame AdderAdd a solid or styled border around an image.
- CompressRe-encode JPG/PNG/WebP at a target quality or file size.
- CropFreeform or fixed-ratio crop with a live preview.
- Crop CircleDrag a circular selection anywhere on a photo and cut out just that region.
- Make SquarePad an image to a square canvas with a chosen fill.
- ResizeResize by exact pixels, percentage, or longest edge.
- Rotate / FlipRotate 90°/180°/270°, flip horizontal or vertical, or straighten a few degrees.
- Round CornersApply rounded corners with an adjustable radius and border.