Image resize calculator

Preserves aspect ratio using a target width; height rounds to the nearest pixel.

Your inputs

Use the units shown.

Scaled height (px)
540
Scale (%)
50

Your calculation
How is this calculated?

Preserves aspect ratio using a target width; height rounds to the nearest pixel. No image file is resized by this calculator.

  • Scaled height (px) = round(Target width (px) × Original height (px) ÷ Original width (px))
  • Scale (%) = Target width (px) ÷ Original width (px) × 100

Try an example

Worked example

Scaled height (px): 540

Inputs
  • Original width (px): 1920
  • Original height (px): 1080
  • Target width (px): 960

Compare inputs

Scaled height (px): 540

Inputs
  • Original width (px): 1921
  • Original height (px): 1080
  • Target width (px): 960
Share this page
Share this calculator

Leave unchecked to share the page without your entered values.