Ferramentas Guias
Media Gratuito Sem cadastro

Photo Resizer & Compressor

Resize and compress images in the browser using Canvas API — by percentage, exact dimensions, or max dimension — with batch processing and ZIP download.

Carregando ferramenta…

Sobre esta ferramenta

Resize and compress photos entirely in your browser without uploading them to any server. Drag and drop one or multiple image files onto the upload area to add them to the batch queue. Three resize modes give you full control: Percentage mode scales images by a percentage of their original size (10–200%); Exact Dimensions mode sets a specific width and height; Max Dimension mode fits the longest side within a pixel limit while automatically maintaining proportions. The aspect ratio lock toggle keeps width and height proportional in Exact Dimensions mode — type either dimension and the other updates automatically. Choose the output format: JPEG and WebP support a quality slider (1–100) for fine-grained control over compression; PNG uses lossless compression. Each image in the queue shows a before/after comparison: the original filename, original dimensions and file size, and the estimated new dimensions and file size after processing. Click Process to apply the resize and compression to all images. Download individual processed images with a single click, or use the Download All as ZIP button to bundle all results into a single ZIP archive using JSZip. A progress bar tracks batch processing status.

Como usar

  1. 1 Drag and drop images onto the upload area, or click 'Choose Files' to select one or more images.
  2. 2 Select a resize mode: Percentage, Exact Dimensions, or Max Dimension.
  3. 3 Choose the output format (JPEG, PNG, or WebP) and set the quality slider for JPEG/WebP.
  4. 4 Toggle 'Lock Aspect Ratio' to maintain proportions when entering exact dimensions.
  5. 5 Click 'Process All' to resize and compress every image in the queue.
  6. 6 Click the download icon on individual images or 'Download All as ZIP' to save the results.

How resizing and compression work in the browser

This tool changes an image's dimensions and file size using the HTML5 Canvas API — the same technology browsers use to draw graphics. When you process an image, it is loaded into an off-screen canvas sized to the new width and height, the original is redrawn onto that smaller canvas (which is the actual resampling step), and the canvas is then re-encoded to your chosen format. Resizing and compression are two different levers: shrinking the pixel dimensions removes data outright, while compression quality controls how aggressively the encoder discards detail at whatever dimensions you keep. The result is a brand-new file you download; the original on your disk is untouched.

The three resize modes

ModeWhat it doesBest for
PercentageScales both dimensions by a percentage (10–200%)Uniformly shrinking a batch
Exact DimensionsSets a specific width and heightHitting a fixed slot, e.g. 800×600
Max DimensionFits the longest side within a pixel limitMixed portrait/landscape sets

Two behaviours are worth knowing. In Exact Dimensions mode, the Lock Aspect Ratio toggle uses your width as the reference and recomputes the height from the original proportions, so the image is never stretched. In Max Dimension mode the tool will not upscale: if your limit is larger than the image already is, it keeps the original size rather than blowing it up into a blurry result.

A worked example

Drop a 4000×3000 pixel, 4.2 MB JPEG straight off a phone into the queue and choose Max Dimension with a limit of 1200. Because the width (4000) is the longer side, the tool sets the new width to 1200 and scales the height proportionally to round(1200 × 3000 ÷ 4000) = 900, giving a 1200×900 image. With JPEG output at quality 85, the re-encoded file typically lands around 200–300 KB — roughly a 95 percent reduction — which the row reports as a green "smaller" badge. The downloaded file is renamed automatically with a _resized suffix (e.g. beach_resized.jpg) so it never overwrites your original.

Choosing the output format

  • JPEG — lossy, ideal for photographs. It exposes the quality slider, which maps directly to the encoder: quality 85 is usually visually indistinguishable from 100 at a fraction of the size.
  • WebP — a modern format that typically beats JPEG by 25–35 percent at the same visual quality, also with a quality slider. Supported by all current browsers.
  • PNG — lossless, best for screenshots, logos, line art, and anything with sharp edges or text. The quality slider does not apply to PNG; it always encodes at full fidelity, so it will be larger than JPEG for photos.

The quality slider runs 1–100 and is divided by 100 to feed the canvas encoder, so a slider value of 85 becomes an encoder quality of 0.85.

Batch processing and ZIP download

You can queue many images at once, each shown with its original dimensions and file size alongside the predicted new size. Click Process All to run them through the canvas one after another, then download each individually, or use Download All as ZIP to bundle every result into a single archive. The ZIP is built with the JSZip library packaged entirely in memory in your browser — no server assembles it.

Practical tips and common mistakes

  • Match format to content. Saving a screenshot of text as JPEG produces blurry, ringing artifacts around the letters; use PNG. Saving a photo as PNG produces a needlessly huge file; use JPEG or WebP.
  • Resize before you compress. A 4000-pixel image squeezed to low quality still carries far more data than the same image scaled to 1200 pixels at high quality. Cutting dimensions is the single biggest size win.
  • Quality 80–85 is the sweet spot for JPEG and WebP. Below about 70 you start to see blocking; above 90 the file grows with little visible gain.
  • Don't expect to recover quality. Upscaling a small image only invents pixels — it never adds real detail, which is why Max Dimension mode refuses to enlarge.
  • Animated GIFs lose their animation. The canvas captures only the first frame, so a multi-frame GIF becomes a still image.

Privacy

Every step — reading the file, drawing it to the canvas, re-encoding, and zipping — happens locally in your browser. Your photos are never uploaded to BoxTool's servers. The only external request is fetching the JSZip library from a public CDN, and that is loaded only if you choose to download a ZIP; resizing and individual downloads work with no network at all.

Perguntas frequentes

{# Alpine.js — self-hosted. (The previous jsdelivr CDN tag had a stale SRI integrity hash, so the browser refused to run it and window.Alpine was never defined — silently breaking every FAQ accordion and Alpine tool.) #}