Image Resizer
Resize images to exact dimensions, by percentage or to a file-size limit. Private, no upload required. JPG, PNG, and WebP output. All processing happens in your browser.
Image Resizer Tool
Drop image here or click to select
JPG, PNG, WebP or GIF, up to 50 MB
Result: — × — px
Result: — × — px
Output Format
Resized Image
🔒 Your image never leaves your browser — all processing happens locally using the Canvas API.
How to Use the Image Resizer
Drop your image onto the drop zone or click to select a file
JPG, PNG, WebP or GIF, up to 50 MB. The tool shows a thumbnail with the original dimensions and file size, and lists what a resize will drop from this file, such as camera data or a colour profile.
Enter your target width and height, or a percentage
With the aspect ratio lock on, changing one side sets the other to the nearest whole pixel. In percentage mode, 50 halves each side. The tool tells you if the target is larger than the original or would stretch the picture.
Choose an output format, and a size limit if you have one
The format starts on the one your file came in. JPG suits photographs; PNG suits logos, screenshots and transparency; WebP is usually smaller than either. If a form sets a maximum file size, type it in the limit box and the tool finds the highest quality that fits, for JPG and WebP.
Click Resize Image, then Download
A preview appears with the before-and-after file size. The filename includes the new dimensions. Change any setting and the old result clears, so what you download always matches what is on screen.
What Resizing Changes, and What It Costs
Dimensions and file size are different things
Halving the width and height of a photograph leaves a quarter of the pixels, so the file usually falls by roughly as much. Lowering the quality setting keeps every pixel and discards detail instead. If an image is displayed at 400 px wide, a 4,000 px original wastes far more than any quality setting can save, so resize first and adjust quality second. Images are usually a page's largest cost: the median mobile home page in HTTP Archive's July 2025 crawl carried 911 KB of them, ahead of 632 KB of JavaScript. Lighthouse flags an image when its rendered size is at least 4 KiB smaller than the file you served.
How the pixels are recalculated
Shrinking means averaging many pixels into one. This tool draws on a canvas with
imageSmoothingQuality set to high, the best a page can ask for, though the
browser chooses the exact method and
MDN lists no Firefox support
for that setting. So a big reduction is done by halving in steps and then landing on the
target. Measured in Chrome 156 against an exact average, on a detailed test pattern taken
from 4,000 px to 1,000 px, that cut the mean error from 0.69 to 0.41 levels out of 255. Below
a 2× reduction there is nothing to halve and the result is a single draw. Enlarging cannot
add detail, only soften what is there.
What a resize drops
The output is a new file written by your browser, so EXIF camera data, GPS position and XMP are not carried over, including any copyright notice in them. The tool lists what it found in your file before you resize. If you need that data kept, this is not the tool. If you want it gone, the EXIF stripper can remove it without re-compressing. A rotated phone photo stays the right way up, because the rotation is built into the pixels. A colour profile is converted to sRGB, which clips colours outside it, and an animated GIF keeps only its first frame.
JPG, PNG or WebP
JPEG is lossy and has no transparency, so transparent areas need a background colour; left alone, the HTML standard composites them onto black, which is why this tool asks. PNG is lossless and keeps transparency, but holds photographs in much larger files. WebP does both: Google reports lossy WebP 25-34% smaller than comparable JPEG, and lossless WebP 26% smaller than PNG. Those are study averages, not a promise for your image. Safari can display WebP but cannot write it from a canvas, so the WebP button is disabled where a browser can't.
Sizes for a particular site
Upload sizes and file limits belong to each platform and change without notice, so take them from that platform's own help page. Check any government or job portal the same way: the limit is usually stated beside the upload button, and the size box above is built for it.
Frequently Asked Questions
-
No. Your image is decoded, resized and encoded by your browser on this page. It is not sent to RECATOOLS or anyone else.
-
Input: JPEG, PNG, WebP and GIF, up to 50 MB, plus anything else your browser can open, such as HEIC in Safari. Output: JPEG, PNG or WebP. WebP output is switched off in browsers that cannot write it. An animated GIF keeps its first frame only; the tool says so when you load one.
-
Aspect ratio is the relationship between width and height, such as 16:9. With the lock on, changing one side sets the other to the nearest whole pixel, so the shape stays the same to within a pixel. With it off you can type any size, and the tool warns if that stretches the picture by more than 1%.
-
Type the limit in KB in the box under the quality slider, for JPG or WebP. The tool tries qualities and keeps the highest one it measured under the limit, then shows you the number. If even the lowest quality is too big, make the dimensions smaller and try again. PNG is lossless, so it has no quality to lower.
-
There is no universal number, because the same quality looks different on a sky and on text. 85 is a reasonable start. Lower it until you can see the damage in the preview, then go back up a little. Quality numbers also do not carry between formats or encoders.
-
JPEG has no transparency, so transparent areas have to be filled. Left to the browser they turn black. This tool shows a colour picker when your image has transparency and JPG is selected, defaulting to white. Choose PNG or WebP to keep the transparency.
-
No. The file is rewritten from pixels, so camera data, GPS position and XMP are not carried over, and the tool lists what it found before you resize. A rotated phone photo stays upright, because the rotation goes into the pixels.
-
Shrinking discards pixels by design, but done with averaging it usually looks clean. Enlarging cannot create detail, so the result looks softer, and the tool warns you. Saving as JPG or WebP adds compression on top, so if the source is already a low-quality JPG, keep the quality setting high or save as PNG.
-
Yes, with no account. The limits are 50 MB per file and 16,000 px per side, and your browser may stop sooner: iPhones and iPads limit a canvas to 4,096 × 4,096 pixels, and the tool tells you if that happens rather than handing you a blank image. RECATOOLS is funded by advertising.
Method & sources
How it computes
Works out the target from exact dimensions, or a percentage of the original, in whole pixels; the aspect lock multiplies before rounding. A reduction of 2x or more is halved in steps, each drawn on a canvas at high smoothing, then re-encoded with toBlob(). With a file-size limit, a binary search keeps the highest quality measured under it. Transparency is filled for JPEG with a colour you pick. The page lists what a file will lose first (ImageResizeKernel, ImageFormatKernel).
What this tool implements
- Step-down is measured, not assumed. MDN compatibility data lists no version of Firefox supporting imageSmoothingQuality, so a single draw cannot rely on it. In Chrome 156 on 2026-11-02, against an exact box average, on a detailed test pattern: 4000 to 1000 px gave a mean error of 4.31 levels at low, 0.69 drawn once at high and 0.41 halved in steps; 4000 to 400 px gave 2.36, 1.07 and 0.55. Below a 2x reduction the plan is a single draw. Firefox itself was not tested.
- The HTML standard composites a type with no alpha onto black. Measured in the unfixed page: a half-transparent green PNG resized to JPG came out (10, 100, 10); with the white default it comes out (137, 227, 137). The page shows a colour picker only when the image has transparency and JPG is selected.
- The format starts on the one the file arrived in, where the browser can write it. WebP is probed with a one-pixel encode, because the standard answers an unsupported type with PNG and no error; file names come from the blob's real type.
- Dimensions are whole pixels. A locked side is value × to ÷ from, rounded: through a stored ratio, 2 × 99 at width 1 gave 49 where the true 49.5 rounds to 50. Neither side goes below 1 px. Limits: 50 MB input, 16,000 px per side, 1,000%. A canvas that cannot draw is detected before the file is written, so a blank image is never offered.
- Corrected 2026-11-02: Lighthouse "penalises images more than 25% larger than displayed" (the audit fails an image when its rendered size is at least 4 KiB smaller than the actual size); "911 KB" of images on the median page (home pages; inner pages 354 KB); "25-35%" (Google says 25-34%); "no file size limits" (50 MB); "convert to JPEG first" for HEIC (it depends on the browser). Removed as unsourced or unverifiable: "a 1-second delay reduces conversions by 7%" credited to Google and Akamai; "confirmed ranking factor" with suppressed rankings; 50 MB iPhone photographs; the Canvas API introduced "in HTML5 in 2004"; PNG invented in 1995; AVIF "typically 50% smaller"; MyInfo and SingPass photo requirements; and every platform size for WhatsApp, Instagram, LinkedIn, Shopee and Lazada, whose help pages could not be fetched.
Sources
- WHATWG HTML Living Standard, section 4.12.5 "The canvas element" — imageSmoothingQuality, and toBlob(): an unsupported type is replaced by image/png, and types without alpha are composited onto black. https://html.spec.whatwg.org/multipage/canvas.html
- MDN browser-compat-data, api/CanvasRenderingContext2D.json — imageSmoothingQuality: Chrome 54, Safari 9.1, Firefox not supported. https://raw.githubusercontent.com/mdn/browser-compat-data/main/ap…
- MDN Web Docs. <canvas>, Maximum canvas size — iOS devices limit the canvas to 4,096 × 4,096, and exceeding a limit leaves the canvas unusable. https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Eleme…
- Chrome for Developers. Properly size images — an image fails the Lighthouse audit if its rendered size is at least 4 KiB smaller than the actual size. https://developer.chrome.com/docs/lighthouse/performance/uses-res…
- HTTP Archive Web Almanac 2025, Page Weight chapter (July 2025 crawl) — median mobile home page: 911 KB of images and 632 KB of JavaScript; inner pages 354 KB of images. https://almanac.httparchive.org/en/2025/page-weight
- Google for Developers. An image format for the Web — lossy WebP 25-34% smaller than comparable JPEG, lossless 26% smaller than PNG. https://developers.google.com/speed/webp
- ITU-T Recommendation T.81 (09/92) | ISO/IEC 10918-1 — the JPEG baseline: lossy, and with no alpha channel. https://www.w3.org/Graphics/JPEG/itu-t81.pdf
- W3C. Portable Network Graphics (PNG) Specification (Third Edition), W3C Recommendation, 24 June 2025 — PNG compression is lossless. https://www.w3.org/TR/png-3/
What can make this go out of date
- None at runtime: every image is decoded and re-encoded in your browser, and no file is uploaded to RECATOOLS or anyone else.
Abridged — the full review record for this tool runs longer than the list above.
Pick up where you left off
Stored only in this browser — never sent to our servers.