Image Compressor
Recompress an image to a smaller JPEG entirely in your browser, with a quality slider you control. Your file never leaves your device.
How to use this tool
- 1
Click the file input and choose an image (JPG, PNG, or WebP).
- 2
Drag the quality slider — lower percentages produce smaller files.
- 3
Compare the original and compressed sizes, and the percentage saved, shown below.
- 4
Click Download to save the recompressed JPEG.
How browser-based image compression works here
Most of a web page's weight is images, so shrinking them is usually the single biggest performance win you can make — smaller images load faster, cost less bandwidth, and directly improve the Largest Contentful Paint (LCP) metric that Google's Core Web Vitals measure. This tool draws your selected image onto an HTML canvas and re-exports it as a JPEG at the quality level you pick (10–100%). JPEG uses lossy compression: as you lower the quality, the encoder discards fine high-frequency detail the eye barely registers, and the file shrinks accordingly. Two things are worth knowing because they follow from how the tool is built. First, the output is always a JPEG, regardless of whether you fed it a PNG or WebP — so a PNG with a transparent background comes out with that transparency flattened (typically to black), which makes this the wrong tool for logos or images that need an alpha channel. Second, it recompresses at the original pixel dimensions; it does not resize. For the largest savings you'll often want to scale a 4000px photo down to the width it's actually displayed at first, using a resizer, then compress. For everyday photos and JPEG hero images, dropping quality to 70–80% usually cuts the file dramatically with no visible difference.
Common use cases
Shrink a large JPEG hero or banner to improve LCP and Core Web Vitals.
Compress holiday or event photos before emailing or messaging them.
Reduce product photos for an ecommerce listing where the source files are huge.
Lighten blog-post photography so pages load faster on mobile.
Quickly check how much smaller a photo gets at 60% vs 80% quality before committing.
Flatten and compress a screenshot that doesn't need transparency.
Frequently asked questions
Is my image uploaded anywhere?▼
What output format do I get?▼
Will a transparent PNG keep its transparency?▼
Does it resize the image?▼
What quality setting should I use?▼
Why did my already-optimized image barely shrink (or grow)?▼
Related tools
Image to Base64
Convert any image file to a Base64 data URL.
Base64 to Image
Decode a Base64 data URL back to an image file.
Favicon Generator
Generate a multi-size favicon from any image.
Image Resizer
Resize images to any dimensions in your browser.
PNG to JPG Converter
Convert PNG images to JPG with adjustable quality.
JPG to PNG Converter
Convert JPG images to lossless PNG.