Free Image Compressor & WebP/AVIF Converter — Runs in Your Browser | CodeQuest
Quality 75
Lower values produce smaller files. For PNG, the number of colors is reduced automatically based on quality.
Resize
Don't resize<br>Custom size<br>Template size
Scale down (resize)<br>Crop to size
Width<br>Height
Keep aspect ratio<br>Don't enlarge beyond the original<br>While the aspect ratio is locked, changing the width updates the height automatically.
Crops the specified size directly from the original image. Choose the area by dragging on the thumbnail's “Adjust position” (hold Shift for a square; check the box in the dialog for a circle/ellipse). The area you drag is reflected in the width and height above.
Crop to center (cut off overflow)<br>Fit whole image (pad with margins)
Make margins transparent<br>Available for PNG and WebP output. JPG can't keep transparency, so the margins become white.
Margin color
Make a solid background transparent
Tolerance 30
Only the background color connected to the image edges is made transparent. Available for PNG, WebP, and SVG output (JPG can't keep transparency).
Drag & drop your images here
or click to choose files (multiple OK · JPG / PNG / WebP / AVIF / SVG)
Output format
Keep original format<br>Convert to JPG<br>Convert to PNG<br>Convert to WebP<br>Convert to AVIF<br>Convert to SVG
SVG output is best for logos and illustrations. Photos come out looking like cut-paper art and the file can be larger.
AVIF is a newer format that compresses even smaller than WebP, and all major browsers can display it. Conversion can take a few seconds per image.
Convert & compress
Download all as ZIP
What this tool does
Image compression — Shrink JPG, PNG, WebP, and AVIF at a quality you choose. PNG can be reduced dramatically through color quantization.
Format conversion — Convert between JPG, PNG, WebP, and AVIF. Convert to WebP (great for PageSpeed) or to AVIF (even smaller than WebP) in one click. Loading SVG (to PNG/JPG) and turning logos and illustrations into SVG are also supported.
EXIF removal — Capture date, camera model, GPS location, and other EXIF data are all removed automatically during conversion. Post photos from your phone without worrying about location data.
Resize & crop — Set a custom size, or crop to template sizes for OGP images, X headers, YouTube thumbnails, ad banners, and more. The crop box can be moved and resized by dragging (hold Shift for a square), and circular crops (for icons; outside the circle is transparent) are supported.
Background removal — Make a solid background (such as a white logo or diagram) transparent and export as PNG or WebP. Same-colored areas inside the logo are preserved — only the background connected to the edges becomes transparent. To cut out a person or product from a photo, use the AI Background Remover.
Batch processing — Convert multiple images at once and download them together as a ZIP.
How to use
Drag & drop your images, or click to select them (multiple selection is supported).
Set the output format, quality, and resize options in the panel on the left.
Press “Convert & compress” to see the before/after file size and the reduction rate.
Download images individually or all together as a ZIP.
Frequently asked questions
Are my uploaded images stored anywhere?<br>No. Loading, compression, and conversion all run entirely in your browser (on your own device), and nothing is ever sent to a server.<br>Why should I convert blog images to WebP?<br>WebP produces smaller files than JPG or PNG at the same visual quality, which improves page load speed (Core Web Vitals). All major browsers can display WebP.<br>Should I use WebP or AVIF?<br>AVIF compresses more — often 20–30% smaller than WebP at the same quality. Chrome, Safari, Firefox, and Edge all support AVIF, so choose AVIF when you want the smallest files, and WebP when compatibility is the top priority.<br>Is EXIF data (location, capture date) kept?<br>No. This tool decodes and rebuilds each image during conversion, so GPS location, capture date, camera model, and other EXIF data are all removed automatically. You can publish photos taken at home without worrying about your location being identified.<br>What quality setting should I use?<br>For blog use, 70–80 is a good guide. You can cut file size substantially with little to no visible loss.<br>Can I convert a photo to SVG?<br>You can, but because SVG represents images as a collection of shapes, photos end up looking like cut-paper art. SVG conversion is best for logos, icons, and illustrations.
Adjust crop position
Drag the image to adjust the crop position.
Crop as a circle (a perfect circle if the box is square; outside is transparent, white for JPG)
Reset to center<br>Use this position