RevealTheme logo

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. 1

    Click the file picker and choose an image (JPG, PNG, WebP, GIF, or any format your browser can decode).

  2. 2

    The Width and Height fields auto-fill with the image's original pixel dimensions.

  3. 3

    Edit the Width and/or Height number fields to the size you want, in pixels.

  4. 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?
No. Width and Height are separate fields with no link between them, so if you change only one, the image stretches. To avoid distortion, scale both dimensions by the same factor — for example, halve both Width and Height.
Is my image uploaded anywhere?
No. The file is read with URL.createObjectURL and drawn onto a canvas entirely in your browser using JavaScript. Nothing is sent to a server, so your image stays on your device.
What format is the downloaded file?
Always PNG. The canvas is exported with toDataURL('image/png') no matter what you upload, so a resized JPG comes out as a lossless PNG.
Why does my downloaded JPG have a .jpg name but seem to be a PNG?
The download filename is built as resized-<original name>, so a file called photo.jpg keeps the .jpg extension even though the bytes are PNG. Rename it to .png if the extension matters to another program.
Why is the resized file sometimes larger than the original?
PNG is lossless and stores photographic detail less efficiently than JPEG. Resizing a compressed JPEG photo to PNG can produce a bigger file even at smaller dimensions. For web delivery, re-encode the result as JPEG or WebP in a dedicated converter.
Can I enlarge a small image to make it sharper?
No. Upscaling interpolates new pixels but cannot add detail that was never captured, so enlarged images look soft or blocky. Resize down from the highest-resolution original you have.
Why won't a very large size work?
Browsers limit canvas size to roughly 16,384 pixels per edge plus an overall area cap. Targets beyond that can fail silently with a blank or missing result. Keep dimensions within normal ranges, and use desktop software for extreme sizes.

Related tools