Category: Image tools
Resize Image Online
Type exact pixel dimensions, lock the ratio if you want, export PNG, JPEG or WebP
Pick a local image, type the target width and height in pixels, keep or release the aspect ratio, then export PNG, JPEG or WebP. The file never leaves your browser.
Everything on this page is processed in your browser. Nothing is uploaded.
What this tool does
This image resizer handles one local image at a time. Choose it through the image/* file picker, and the browser decodes it with createImageBitmap. Then type the target width and height in pixels. With the aspect-ratio lock on, editing one dimension recalculates the other from the source ratio; with the lock off, the image is drawn to exactly the numbers you type, so mismatched values stretch it. The resize itself runs on a canvas, and the result is exported as PNG, JPEG or WebP, with a 20% to 95% quality slider available for the two lossy formats. The page shows the source dimensions, the output dimensions and the output file size, alongside a preview and a download whose filename combines the original base name with the target dimensions. Scaling is the whole job: there is no crop, smart crop, background removal, padding, watermarking or filter, no target file-size or target-KB guarantee, no platform preset dimensions in this component, and no batch or folder mode. It does not edit DPI metadata, preserve EXIF, expose color profile controls or promise metadata removal. Animated images become a single static frame after canvas export, and beyond the canvas export result itself the tool does not check up front whether a chosen output format is supported in your browser. The selected image and the resized result stay in the browser and are not uploaded to LocalTools; the download uses a browser object URL.
How to use it
- Select one local image and read its original pixel dimensions on the page.
- Enter the target width and height; keep the aspect-ratio lock on to stay proportional, or turn it off to hit exact numbers.
- Choose PNG, JPEG or WebP, adjust quality for the lossy formats, check the output size, then download; crop, padding, batch runs and target-KB are out of scope.
Privacy
This tool runs entirely in your browser. Your input is never uploaded, stored or shared — closing the tab removes it.
Frequently asked questions
- How can I resize a photo without losing image quality?
- Scaling down is safer than scaling up, because enlarging cannot invent detail that was not captured. Pick PNG to avoid lossy compression, or raise the quality slider for JPEG and WebP.
- Can I resize while keeping the aspect ratio?
- Yes. Leave the aspect-ratio lock on and edit either dimension; the other is recalculated from the source ratio.
- Is my image uploaded to a server?
- No. Decoding, resizing and export all happen in your browser, and neither the source image nor the result is sent to LocalTools or stored anywhere.
- How do I resize without stretching the photo?
- Keep the ratio lock on. With it off, the image is drawn to exactly the width and height you typed, and there is no crop or padding step to absorb the difference.
- Which output format should I choose, JPEG or PNG?
- PNG keeps flat graphics and transparency clean, JPEG suits photographs, and WebP is the third option. JPEG and WebP add a 20% to 95% quality slider; PNG ignores it.