🧰 ToolPicoAll Tools →

Image Compressor & Resizer

Compress photos, resize them by pixel or percentage, and convert between JPEG, PNG, and WebP — right in your browser. Adjustable quality, batch processing, before/after file size — 100% client-side: your photo is never uploaded to a server.

Formats JPG · PNG · WebP Multiple files Uploaded to a server never Updated: Jul 19, 2026
🖼️
Drag & drop images here
or choose from your computer · select multiple files at once · PNG, JPG, WebP, GIF, BMP
🔒 100% client-side — your photo is processed in your browser and is never uploaded to a server.
Lower quality = smaller file. Applies to JPEG/WebP; PNG is lossless (not affected by quality).
Target file sizeAutomatically adjusts quality to hit the KB/MB size you choose
Keep aspect ratioFits the image inside the box without distortion (shrinks only)
Fits the image to the selected platform size without distortion (aspect ratio kept, shrinks only).
Saved on this device only (localStorage) — stores format, quality, resize mode and size/percentage. Nothing is uploaded.
Export as WebP + JPEG + PNG togetherDownload ZIP includes all three formats for every image, in one go
Quick answer To compress an image, drop it into the tool above, choose an output format (WebP is most efficient, JPEG is smallest, PNG is lossless) and lower the quality slider. Everything happens locally in your browser — your photo is never uploaded to a server. You can also resize by maximum width/height or by percentage to shrink the file even further.
100%Client-side processing
0Files uploaded to a server
3Output formats: JPG, PNG, WebP
Images per batch
🔒 Privacy & info note: All compression, resizing, and format conversion on this page runs locally in your browser (Canvas API); your image files are never uploaded to a server or sent anywhere. Because the image is redrawn from scratch, EXIF/metadata (location, device info) is also removed automatically. Content is for informational purposes; check the output preview for critical images. Resulting file size can vary slightly by browser and image content.

What is image compression, and how does it work?

A full explanation of compression, resizing, lossy vs. lossless, format choice, and privacy.

Image compression is the process of reducing a photo's or image's file size (KB/MB). There are two basic approaches: lowering the pixel dimensions (width × height), and reducing quality (the lossy compression ratio). This tool can do both at once: it redraws the image onto a canvas at the target size and re-encodes it in your chosen format (with a quality value for JPEG/WebP). All of this happens inside your own browser — the file never leaves your device.

How do you reduce image file size?

Quick answerThere are three levers for shrinking a file: lower the quality (JPEG/WebP), reduce the pixel dimensions (maximum width/height or percentage), and switch to a more efficient format (WebP). For the web, resizing an image down to 1600–1920 pixels wide and saving it as WebP at quality ~75 brings most photos down to a few hundred KB.
  • Quality: 10–100. The 75–85 range gives a noticeable size reduction with no visible difference in most images.
  • Maximum size: Fits the image into the given width/height box; with keep aspect ratio on, there is no distortion.
  • Percentage: Scales both sides proportionally (e.g. 50% = a quarter of the area, a much smaller file).
  • Format: At a similar quality level, WebP is usually smaller than JPEG, which is smaller than PNG.

What's the difference between lossy and lossless compression?

Quick answerLossy compression (JPEG, low-quality WebP) produces very small files by discarding detail the eye will not notice. Lossless compression (PNG, lossless WebP) does not lose any pixel data but shrinks less. Lossy suits photos; lossless suits sharp-edged graphics, logos, and images that need transparency.

Repeatedly re-saving the same image at low quality in a lossy format causes cumulative degradation (generation loss). Keep an original copy while editing, and use the compressed copy only for sharing or uploading.

Which format should I use: PNG, JPG, or WebP?

Quick answerFor photos, choose JPEG or WebP; for logos, icons, screenshots, or transparent backgrounds, choose PNG or WebP. WebP covers both cases and usually gives the smallest file; all modern browsers support it. If you need maximum compatibility with very old devices, JPEG (for photos) and PNG (for graphics) remain the classic safe choices.

Is online image compression safe?

Quick answerIt is safe with this tool because your image is never uploaded to a server. All processing happens locally (client-side) in your browser; the file never leaves your device. Also, because the image is redrawn, EXIF location and device information is removed — an added privacy advantage.

How much does each setting shrink a file? (reference)

Approximate output sizes for a typical 12 MP phone photo (~4000×3000 px, ~5 MB JPEG) under different settings. Actual results vary by image content — the tool above shows the exact number instantly.

Example: approximate output for a ~5 MB, 4000×3000 px photo
SettingPixel sizeApprox. file
WebP · quality 80 · original size4000×3000~700 KB
WebP · quality 75 · max 19201920×1440~250 KB
JPEG · quality 70 · max 19201920×1440~320 KB
JPEG · quality 60 · max 12801280×960~150 KB
WebP · quality 70 · 50% scale2000×1500~230 KB
PNG · lossless · max 19201920×1440~3–5 MB

Because PNG is lossless, it stays large for photos — use JPEG or WebP to shrink photos.

Ready-made presets (click to apply)

Format & quality reference tables

PNG vs. JPEG vs. WebP comparison, a quality value guide, typical web widths, and file size units.

PNG vs. JPEG vs. WebP comparison
FeaturePNGJPEGWebP
CompressionLosslessLossyBoth
Transparency (alpha)YesNoYes
Size for photosLargeSmallSmallest
Graphics / logosIdealWeakGood
Browser supportUniversalUniversalModern
Typical useLogos, icons, screenshotsPhotosWeb (both)

In short: photos → JPEG/WebP, transparency/graphics → PNG/WebP. When in doubt, WebP is usually the most efficient.

JPEG/WebP quality value guide
QualityAppearanceUse case
90–100Nearly losslessPrint, archive, critical detail
75–85Imperceptible to the eyeWeb, social media (recommended)
60–75Slightly softerWhen a smaller file is needed
40–60Noticeable artifactsSmall previews / thumbnails
10–40Visible degradationExtremely small files, placeholders

A balanced starting point: WebP quality 75–80. Check the before/after preview for critical images.

Typical maximum width by purpose
PurposeRecommended widthNote
Social media post1080–1440 pxAlso limit height for square/portrait
Website content image1600–1920 pxWebP quality ~75 is efficient
Full-screen background1920–2560 pxKeep it a bit larger for retina screens
Small preview / avatar256–512 pxSquare + aspect lock off
Email attachment1280 pxKeep total size low

Most screens are 1920 px wide; keeping a content image bigger than that just wastes KB.

File size units
UnitEquivalentExample
1 KB (kilobyte)1024 bytesSmall icon
1 MB (megabyte)1024 KBUncompressed photo
Web image target100–300 KBWell-optimized content image
Raw phone photo3–8 MB12–48 MP JPEG

Getting content images under 300 KB is a good target for page speed.

Image terms glossary

Short definitions of the core concepts used in compression and resizing.

Pixel (px)The smallest dot that makes up an image. Width × height gives the image's pixel dimensions.
ResolutionThe total number of pixels in an image (e.g. 1920×1080). Higher resolution means more detail and a larger file.
Aspect ratioThe ratio of width to height (e.g. 16:9). If not preserved, the image looks squashed or stretched.
Lossy compressionShrinking a file by discarding some detail (JPEG/WebP). Lower quality shrinks the file more but degrades it.
Lossless compressionShrinking a file without losing any pixel data (PNG/lossless WebP). Shrinks less than lossy compression.
Quality valueA 10–100 scale used in lossy formats. Higher means better appearance and a larger file.
WebPGoogle's modern image format; supports both lossy and lossless compression plus transparency, and is very efficient.
Transparency (alpha)A transparent background in an image. Supported by PNG and WebP; not supported by JPEG.
EXIF / metadataLocation, date, and device information embedded in a photo. Removed automatically when the image is redrawn (privacy benefit).
DPI / PPIDots/pixels per inch. Matters for print; on screens, pixel dimensions are what actually matters.
CanvasThe browser's drawing/processing surface for images. This tool does all its processing locally with canvas.
BlobA binary file object created in the browser. The compressed image you download is a Blob.

In-depth guides

Detailed answers to the most common image compression questions.

How do I get a photo under 100 KB?

To hit a specific KB target, dial in three settings together: bring the maximum width down to 1280–1600 px, set the format to WebP, and pull quality down to around 65–70. Because the tool shows the new file size instantly with every change, just lower the quality step by step until you are under the target.

If the image is very detailed (busy textures, noise), you may need slightly lower quality to hit the same KB. If you do not need transparency, JPEG also gives a small result — but WebP usually takes up less space at the same look in most cases.

Why does my image get blurry after compression?

Blurriness happens for two reasons: a quality value that is too low (lossy artifacts), or shrinking the pixel dimensions too much and then displaying it larger. The fix: raise quality to 75–85, and do not resize the image smaller than the space it will actually be displayed in.

For images with sharp edges, graphics, logos, or text, JPEG causes blur or halo artifacts around edges; use PNG or lossless WebP for those. Photos generally handle lossy compression without issue.

Why does the background turn white when I convert a transparent PNG to JPEG?

JPEG format does not support transparency (the alpha channel). When you convert a transparent image to JPEG, the transparent areas have to be filled with a color; this tool fills them with white by default and warns you in advance.

If you want to keep transparency, choose PNG or WebP as the output format. WebP keeps transparency and produces a much smaller file than PNG.

Do my images really never leave my device?

Yes. This tool uses the browser's Canvas and File APIs to read, resize, and re-encode images. No image is ever uploaded to a server; no network request is made. You can verify this yourself by disconnecting from the internet and trying the tool.

In addition, because the output image is drawn from scratch, the original's EXIF location/device information is not carried over to the output — your privacy is protected before you share it.

Add this compressor to your site (embed code)

Embed the image compressor on your own website for free. Copy the code below into your HTML — the tool runs in a simplified view and links back to this page as its source.

The embedded tool has a fixed layout; you can adjust the height value to fit your site. No ads or personal data, runs entirely client-side.

Frequently asked questions

How do you compress an image?
Choose a JPEG or WebP output format, then lower the quality slider; the lower the quality, the smaller the file. In this tool, drop your image into the drop zone, adjust the quality, and click Download. Everything happens in your browser, and the file is never uploaded to a server. Reducing the pixel dimensions shrinks the file even further.
How do you reduce image file size?
There are two kinds of size: pixel dimensions (width×height) and file size (KB/MB). To shrink pixel dimensions, enter a maximum width/height or scale by percentage; keep aspect ratio prevents distortion. To shrink file size, lower the quality or convert to WebP. Combining both gives the smallest result.
What is WebP?
WebP is a modern image format developed by Google. At the same visual quality, it typically produces files about 25–35% smaller than JPEG, and even more compared to PNG. It supports both lossy and lossless compression, plus transparency. All modern browsers display WebP; it is usually the most efficient choice for websites.
How small can I make a photo, in KB?
Target file size depends on quality and pixel dimensions. Resizing a phone photo to 1600 px wide and saving as WebP quality 70 brings most photos down to 100–300 KB. The tool shows the new size instantly with every change, so you can dial in the exact KB you want by gradually lowering the quality.
Should I use PNG or JPG?
PNG is lossless and supports transparency; it is ideal for logos, icons, screenshots, and sharp-edged graphics, but the file is larger. JPEG is lossy, does not support transparency, but gives very small files for photos. Use JPEG/WebP for photos, PNG/WebP for graphics/transparency. WebP covers both cases.
Is online image compression safe?
It is safe with this tool because your image is never uploaded to a server. All processing happens inside your browser using the Canvas API; the file never leaves your device. Because the image is redrawn, EXIF/metadata (location, device) is also removed.
Does compression ruin image quality?
With lossy compression (JPEG/WebP), some detail is lost as quality drops, but in the 75–85 quality range the difference is imperceptible in most images while the file shrinks noticeably. PNG loses no quality but shrinks less. WebP quality 75–80 is a balanced recommendation.
Can I compress multiple images at once?
Yes. Drop multiple images into the drop zone at once, or select multiple files when choosing them. Each image is processed with the same settings, listed separately, and can be downloaded individually. You can also grab them all in one go with Download ZIP, built in your browser with no external library. Download all saves the files one after another instead.
Can I download the same images in WebP, JPEG, and PNG at the same time?
Yes. Turn on "Export as WebP + JPEG + PNG together" above the Download ZIP button. With it on, the ZIP file includes all three formats for every image in your batch, so you can pick whichever format you need per use case without reprocessing anything.
Can I save my compression settings to reuse later?
Yes. Set your format, quality, and resize options, type a name under "My saved presets", and click Save preset. It is stored locally in your browser (localStorage) — click the saved chip anytime to instantly reapply the same combination. Nothing is uploaded or sent anywhere.

Methodology & privacy

ToolPico's Image Compressor is a free, independent tool that runs in your browser. Images are processed locally using the HTML5 Canvas and File APIs: the file is loaded into an Image object, redrawn onto a canvas at the target size, and re-encoded with canvas.toBlob() in the selected MIME type (PNG/JPEG/WebP). For JPEG and WebP output, the quality value is scaled to the 0–1 range; transparent areas are filled with white for JPEG output. Because the image is redrawn from scratch, EXIF/metadata from the original is naturally removed.

Privacy: No image is ever uploaded to a server; all processing happens on your device and no network request is made. For bulk downloads, you can save files individually or get them all as a single ZIP built in your browser — created with a small embedded encoder (STORE method), no external library required. In target file size mode, quality is adjusted automatically with a binary search to hit your chosen KB/MB value; the image may be resized down slightly if needed. Actual output size can vary slightly depending on your browser's encoder and the image content. Last updated: July 19, 2026. Content is for informational purposes; check the output preview for critical work.
Explore all ToolPico tools → Free, browser-based tools — more added regularly

🔗 Add this tool to your site

Copy the code below into your own site. The tool is free, always up to date, and runs entirely on your page. No sign-up required.

Preview →
⚡ Built with ToolPico · toolpico.com