Image Compressor
Compress JPEG, PNG, and WebP images client-side while preserving visual clarity.
About this tool
Images are usually the heaviest part of a web page and the main reason attachments bounce. A photo straight from a phone camera is 3–8 MB; the same photo displayed on a website rarely needs more than 200 KB. Compressing images makes pages load faster, improves Core Web Vitals scores, saves mobile data and keeps emails under size limits.
This compressor re-encodes images in your browser. Choose a quality, or set a maximum file size and let the tool find the best quality that fits. Convert to WebP or AVIF for much smaller files at the same visual quality, limit the longest side for web use, and process many images at once with a before-and-after comparison. Photos are never uploaded.
How to use Image Compressor
- Drop one or more images (JPEG, PNG, WebP, AVIF and more) onto the upload area.
- Choose an output format. "Same as original" keeps the format; WebP is the best general choice for websites and is supported by all modern browsers.
- Pick a compression mode: by quality (75–85% is a good balance for photos) or by target size, for example under 200 KB for an upload form.
- Optionally limit the longest side. A 4000-pixel photo shown at 1200 pixels wastes most of its bytes, so resizing often saves more than quality settings do.
- Drag the slider on the preview to compare before and after, then download individual images or all of them as a ZIP.
Examples
Phone photo for a website
IMG_2041.jpg, 4032×3024, 4.1 MB → WebP, quality 80%, longest side 1920
IMG_2041-min.webp, 1920×1440, about 250 KB (−94%)
Meet an upload limit
scan.jpg, 2.3 MB → Target size: 500 KB
scan-min.jpg, 487 KB at quality 71%
The tool searches for the highest quality that stays under the limit.
Choosing the right format
- JPEG: universal, good for photos, no transparency. Quality 75–85% is visually close to the original.
- WebP: 25–35% smaller than JPEG at similar quality, supports transparency, works in every modern browser.
- AVIF: often 50% smaller than JPEG with excellent detail; supported by current browsers, but encoding is not available in every browser (the option is disabled when yours cannot create AVIF).
- PNG: lossless; ideal for screenshots, logos and graphics with sharp edges or text, but large for photos. Quality settings do not affect PNG; convert to WebP to shrink it.
Why a compressed image can get bigger
If an image is already well compressed, re-encoding it at a higher quality, or as PNG, can produce a larger file. With "Keep the original when compression would make it larger" on, the tool returns the original untouched in that case. Re-encoding also removes EXIF metadata such as camera details and GPS location, which is good for privacy.
Frequently asked questions
Everything you need to know about this tool and data security.
What quality setting should I use?
For photos on websites, 75–85% in JPEG or WebP is hard to tell apart from the original. Below about 60% you start to see blocky artifacts around edges and in skies.
Is the location data removed from my photos?
Yes. Images are redrawn on a canvas and re-encoded, which drops EXIF metadata, including GPS coordinates and camera information. Photos are rotated correctly before the metadata is removed.
Can I compress many images at once?
Yes. Drop as many as you like; all are processed with the same settings and can be downloaded together as a ZIP.
Are my images uploaded?
No. Compression runs in your browser using the Canvas API. Your images never leave your device.
Is my data safe when using this tool?
Yes, 100% safe. This tool operates entirely inside your web browser using client-side JavaScript and WebAssembly. Your data never touches any external server.
Related Tools
Resize images by specific pixel dimensions or percentage with aspect ratio lock.
Convert images between PNG, JPEG, and WebP formats right inside your browser.
Crop images to an exact size or aspect ratio, rotate and flip them, or cut a round profile picture.
Featured Projects tech-fun.net
Explore more AI & productivity tools
Nihongo GameBox
Master Japanese typing, Kana, and JLPT N5–N1 vocabulary through interactive retro arcade games.
ResumeGPT
Tailors CVs and cover letters to every job opportunity with a multi-agent LLM pipeline, job tracking, and scheduled discovery.
CollectMind
Turns your bookmarks into a searchable AI knowledge base — entirely on-device, powered by Chrome's built-in Gemini Nano.