Image dimension scaler
Plan a proportional resize without ever stretching an image. This is a planning
tool for designers and developers who need the exact pixel width and height
before exporting from an editor, building a responsive srcset, or configuring a
CDN transform.
How it works
First it computes the original aspect ratio as ratio = width ÷ height. Then,
depending on the mode you choose:
- Percentage: both sides are multiplied by the factor, e.g.
outW = round(width × percent/100)and the same for height. - Target width: you set the width; height is solved as
round(width ÷ ratio). - Target height: you set the height; width is solved as
round(height × ratio).
Each result is rounded to a whole pixel, so the ratio is preserved to within a sub-pixel.
Example
Starting from a 1920×1080 image (16:9 ratio):
| Mode | Input | Result |
|---|---|---|
| Percentage | 50% | 960 × 540 |
| Target width | 1280 | 1280 × 720 |
| Target height | 360 | 640 × 360 |
Everything is calculated in your browser; no image is uploaded.