Unit Converter
Convert units of measurement.
OpenType a resolution like 2560x1440 and get its exact aspect ratio and megapixels.
Type width x height, such as 1920x1080.
The tool reduces it to the smallest whole numbers.
Total pixels in millions, to two decimals.
Paste the figures into a spec or ticket.
A client sends a banner size of 1500x500 and asks whether it matches their 16:9 slides, or you are comparing a laptop screen with a monitor. Reducing the ratio means finding a common divisor, which is tedious for numbers like 3440 and 1440.
Enter a width and height separated by an x or a multiplication sign, for example 1920x1080 or 3840 x 2160. The output repeats the dimensions, shows the aspect ratio reduced by the greatest common divisor (1920x1080 becomes 16:9), and gives the megapixel count to two decimals by multiplying width by height and dividing by one million.
The ratio is exact, which can surprise you. Several familiar sizes are not quite what marketing calls them: 1366x768 reduces to 683:384 rather than 16:9, and 2560x1080 reduces to 64:27 even though it is sold as 21:9. That is useful when you need pixel-perfect crops, but for layout decisions round to the nearest common ratio. Megapixels describe pixel count only, not sharpness or print quality.
For CSS boxes that hold a ratio, the aspect ratio generator writes the property for you. To change an image to a target size, use the image resizer. Font and spacing units are covered by the typography converter. The math is done in your browser.
Keyboard shortcut
Answers for this tool. For site-wide help, open the FAQ hub.
Because it is not exactly 16:9. Dividing both numbers by their greatest common divisor gives 683:384, which is very close to 16:9 but not identical. The tool reports the exact reduced ratio.
Not directly. Divide the width by the first ratio number and multiply by the second; for a 1280 wide 16:9 frame that is 1280 / 16 x 9 = 720. Then enter the result here to confirm.
Two whole numbers separated by a lowercase or uppercase x, or a multiplication sign, with optional spaces. Units such as px are not needed, and decimal dimensions are not supported.