The quick answer

Drop one image in, pick a quality level or a KB budget, press Process image, and the compressor re-encodes the file right in your browser. The result panel shows the processed image beside your original, with its new dimensions, size, and percent saved. The useful defaults: JPEG quality 75–85 is the sweet spot for photos (visually near-identical, typically 60–80% smaller than a camera original); photos should stay JPEG or become WebP, while screenshots and graphics with flat colors belong in PNG; and every re-save at lower quality is lossy, so compress from the original, never from an already-compressed copy.

Your file never leaves your device: the compression runs on the HTML canvas and an encoder inside your own browser, which makes this safe for contracts, ID scans and unreleased product shots.

How to compress an image

  1. Select the image

    One file at a time, JPG, PNG or WebP, via the file picker or a drag onto it. The tool reads it and reports the original's dimensions, size in KB, and megapixel count.

  2. Choose quality or target size

    The quality slider runs 10 to 100 and starts at 80. Tick "Compress to a target file size" instead and type a KB budget, or tap a preset (100 KB, 200 KB, 500 KB, 1 MB, 2 MB). Then pick the output format: JPEG, WebP or PNG.

  3. Press Process image and compare

    The result panel shows the re-encoded image with the new dimensions, size, and percent saved. In target mode a note reports the quality the search landed on, plus any downscaling it applied to hit your number.

  4. Download

    The button saves the file as <name>-toolzep.jpg, .png or .webp. The original on your disk is never modified.

How image compression actually works

JPEG is built for photographs, and it cheats intelligently. It converts the image to frequency data (a discrete cosine transform), then quantizes, deliberately rounding off the high-frequency components your eye is worst at seeing. Quality settings control how aggressively that rounding happens: at 90 almost nothing is discarded; at 60 flat areas stay clean but edges begin to halo. The discarded detail cannot be recovered, so the process is irreversible; that is what "lossy" means.

PNG works differently: lossless compression (a cousin of zip) that reconstructs every pixel exactly, with an optional palette reduction for flat-color graphics. That is why a screenshot of text as PNG can be 30 KB while the same shot as JPEG is 150 KB with fuzzy letters, and why a photo as PNG is routinely 5–10× larger than a decent JPEG. WebP does both jobs: lossy compression about 25–35% smaller than JPEG at equal quality, plus a lossless mode that beats PNG, which is why it is the default delivery format of the modern web.

FormatBest forTypical size vs JPEG q80Transparency
JPEGPhotographs, natural texturebaselineNo
PNGScreenshots, logos, line art, text3–10× larger for photosYes
WebPWeb delivery of both kinds~25–35% smallerYes
AVIFNext-gen web deliveryOften ~50% smallerYes
GIFSimple animation onlyPoor for photosYes
Which format earns its bytes, by content type
The standard web workflow

Input

A 4,000 × 3,000 camera photo (≈ 4.5 MB)

Output

Resized to 1,600 px wide, then JPEG q80 ≈ 250–400 KB, the right payload for a web hero image; q60 ≈ 150 KB with visible softening on close inspection. Resize in the Image Resizer first, or let target mode's automatic downscaling handle it here.

Quality settings, and where the sweet spot lives

JPEG qualityVisual resultUse for
95–100Indistinguishable from sourceArchival masters, mostly wasted bytes
85–90Excellent; artifacts invisible at normal viewingPortfolios, print-adjacent work
75–85Very good; the sweet spotWeb photos, email attachments
60–75Good; slight edge softening at 100% zoomThumbnail grids, galleries
40–60Noticeable blocking in flat areasOnly where bytes matter more than looks
< 40Visible artifactsDiagnostics, not delivery
What each quality band actually buys you

One number that surprises everyone: pixels cost more than quality. Halving an image's dimensions (4,000 px → 2,000 px) removes three-quarters of the pixels and typically cuts file size 70–80% with no compression artifacts at all, because the resize happens before the encode and most screens never show the difference. The professional pipeline is therefore resize first, to the largest size actually displayed, then compress at 75–85.

What else is inside your files

  • EXIF metadata, camera model, GPS coordinates, timestamps, can add hundreds of KB and leaks where a photo was taken. Re-encoding through a canvas strips it automatically, which is what this tool does; that is usually desirable, and it is why "strip EXIF" counts as a privacy feature.
  • Color profiles (ICC) matter for professional print workflows, and re-encoding may drop or convert them. Check proofs before relying on re-compressed files in print.
  • Animated GIFs are the worst bytes-per-pixel format in wide use; converting to MP4 or WebP typically cuts size 80–95% at better quality.
  • SVG is not in this tool's lane because it is vector: infinitely scalable and usually tiny. Shrink SVGs with a dedicated SVG tool instead of rasterizing them.

Frequently asked questions

How do I compress an image without losing quality?

For photos, JPEG quality 85–90 is visually indistinguishable from the original at normal viewing while cutting size 50–70%. Lossless compression (PNG, or JPEG quality 100) saves far less. The biggest legitimate saving is resizing to the largest size actually displayed, because pixels, not quality, dominate file size.

What quality level should I use for JPEG?

75–85 for the web. Below about 60, flat areas start showing blocky artifacts; above about 90 you pay for bytes no one can see. The quality slider runs 10 to 100 and the result preview updates at any level, so you can judge the trade yourself.

How do I compress an image to a specific file size?

Tick "Compress to a target file size", type your KB budget (presets: 100 KB, 200 KB, 500 KB, 1 MB, 2 MB), and press Process image. The tool binary-searches quality between 10 and 95, and when quality alone cannot reach the target it steps the dimensions down 15 percent at a time for up to six rounds until the file fits. That is the standard fix for forms and email attachment limits.

PNG or JPEG for screenshots?

PNG, decisively: flat colors and text stay razor-sharp and typically smaller than JPEG, which smears text edges and costs more bytes for the privilege.

Does compression remove my photo's GPS and camera data?

Yes. Re-encoding through the canvas strips EXIF metadata, including GPS coordinates, as a side effect of how this tool works. That is a privacy win when sharing images publicly.

Are my images uploaded to a server?

No. Compression runs entirely in your browser on your own device; the file never leaves it, which makes the tool safe for sensitive documents and unreleased work.

Why did my image get bigger after compressing?

Two common causes: a PNG input saved as PNG output (already-compressed data does not shrink further), or a quality setting near 100 that re-encodes without discarding anything. For photos, output JPEG or WebP at 75–85.

Sources and further reading

Sources and further reading

We cite primary sources (standards bodies, government agencies, official documentation) wherever they exist so you can verify every number on this page yourself.