What This Tool Does

This image resizer changes the pixel dimensions of JPG, PNG, WebP, and GIF images while optionally preserving aspect ratio. You can enter exact pixel values or a percentage. Everything runs in your browser using Canvas — your images stay on your device.

Inputs Explained

How It Works

The image is drawn onto a new Canvas with the target dimensions using high-quality bilinear interpolation. The resized canvas is exported as a Blob in your chosen format. Aspect ratio is maintained by scaling both dimensions proportionally.

Formula / Logic Used

scale = newWidth / originalWidth newHeight = originalHeight × scale (if aspect locked)

Image Resizer

Resize any image by pixel dimensions or percentage with aspect ratio lock.

Step-by-Step Example

Common resize targets:

To scale a 4000×3000 photo down to 50% → enter 50% in percentage mode, or 2000×1500 in pixel mode.

Use Cases

Assumptions and Limitations

Disclaimer: Resizing runs entirely in your browser — no server uploads. Images are processed using the Canvas API with high-quality interpolation.

Frequently Asked Questions

What's the difference between resize and compress?

Resize changes pixel dimensions (e.g., 4000×3000 → 2000×1500). Compress changes file size at the same dimensions by lossy encoding. For maximum file size savings, do both: resize down AND lower JPG quality.

Will resizing lose quality?

Downscaling loses detail because fewer pixels represent the image. Upscaling is worse — it invents detail that wasn't there. Always start from the highest resolution you have and downscale to your target.

How do I keep aspect ratio?

Enable the 'Keep aspect ratio' checkbox. Then editing the width will automatically update the height (or vice versa) to preserve the proportions of the original image.

What's a good resolution for web images?

2× the display size is typical for Retina screens. For a hero that displays at 960px wide, use 1920px images. For thumbnails shown at 300px, use 600px. Balance sharpness against file size.

Can I upscale a small image?

Technically yes, but the result will be blurry. Canvas upscaling multiplies pixels without adding detail. For real upscaling, use AI tools like Upscayl (free), Topaz Gigapixel, or waifu2x (for anime/art).

Does resizing strip EXIF metadata?

Canvas-based resizing removes EXIF data (camera model, GPS, shooting date). This is often desirable for privacy when sharing photos. If you need to preserve EXIF, use specialized tools.

What format should I output?

JPG for photos (smallest, lossy, no transparency). PNG for graphics with transparency or sharp edges (lossless). WebP is smaller than both at equal quality but requires modern browser support.

Is my image uploaded to a server?

No. The resize happens entirely in your browser using Canvas APIs. Your image file never leaves your device. You can even use this tool offline once the page has loaded.

Sources and References

Related Calculators

Image CompressorImage Format ConverterImage to Base64Favicon GeneratorAspect Ratio CalculatorPlaceholder Image