GetResizer
Home / Guides / Size calculator
Plan the pixels

Image size calculator

Work out dimensions before you edit. Compare fitting, cropping and stretching, then calculate the physical print size at a chosen resolution.

Calculate a resize or crop

Source image, in pixels
Target box, in pixels
1200 × 900 px
Source ratio
4:3
Pixel change
91.0% fewer pixels
Source print size
13.33 × 10.00 in at 300 PPI
Source memory estimate
45.8 MiB for one decoded RGBA buffer

The full image fits inside the target box without cropping.

Resize with these dimensions

Pixels describe the image; bytes describe the file

An image that is 4000 × 3000 pixels contains 12 million pixels. Reducing it to 1200 × 900 produces 1.08 million pixels: 91% fewer. That does not guarantee a 91% smaller download. JPG, PNG and WebP store the same pixels differently, and a detailed photo takes more bytes than a flat diagram. Use the format lab to measure encoded files.

Fit inside versus fill the box

For a 4000 × 3000 source and a 1200 × 630 target, fitting the whole image produces 840 × 630. The formula is the smaller of target width ÷ source width and target height ÷ source height. Multiply both source dimensions by that scale. The image fits the box and retains its composition, but does not fill its entire width.

To fill the same 1200 × 630 box without distortion, first take a 4000 × 2100 crop from the source. A centered crop starts at X=0 and Y=450. Resize that crop to 1200 × 630. Centering is a mathematical default; a portrait or off-center subject may need a different crop position.

Forcing the original straight to 1200 × 630 changes the aspect ratio. Circles become ovals and faces become stretched. Choose this mode only when the change in shape is intentional.

Calculate print size from pixels and PPI

Print width in inches equals pixel width divided by pixels per inch. A 3000 × 2400 image at 300 PPI covers 10 × 8 inches, or 25.4 × 20.3 cm. At 150 PPI it covers 20 × 16 inches, with fewer source pixels per printed inch. Changing a resolution label without adding pixels does not create detail.

PPI describes source-image density; printer DPI describes the printer's dots. They are related in a printing workflow but are not interchangeable. Paper, printer, viewing distance and the subject affect an acceptable resolution. Ask your printer for its requirements rather than treating 300 PPI as a universal guarantee.

Why memory is larger than file size

One 4000 × 3000 RGBA buffer uses 4000 × 3000 × 4 bytes, about 45.8 MiB. A compressed JPG might be much smaller on disk. Browsers may hold additional decoded images, previews and outputs, so the calculator gives one buffer's estimate rather than total application memory. For large photos on a phone, try smaller batches.

Use the result in the editor

  1. Enter the source dimensions shown by your image viewer or editor.
  2. Choose the destination box and decide whether all edges must remain.
  3. Open the resizer using the result button. It transfers both target sides and your Fit, Fill or Stretch choice. The editor calculates the output from the actual image you select; its proportions can differ from the source dimensions entered here.
  4. Fill centers a crop and resizes in one export. For an off-center subject, adjust the source crop manually before exporting. Fit keeps every edge and may make one side smaller; Stretch forces both sides.
  5. Inspect the output dimensions and actual byte size after exporting.

Image size questions

Does changing DPI increase image quality?

Changing a resolution label does not add source detail. Print size depends on the number of pixels divided by the chosen PPI.

Can I calculate an exact file size from pixels?

No. The format, encoder, quality and content affect bytes. The calculator estimates pixel geometry and one decoded buffer, not compressed file size.

Why does fit mode give a smaller width than requested?

The full image must fit within both target dimensions. If height is the limiting dimension, width remains smaller so the original aspect ratio is preserved.

Can I send a calculated result to the resizer?

Yes. The result button transfers both target sides and your Fit, Fill or Stretch choice into the editor.