Image Resizer
Resize any image to exact pixel dimensions entirely in your browser, with the result exported as a PNG. Nothing is uploaded to a server.
How to use this tool
- 1
Click the file picker and choose an image (JPG, PNG, WebP, GIF, or any format your browser can decode).
- 2
The Width and Height fields auto-fill with the image's original pixel dimensions.
- 3
Edit the Width and/or Height number fields to the size you want, in pixels.
- 4
Click Resize to render the result, then click Download to save it as a PNG.
How does in-browser image resizing work?
Image resizing changes the pixel dimensions of a raster image. This tool loads your file into an HTML <canvas> element and calls the 2D context's drawImage method to paint the source image into a canvas sized to your target width and height. The browser resamples the pixels to fit, then toDataURL exports the canvas as a base64 PNG you can download. Because a raster image is a fixed grid of pixels, shrinking discards pixels while preserving detail, but enlarging interpolates new pixels and can never recover detail that was not captured — upscaled images look soft or blocky. This tool uses the browser's default canvas smoothing; it does not set imageSmoothingQuality or apply a high-quality algorithm like Lanczos, so heavy downscaling may look softer than dedicated software produces. Width and Height are independent, so changing only one stretches the image. Output is always lossless PNG regardless of the input format, and browsers cap canvas dimensions (roughly 16,384 pixels per edge plus a total area limit), so very large targets can fail silently. Everything runs locally in JavaScript, so your image never leaves your device.
Common use cases
Shrinking a phone photo to a fixed pixel width before attaching it to a forum post or support ticket.
Generating a square avatar by entering equal Width and Height values for a profile picture.
Producing a smaller preview thumbnail of a large screenshot for documentation.
Quickly checking how a logo looks at an exact pixel size like 200x200 before handing it to a designer.
Downscaling an oversized image so it fits within a CMS or email client's pixel limits.
Converting an image to PNG while resizing it, since the output is always saved as PNG.
Frequently asked questions
Does it keep the aspect ratio?▼
Is my image uploaded anywhere?▼
What format is the downloaded file?▼
Why does my downloaded JPG have a .jpg name but seem to be a PNG?▼
Why is the resized file sometimes larger than the original?▼
Can I enlarge a small image to make it sharper?▼
Why won't a very large size work?▼
Related tools
Image Compressor
Compress JPG/PNG/WebP images in your browser — no upload.
Image to Base64
Convert any image file to a Base64 data URL.
Base64 to Image
Decode a Base64 data URL back to an image file.
Favicon Generator
Generate a multi-size favicon from any image.
PNG to JPG Converter
Convert PNG images to JPG with adjustable quality.
JPG to PNG Converter
Convert JPG images to lossless PNG.