Drop images to check their aspect ratio
or browse files — one or many at once
See any image's exact ratio and how far it deviates from 16:9, 4:3, 1:1 or your custom target — runs 100% in your browser
or browse files — one or many at once
The Image Aspect Ratio Checker from ImageFix reads any image's pixel dimensions and instantly tells you three things: the exact decimal ratio, the simplified integer ratio, and how far the image deviates from a target ratio you choose. You drop a JPG, PNG, WebP, SVG, or GIF, pick a target like 16:9 or 4:3, and the tool shows the difference in percentage and pixels. Everything runs in your browser — no uploads, no signup, no watermarks. It is the fastest way to verify whether an image will fit a layout before you commit it to a design.
If you have ever dropped a hero image into a 16:9 container and watched it letterbox, or exported a photo from a phone and found it was 4:3 when the CMS expected 3:2, you already know the pain. Aspect ratio mismatches are one of the most common causes of blurry, cropped, or distorted images on the web. This tool removes the guesswork.
An aspect ratio is the relationship between an image's width and its height. It is expressed as two numbers separated by a colon — 16:9, 4:3, 1:1 — where the first number is width and the second is height. The ratio is independent of resolution: a 1920×1080 image and a 3840×2160 image are both 16:9, even though the second has four times the pixels.
The decimal form of the ratio is simply width divided by height. For 1920×1080:
1920 ÷ 1080 = 1.777…
To convert that decimal back into an integer ratio, you divide both dimensions by their greatest common divisor (GCD). For 1920 and 1080, the GCD is 120, so 1920÷120 : 1080÷120 = 16:9. The Image Aspect Ratio Checker does that reduction automatically, which is why you see clean ratios like 3:2 instead of 1.5 or 1920:1280.
Aspect ratio is not a cosmetic detail. It controls how images fit into layouts, how they crop, and how they behave on different screens. Get it wrong and one of three things happens:
The CSS aspect-ratio property formalises this in modern layouts. Set aspect-ratio: 16 / 9 on a container and the browser reserves the correct space before the image loads, which prevents layout shift — a measurable Core Web Vitals penalty. Knowing your image's actual ratio is the first step to applying that property correctly.
| Ratio | Decimal | Common use |
|---|---|---|
| 1:1 | 1.000 | Square posts, avatars, product grids |
| 4:3 | 1.333 | Classic TV, older monitors, point-and-shoot photos |
| 3:2 | 1.500 | DSLR and mirrorless sensors, 35mm film |
| 16:9 | 1.778 | HD and 4K video, YouTube, hero banners |
| 21:9 | 2.333 | Ultrawide monitors, cinematic film |
| 9:16 | 0.563 | Vertical video, Stories, Reels, TikTok |
| 4:5 | 0.800 | Instagram portrait posts |
| 2:3 | 0.667 | Portrait DSLR, book covers, posters |
Camera manufacturers often quote a "3:2 sensor" but output files with slightly different dimensions after in-camera processing — a 6000×4000 raw becomes 6000×4000 JPEG, which is exactly 3:2, but a phone might output 4032×3024, which is 4:3. Knowing the difference matters when you are preparing images for a gallery that uses one ratio throughout.
When you drop an image, the browser reads it with the FileReader API and creates an in-memory Image object. The browser reports the intrinsic dimensions — naturalWidth and naturalHeight — which are the true pixel dimensions stored in the file, not the CSS-rendered size. That distinction matters: an image displayed at 300×200 on a page might be 3000×2000 in the file, and the aspect ratio is the same for both, but the resolution is not.
From those two numbers the tool calculates:
|actual − target| ÷ target × 100.The deviation tells you how much you would need to crop or pad. For example, if your image is 1920×1081 and the target is 16:9 (1.7777…), the actual ratio is 1.7761, a deviation of about 0.09% — invisible. But a 1920×1200 image is 1.6, which is 10% off from 16:9 and would be visibly letterboxed. The tool surfaces that number directly so you do not have to calculate it.
The checker classifies each image into one of three buckets:
object-fit: cover).The thresholds are not arbitrary. Human perception of ratio differences starts around 0.5%, which is roughly the point where a letterbox becomes visible on a typical monitor. A 2% difference is the point where a 16:9 hero image placed in a 4:3 container produces a visible bar on one axis. Above 2%, the correction is unavoidable for a clean layout.
Drop one or more images onto the upload area, click to browse, or paste from the clipboard with Ctrl+V. The tool accepts any format the browser can decode, including JPG, PNG, WebP, SVG, and GIF. Multiple files are processed in parallel, and each one gets its own result card.
Each result card shows the pixel dimensions (for example, 1920 × 1080), the decimal ratio (1.7778), the simplified integer ratio (16:9), and the orientation. The simplified ratio is the one you will use in CSS and design tools — the decimal is useful for programmatic comparison.
Use the dropdown in the toolbar to select a common target: 16:9 for HD video, 4:3 for classic TV, 3:2 for DSLR photos, 1:1 for square avatars, 21:9 for ultrawide, 9:16 for vertical video, 4:5 for Instagram. To compare against a ratio that is not in the list, choose Custom and enter your own width and height (for example, 1.85:1 for cinematic film).
The result card shows the deviation percentage and whether the image is too wide or too tall for the target. A bar fills up as the deviation grows, so you can scan a batch and see at a glance which images need attention.
If the deviation is within tolerance, use the image as-is. If it is above tolerance, the tool suggests the exact crop or pad to reach the target — for example, "crop 20px from the top and bottom to reach 16:9" or "pad 40px on the left and right". You can then take that number to an image editor, or use one of ImageFix's sibling tools:
These three terms are often confused, and mixing them up leads to bad decisions. They describe different properties:
Changing aspect ratio almost always changes one of the other two. Cropping reduces pixel count and file size. Padding increases both. Resizing preserves aspect ratio when you lock it, but changes resolution. The checker tells you the ratio; the other tools handle the rest.
1080p refers to 1080 vertical pixels. The width is usually 1920 (16:9), but a 1080p square crop is 1080×1080 (1:1), and a vertical 1080p clip is 1080×1920 (9:16). The height alone does not determine the ratio. Use the checker to confirm.
object-fit: cover will fill a container with any image, but it does so by cropping. If the image's ratio is far from the container's, the crop is severe and can cut off faces or product details. Check the ratio first, then decide whether cover is safe.
A 16:9 image looks great on a laptop but shows huge letterbox bars on a portrait phone if you use object-fit: contain. Serving different crops for mobile and desktop — usually via picture elements and srcset — fixes this. The checker helps you plan those crops by showing what each image's ratio is.
Figma, Sketch, and Photoshop all export at the frame size, which is not always the size you set for the artboard. A frame set to 16:9 can export at 1200×675 (1.7778, exact 16:9) or at 1200×676 (1.7751, slightly off) depending on rounding. The checker catches these one-pixel differences.
Two options, each with tradeoffs:
Crop. Trim the longer axis until the ratio matches. Use this when the composition has margin you can afford to lose. Cropping is the better choice for photos where the subject is centred. It is the wrong choice for images with important content near the edges — group photos, infographics, screenshots with UI at the borders.
Pad. Add background to the shorter axis until the ratio matches. Use this when every pixel matters, or when you are building an ad where brand-safe zones are already defined. Padding keeps the full content but changes the composition, and on a coloured page it introduces visible bands unless the padding colour matches the page background.
The checker's suggestion tells you the exact pixel count to crop or pad on each axis. That number is the difference between the image's current dimension on that axis and the dimension that would produce the target ratio with the other axis unchanged.
Specifying the correct width and height attributes on <img> tags lets the browser reserve space before the image loads, which prevents Cumulative Layout Shift. But the attributes only work if the ratio they imply matches the actual image ratio. A 16:9 image tagged width="1920" height="1080" reserves a 16:9 box, so when the image loads there is no shift. A 16:9 image tagged width="1920" height="1200" reserves a 1.6:1 box, and the image snaps to fit on load — a visible jump.
Correcting ratio mismatches before shipping is one of the easiest performance wins. It costs nothing at runtime, it improves the visual experience, and it directly affects your Core Web Vitals score. For a broader view, web.dev's CLS guide explains the mechanics in depth.
Yes. A 400×300 image and an 800×600 image are both 4:3. The ratio describes the shape, not the size. Use the pixel dimensions on the result card to compare actual sizes.
It should. If it shows a different ratio, one of the dimensions was probably changed after export — a phone screenshot that claims 1920×1080 but is actually 1920×1081, or an editor that added a 1-pixel border. The decimal ratio will show 1.7778 for exact 16:9 and something slightly different for an off-by-one image.
Any ratio you type in, such as 5:3, 7:4, or 1.85:1. The tool compares your images against that exact target, which is useful for print layouts, film formats, and social platforms that use unusual ratios.
Yes. The browser reports the dimensions of the first frame, which is the correct ratio for the whole file.
No. Everything is processed in memory and discarded when you close the tab. No file ever leaves your device, and no data is stored on a server.
Not directly — the tool reads image files. For video, extract a still frame and check the still. The frame inherits the video's dimensions.
If you are preparing images for production, these tools cover the rest of the workflow. They run in the browser with no uploads and no signup:
Bookmark the ImageFix tools page to keep the full toolkit within reach.
The Image Aspect Ratio Checker answers a simple question — what shape is this image? — but the answer drives a surprising number of layout, performance, and content decisions. It shows the exact decimal ratio, the simplified integer ratio, and the deviation from any target you choose. It classifies each image as on target, close, or off target using thresholds that match human perception. It suggests the exact crop or pad to fix a mismatch. And it does all of that locally, without uploading a single byte. Drop an image in, read the ratio, decide whether to use, crop, or pad, and move on with the rest of your build.