Image Compressor - Shrink JPG, PNG and WebP Online
Compress images locally with JPG, PNG or WebP output, adjustable quality and max edge length. See before/after sizes instantly and download. No upload.
Last updated: 2026-11-24
Compression Settings
Click, drag an image here, or paste one
PNG / JPG / WebP supported, up to 10MB each
Quality applies to JPG and WebP only; PNG ignores it
Leave blank to keep original size; e.g. 1920 scales down proportionally
Key features
Local, private processing
Compression runs entirely in your browser with Canvas. Images are never uploaded to a server or sent through any third-party service.
Three output formats
Choose JPG, PNG or WebP, or keep the original format. JPG conversion fills a white background first so transparent images do not turn black.
Quality and size control
Set 10%–100% quality for lossy formats and a max edge length for proportional scaling — two ways to cut file size.
Clear before/after
See original and compressed dimensions, file sizes and the exact percentage saved, so you can judge the result at a glance.
Common use cases
Shrinking photos before upload
When an article or product page enforces an image size limit, compress first to fit and help the page load faster.
Sharing phone photos
Phone cameras produce multi-megabyte originals. Compressed copies are easier to send in chat or email and to archive.
Application document uploads
Form portals often cap images at a few hundred KB. Lower quality and dimensions to pass the check without retries.
Organizing an old photo library
Resize and compress old photos before backing up to save cloud and drive space with controllable quality loss.
Frequently asked questions
Are my images uploaded?
No. Compression runs entirely in your browser with Canvas. Image data is never sent to a server and is not retained after you close the page.
Will quality get worse?
JPG and WebP are lossy, so lower quality loses some detail. Start around 80% and go lower only if you need a smaller file. PNG is lossless — quality is unchanged but savings are limited.
What is WebP good for?
At similar quality WebP is usually smaller than JPG and is supported by modern browsers. Use JPG if you need compatibility with older software.
Will a transparent PNG turn black as JPG?
No. The tool fills a white background before converting to JPG, so transparent areas stay white. Choose PNG or WebP if you need to preserve transparency.
How do I set the max edge length?
Enter a pixel value such as 1920. The image scales proportionally so its longer side stays within that value; leave it blank to keep the original size.
Why is the result sometimes larger?
PNG is lossless, so an already optimized small image may grow slightly. Try JPG or WebP and lower the quality a bit in that case.
Related tools
Image Cropper
Crop images locally: rectangle or circle, ratios like 1:1, 4:3 or 16:9, plus freeform. Export PNG, JPG or WebP with live pixel size. No upload.
Image OCR Text Recognition
Paste or upload a screenshot to extract text in Chinese, English or mixed mode. Live progress, one-click copy, local recognition — images are never uploaded.
QR Code Decoder
Free QR code decoder: upload, drop or paste an image to read URLs, text and WiFi codes, or scan live with a camera. Copy results instantly; nothing uploads.
1-Inch ID Photo Maker
Crop photos to the Chinese 1-inch ID size (25x35 mm) online, adjust position and zoom, then download a compressed copy under common upload limits. All local.
Barcode & QR Code Generator
Generate QR codes and barcodes (EAN-13, Code128, UPC and more) in your browser with custom size, colors and error correction. Download high-resolution PNGs.
Random Avatar Generator
Generate colorful SVG avatars and identicons from any seed text. Pick a style and palette, download as SVG or PNG, and reuse the seed to get the same avatar.
