Image Compressor
Shrink an image's file size with adjustable quality and resizing, converting between JPEG, WebP, and PNG. Runs entirely in your browser; nothing you upload is ever sent anywhere.
Drop an image here, or click to choose one
Quick Learn
Image file size mostly comes down to two things: how many pixels the image has, and how aggressively those pixels are compressed. JPEG and WebP are lossy formats — they throw away some visual detail in exchange for a much smaller file, and a "quality" setting controls how much detail gets sacrificed. PNG is lossless — it never throws away detail, which is why it's the right choice for screenshots and graphics with sharp edges, but also why it rarely shrinks much just by re-saving it.
This tool redraws your image onto a canvas — optionally resized to a maximum width — and re-encodes it at your chosen format and quality, entirely in your browser using the same canvas APIs every browser ships with. Nothing you upload is sent anywhere; the "upload" box is just a local file picker.
Best Practices
- •For the biggest size reduction, convert PNG photos to JPEG or WebP — PNG's lossless compression is the reason a re-saved PNG often barely shrinks, while switching format can cut size dramatically.
- •Keep PNG only when you need transparency or the image has flat colors and sharp edges (logos, screenshots, diagrams) — those compress worse as JPEG and can show visible artifacts.
- •Quality 70-85% is usually visually indistinguishable from the original for photos, while meaningfully smaller — there's rarely a reason to go above 90% unless the image will be cropped or zoomed later.
- •Resizing (Max Width) often saves more than lowering quality does — an image displayed at 800px wide gains nothing from being stored at 4000px, no matter how high the quality setting.
More Image & Media Tools
QR Code Generator
Generate a QR code from text, a URL, or anything else, with adjustable size and error correction.
Barcode Generator
Generate Code128, EAN-13, and other common barcodes.
Image to Base64
Convert an image to a base64 data URI, and back.
Image Format Converter
Convert between PNG, JPEG, and WebP.
Favicon Generator
Generate a full favicon set from one image.
SVG Editor
Edit, recolor, resize, optimize, and export SVG markup, with a live preview.
Frequently Asked Questions
Want the engineering deep-dives behind tools like this one?