DevBolt
Processed in your browser. Your data never leaves your device.

Resize Images Without Stretching

Resizing images without distortion means maintaining the original aspect ratio. If you change the width, the height must scale proportionally — and vice versa. This guide shows the math and practical techniques.

Home/Aspect Ratio Calculator

Aspect Ratio Calculator

Calculate, convert, and resize aspect ratios for images, video, and responsive design.

Enter Dimensions

Result

16:9
Aspect Ratio
1.7778
Decimal
1920 × 1080
aspect-ratio: 16 / 9;

Common Aspect Ratios

Equivalent Sizes at 16:9

WidthHeightPixelsLabel
3201800.1 MP
4802700.1 MP
6403600.2 MP
7684320.3 MP
9605400.5 MP
10245760.6 MP
12807200.9 MP720p / HD
14408101.2 MP
16009001.4 MP
192010802.1 MP1080p / Full HD
256014403.7 MP1440p / 2K
384021608.3 MP2160p / 4K UHD

The resize formula

To resize proportionally: new_height = original_height × (new_width ÷ original_width). For example, to resize a 1920×1080 image to 1280px wide: 1080 × (1280 ÷ 1920) = 720. The result is 1280×720 — same 16:9 ratio, no stretching. To calculate from a target height instead: new_width = original_width × (new_height ÷ original_height).

CSS techniques for responsive images

Use width: 100% with height: auto on img elements for fluid scaling. The aspect-ratio CSS property reserves space before the image loads, preventing layout shift. For cropping to a specific ratio, use object-fit: cover on the img inside a container with a fixed aspect-ratio. For background images, use background-size: contain (show all) or background-size: cover (fill, may crop).

Common mistakes when resizing

Never set both width and height to fixed pixel values unless they match the original ratio — this causes stretching. Upscaling beyond the original resolution creates blurry images; prefer downscaling. When batch-resizing for thumbnails, always calculate one dimension from the other rather than using a fixed box size. Use the calculator above to find the correct dimensions for any target size.

Frequently Asked Questions

How do I calculate the new height when resizing?

Multiply the new width by the original height, then divide by the original width: new_height = new_width × (original_height ÷ original_width). For example, resizing 1920×1080 to 800px wide: 800 × (1080 ÷ 1920) = 450. Result: 800×450.

Why does my resized image look blurry?

Upscaling (making an image larger than its original resolution) creates blur because the browser or editor must invent pixels that did not exist. Always resize downward when possible. If you must upscale, use AI-based upscalers that can infer detail.

How do I resize in CSS without distortion?

Set only one dimension (width or height) and let the other be auto: img { width: 100%; height: auto; }. Or use object-fit: contain to fit inside a box while preserving the ratio, or object-fit: cover to fill the box and crop overflow.

Related Inspect Tools