Image Resizer

Resize Image Online

Resize any image to exact pixel dimensions in your browser. Supports JPEG, PNG, WebP, AVIF and HEIC. Nothing leaves your device.

Exact

Pixel Size

3 Modes

Fit, Fill, Stretch

Any Format

Support

Private

No Uploads

W
H

Scales and crops to fill exact size. No white space. No distortion. Recommended.

85
Smaller fileBetter quality

Drop image here to resize to 1920x1080

JPEG, PNG, WebP, AVIF, HEIC. All processing stays in your browser.

Understanding resize modes

Fill (default)

Recommended

Scales the image to completely fill the target dimensions while preserving the aspect ratio. Any excess pixels are cropped from the center. No white space, no distortion — this is what most tools do by default.

Good for: Social media posts, thumbnails, wallpapers

Fit

No cropping

Scales the image to fit entirely within your target dimensions while keeping the original aspect ratio. If the proportions differ, white padding is added to fill the remaining space. Nothing is ever cropped.

Good for: Portraits, documents, logos

Stretch

Exact dimensions

Forces the image to exactly match the target dimensions by stretching or squashing. The aspect ratio is not preserved. Use only when distortion is acceptable.

Good for: When exact pixel match is required

What if my image is smaller than the target size?

If your source image is smaller than the target dimensions, the tool will upscale it to reach the requested size. A warning is shown because upscaling raster images reduces sharpness — the algorithm can only interpolate new pixels, it cannot recover detail that was never in the original.

For most use cases (web uploads, social media, document attachments) the result is still perfectly usable. The visual quality difference between a slightly upscaled image and the original is rarely noticeable at normal viewing sizes.

Best practice: Always start from the highest-resolution version of your image when upscaling is required. If you need to increase an image size significantly, the result will be soft and may show artifacts. For AI-quality upscaling, a dedicated upscaling tool with a super-resolution model is needed.

What resizing actually does to your image

Most people treat image resizing as a simple operation. Type in the dimensions, click resize, done. And for a lot of use cases, that's exactly right. But there are a few situations where understanding what's happening under the hood saves you from a result that looks worse than it should or causes a submission to fail silently.

When you resize a raster image (a JPEG, PNG, or WebP photo), the software has to either add or remove pixels. Reducing the size is straightforward: pixels are dropped or merged. The image gets smaller and generally looks fine. Increasing the size is harder, because the algorithm has to invent new pixels that weren't in the original. It does this by sampling surrounding pixel values and interpolating. The result is a larger image, but a slightly softer one. At modest upscaling amounts, say 20 to 30%, you probably won't notice. At 2x or 3x, you will.

Pixels vs file size: what you're actually changing

Resizing and compressing are different things, but they're often confused. Resizing changes the pixel dimensions of an image. A 4000 by 3000 pixel photo resized to 1200 by 900 will have fewer pixels and generally a smaller file size, but the exact file size depends on the format and compression settings you choose when saving. Compressing an image reduces the file size by encoding the existing pixels more efficiently, without necessarily changing the dimensions at all.

If you need an image under a specific file size limit (like 100KB for a portal upload), resizing alone might not get you there. You may also need to compress. The compress to 100KB tool handles that separately, or the main compressor on the homepage lets you control both dimensions and quality in one step.

When JPEG is the right output and when PNG is

If you're resizing a photo to share online, send by email, or upload to a portal, output as JPEG. It produces smaller files and is accepted everywhere. The quality loss from JPEG compression at 80 to 90% is invisible at normal viewing sizes.

Use PNG output when the image has a transparent background, or when you've used Fit mode and want the padding area to be transparent rather than white. PNG is also the right choice for screenshots, diagrams, or images with sharp text, because JPEG compression creates visible artifacts around high-contrast edges like text on a solid background. For those, PNG's lossless encoding keeps the edges clean.

Frequently asked questions

What is the difference between fit, fill and stretch resize modes?

Fit scales the image to fit within the target dimensions while preserving the aspect ratio. If the aspect ratios differ, white padding is added. Fill scales the image to fill the target dimensions while preserving the aspect ratio, cropping the center if needed. Stretch forces exact dimensions regardless of aspect ratio and may distort the image.

What happens if my image is smaller than the target dimensions?

The tool will upscale your image to reach the target dimensions. A warning is displayed because upscaling raster images (JPEG, PNG, WebP) reduces sharpness since no new detail can be added. For best results when upscaling is needed, start from the highest-resolution version of your image.

Which output format should I choose, JPEG or PNG?

Choose JPEG for photographs and images without transparency. It produces smaller files and is universally compatible. Choose PNG when the image has a transparent background, when you used Fit mode with padding (the padding will be white in JPEG but transparent in PNG if desired), or when you need lossless quality.

Can I resize while keeping the aspect ratio?

Yes. Enable the aspect ratio lock button between the width and height inputs. When locked, changing either dimension automatically updates the other to maintain the original proportions. Alternatively, use Fit mode, which always preserves the aspect ratio.

Is my image uploaded to a server?

No. All resizing happens entirely in your browser using WebAssembly. Your image never leaves your device.

What image formats are supported?

JPEG, PNG, WebP, AVIF and HEIC are all supported as input. The output is JPEG or PNG depending on your selection.