Image Aspect Ratio
Shows an image's aspect ratio from a file or from width and height, and calculates the crop and padding for a target format.
Reading the file…
Fit to aspect ratio
How the aspect ratio is calculated
The width and height are divided by their greatest common divisor: for 1920 × 1080 it is 120, which gives 16:9. When there is almost nothing to reduce, the ratio stays long: a 1366 × 768 screen has a ratio of 683:384. Next to it we show the closest standard ratio and the difference from it in percent; for 1366 × 768 that is 16:9, off by 0.05%.
Dimensions from the file
Width and height are read from the file header. That is why the size is detected even for HEIC shots from an iPhone, TIFF, and PSD, formats the browser does not open. If the shot is rotated by an EXIF tag, the size is taken in the form the browser will show it. For an SVG with a single viewBox, the proportion comes from it.
Crop or add borders
When cropping, one side stays the same and the excess on the other is trimmed evenly from both edges. Borders are added to the side that falls short, so the whole picture is kept. When an exact ratio does not come out in whole pixels, we show the difference and the nearest size where the ratio is exact.
Rate this tool
Help us get better
Tell us what was missing.
Other tools
Favicon Generator
A full set of site icons from an image, letter or emoji.
CSS Sprite Generator
Glues icons into one file with ready-made CSS.
Add Text to Image
A caption or watermark on photos, with batch processing.
Photo Watermark
A semi-transparent caption or tile across the whole image.
Photo Editor
An image editor in the browser, nothing to install
Image Color Palette
A palette from a picture, with color shares and a contrast check
Resize Image
Image size by width, height or percent, saved as JPEG, PNG or WebP
Crop Image
Frame by mouse or exact pixels, everything happens locally