← Back to Compressor

Bilder Online Komprimieren – Anleitung

Everyone has been there: you try to attach a few photos to an email, only to have it rejected because the attachments exceed the size limit. Or you need to upload an image to a website, but the file is too large. Modern smartphones capture photos that are 3–12 MB each, and a handful of them will quickly exceed most email providers' 20–25 MB attachment limits.

Image compression solves this by reducing file sizes while keeping the visual quality acceptable. This guide covers everything you need to know — from the basics of how compression works to step-by-step instructions for compressing JPEG, PNG, WebP, and GIF images.

"Lossy" and "Lossless" Compression

There are two fundamental approaches to image compression: lossy and lossless.

Lossy compression reduces file size by permanently discarding some image data. The key insight is that the human eye is remarkably forgiving — we don't notice small changes in color accuracy or fine detail. JPEG compression exploits this by simplifying color information and discarding high-frequency details that are barely visible. At moderate compression levels (quality 70–85), the results look nearly identical to the original.

Lossless compression, on the other hand, preserves every pixel exactly as it was. It works by finding more efficient ways to encode the same data — similar to how a ZIP file compresses documents without changing their contents. PNG uses lossless compression, which is why PNG files tend to be larger than JPEG files for the same image.

The choice depends on your use case: archival and medical imaging require lossless precision, while photos for the web or email work perfectly with lossy compression.

Compressing JPEG Images

JPEG is the most common photo format on the web. It uses lossy compression based on the Discrete Cosine Transform (DCT), which converts image data into frequency components and then discards the least important ones.

Step-by-step: JPEG Compression

  1. Upload your JPEG files — Drag and drop them onto the compression area, or click "Select Files" to browse. You can also paste images directly from your clipboard (Ctrl+V).
  2. Click Compress — The default quality is 80, which provides an excellent balance between file size and visual quality. Most images will be reduced by 40–70% at this setting.
  3. Adjust quality if needed — After compression, select any image to open the comparison panel. Use the quality slider (10–100) to fine-tune. Higher values preserve more detail; lower values create smaller files.
  4. Compare before and after — The side-by-side comparison view shows the original (left) and compressed (right) versions. Drag the divider to see the difference at any point. Zoom in with your mouse wheel to check fine detail.
  5. Save your compressed image — Click "Save" on individual files, or "Save All" to download everything as a ZIP file.
Tip: The smaller an image will appear on a web page, the more you can compress it without visible quality loss. A 300px-wide thumbnail can safely use quality 60–70, while a full-width hero image may need quality 80–90.

Compressing PNG Images

PNG uses lossless compression, which means the only way to significantly reduce file size is to reduce the number of colors in the image. CompactJPG converts PNG images to PNG8 format — a palette-based version that stores up to 256 colors instead of millions.

How PNG8 Works

True-color PNGs store red, green, and blue values for every pixel — that's 3 bytes per pixel for an image with millions of possible colors. PNG8 instead stores a palette of up to 256 colors, then assigns each pixel a single byte index into that palette. For images that don't need millions of distinct colors (screenshots, logos, icons, illustrations), this dramatically reduces file size while maintaining excellent visual quality.

Step-by-step: PNG Compression

  1. Upload your PNG files — Same process as JPEG: drag, click, or paste.
  2. Click Compress — CompactJPG automatically quantizes the image to 256 colors using Median Cut algorithm, then applies lossless DEFLATE optimization.
  3. Check the result — For most web graphics and screenshots, 256 colors produces results that are visually indistinguishable from the original. Complex photographs may show subtle banding in smooth gradients.
  4. Save — Download individually or as a ZIP.
Tip: Use the mouse scroll wheel to zoom in on the comparison view and check for color banding in gradient areas.

Compressing WebP Images

WebP is a modern image format developed by Google that typically achieves 25–35% smaller files than JPEG at equivalent visual quality. It supports both lossy and lossless compression, as well as transparency (alpha channel).

WebP compression in CompactJPG works the same way as JPEG: it uses a quality slider from 10–100. The difference is that WebP's more efficient encoding algorithms produce smaller files at the same quality level.

Step-by-step: WebP Compression

  1. Upload your WebP files and click Compress.
  2. Adjust quality — The default quality of 80 works well for most images. For maximum compression, try quality 65–75.
  3. Compare and save — Use the side-by-side comparison to verify quality, then download.

Compressing GIF Images

GIF is one of the oldest image formats on the web. It's limited to 256 colors per frame but supports animation, which made it the dominant format for short looping animations.

CompactJPG handles GIFs differently based on whether they're animated:

Secure, Private Compression

Traditional online image compression services upload your files to their servers for processing. This creates a privacy risk: you have no control over what happens to your images, where they're stored, or who can access them.

CompactJPG is different. All image processing happens entirely inside your browser using WebAssembly technology. Your files are processed locally on your device and are never uploaded to any server. This isn't just a policy — it's a technical guarantee built into how the tool works.

This means:

Frequently Asked Questions

Will compression reduce the resolution of my image?

No. CompactJPG only reduces file size through better compression algorithms. Your image dimensions (width × height in pixels) remain unchanged.

Can I compress images in bulk?

Yes. You can upload up to 20 images at once. Click "Save All" to download all compressed images as a single ZIP file.

What's the maximum file size?

Individual files can be up to 50 MB. Since processing happens in your browser, very large files may be slower on older devices.

Is there a limit on how many images I can compress?

No. There are no daily limits, no watermarks, and no sign-up required. CompactJPG is completely free to use.

Why is my compressed image the same size as the original?

If an image is already well-optimized, further compression may not reduce its size. In these cases, CompactJPG returns the original file to avoid degrading quality for no benefit.