Image Resize Calculator
Resize an image while preserving its aspect ratio: enter the original width and height plus a new width to get the matching proportional height.
Image Resize Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser — no data is sent to any server.
Formula: New Height = Original Height × (New Width / Original Width)
Worked example — 1280×720 (66.7% scale)
Formula
New Height = Original Height × (New Width / Original Width)
Maintains aspect ratio by scaling height proportionally to width. Aspect ratio = width / height.
Worked Examples
Example 1: 1920×1080 to 1280
Problem:Resize 1920×1080 to 1280 wide
Solution:1080 × (1280/1920) = 720
Result:1280×720 (66.7% scale)
Frequently Asked Questions
When should I resize images?
Resize for web (max 1920px wide, <200KB), social media (platform-specific sizes), email (max 600px wide), and printing (300 DPI × print size in inches).
What are optimal image dimensions for social media platforms?
Instagram feed posts: 1080×1080 (square) or 1080×1350 (portrait). Facebook cover: 851×315. Twitter/X header: 1500×500. LinkedIn profile banner: 1584×396. YouTube thumbnail: 1280×720. Always check platform guidelines as these change periodically.
Does resizing an image reduce quality?
Downscaling (making smaller) generally preserves or improves quality for web use. Upscaling (enlarging beyond original size) degrades quality by interpolating pixels, creating blurriness or pixelation. For best results, always start with the highest resolution source image and scale down rather than enlarging a small image.
What is the difference between resizing and compressing an image?
Resizing changes the pixel dimensions (width × height), which affects both display size and file size. Compression reduces file size by discarding data, either losslessly (PNG) or with some quality loss (JPEG). For web optimization, you typically do both: resize to the actual display dimensions, then compress to reduce file size for faster loading.
How is an aspect ratio reduced to a form like 16:9?
Divide both dimensions by their greatest common divisor. For 1920 by 1080 the divisor is 120, giving 16:9; for 1024 by 768 it is 256, giving 4:3; for 1080 by 1350 it is 270, giving 4:5. The reduced pair is the smallest whole-number description of the same shape, which is why any two images sharing it scale into one another exactly. A frame that reduces to an unfamiliar pair simply means the source was cropped away from a standard ratio.
Which resampling filter should I choose when downscaling?
Scaling resamples rather than selects pixels, and the filter sets the trade-off. Nearest neighbour copies the closest source pixel, which is fast and correct only for pixel art. Bilinear averages the four surrounding samples and looks soft. Bicubic weighs sixteen and holds edges better, which is why it is the common default. Lanczos applies a windowed sinc kernel and gives the sharpest reductions, at the cost of faint ringing beside high-contrast borders. For photographs, bicubic or Lanczos on the way down is the safe choice.
What causes moire patterns when an image is shrunk?
Reducing an image lowers its sampling rate, and detail finer than the new limit does not vanish: it folds back as a false low-frequency pattern. Fabric weave, brickwork, roof tiles and fine grids are the usual victims, and the result is banding or colour fringing that was never in the scene. The remedy is to low-pass the image as part of the reduction, which is what a proper bicubic or Lanczos filter does, whereas a nearest-neighbour reduction skips that step and aliases badly.
How many pixels does an image need to print at a given width?
Multiply the print width and height in inches by the pixels per inch the process expects. At the usual 300 PPI an 8 by 10 inch print needs an image of 2400 by 3000 pixels, which is 7.2 megapixels, and that width and height already sit at the 4:5 aspect ratio of the paper. Halving the PPI quarters the pixel count, so large-format work viewed from a distance is often produced at 150 PPI. Dividing an image original width by 300 gives the widest print it can support.
What is the difference between resizing and cropping to change aspect ratio?
Proportional resizing preserves the ratio, so it can never turn a 16:9 frame into a square. To change the shape you either crop, discarding pixels from the edges until the remaining rectangle has the ratio you want, or pad, adding bars to fill it, which is what letterboxing does. Forcing new dimensions without doing either stretches the content and visibly distorts faces and circles. Decide the crop first and resize the cropped rectangle, so resampling runs only once.
How does srcset let a browser choose the right image size?
srcset lists several renditions with width descriptors, and the sizes attribute states how wide the slot will be at each breakpoint. The browser combines the two with the device pixel ratio and picks a file before layout finishes, so a phone never downloads a 2400 px hero for a 390 px column. The picture element covers the other case, art direction, where a different crop or a newer format such as AVIF or WebP is offered with a fallback for browsers that cannot decode it.
Background & Theory
History
Reviewed for accuracy by Daniel Agrici, Founder & Lead Developer · Editorial policy
Related Calculators
🖼️Image Resizer
Resize images to any dimension
🖼️Image Size
Calculate image dimensions and file size
🧮AI Image Generation Cost Calculator
Calculate the cost of generating AI images across Midjourney, DALL-E, and Stable Diffusion plans.
🧮Open Graph Image Size Calculator
Calculate optimal Open Graph and Twitter Card image dimensions for social media sharing.
🧮Docker Container Size Calculator
Estimate Docker image and container sizes from base image, layers, and dependencies.
🧮Bandwidth Time Transfer Calculator
Calculate bandwidth time transfer with inputs, formulas, and instant results.
🧮Download Time Calculator
Calculate download time with inputs, formulas, and instant results.
🧮Throughput Efficiency Calculator
Calculate throughput efficiency with inputs, formulas, and instant results.