Megapixels to Image Resolution Calculator
5 min read
Nothing complicated, I just keep needing to figure out x, y resolutions in pixels for an image given in megapixels so I threw together a quick tool.
Takes the resolution of the image in megapixels (e.g. 24 is 24 megapixels, 0.6 is 600,000 pixels), and the aspect ratio either in “n:m” notation (e.g. 3:2) or as a decimal number (e.g. 1.5). Returns the x and y sizes in pixels for that image rounded to a pixel.
Comments
This is so helpful! Thanks!
Glad you found it useful.
Thanks for the calculator. The calculation using the “n:m” notation when “m” is 10 or larger doesn’t work. “m” gets truncated to one character.
16 Mpixel 16:10 or 16:100 calculates to 16000 x 1000 which is the 16:1 ratio
Hi Tobias,
Thank’s for finding that bug. It should be fixed now.
Thanks! Appreciate you putting this out there! Was trying to figure out how big the 192GP image of China really was. 584K image that printed at 200dpi would print to a football field. Very cool!
Useful calculator — I bookmark it every time I prep files for print. One thing I see trip people up is the difference between pixel count and embedded DPI metadata. A 6000×4000 photo from a mirrorless camera has plenty of resolution for a 20×13 inch print at 300 DPI, but the file header might still say 72 DPI because that’s the camera default. Some print shops and upload forms read that tag and reject the file even though the pixel data is more than enough. Worth knowing you can retag the DPI without resampling — the pixels stay identical, only the header changes.