OmegaPix

Compress & Convert

Image Compressor General compression for any image format JPG Compressor Shrink JPGs while keeping detail PNG to WebP Smaller PNGs with full transparency PNG to JPG New Shrink PNG photos massively (no alpha) JPG to PNG New Lossless re-save, ready for editing HEIC to JPG Open iPhone photos anywhere AVIF Converter Best modern format for the smallest files

Resize & Crop

Social Media Resizer All platforms in one place Instagram Resizer Feed, Story, Reel & more YouTube Thumbnail 1280ร—720 optimised thumbnails LinkedIn Banner Profile & company cover images OG Image Resizer 1200ร—630 for social sharing Facebook Resizer Feed, Cover & Story sizes Twitter / X Resizer Post, Header & card sizes Image Cropper New Crop images with aspect-ratio presets

Privacy & Utilities

EXIF / Metadata Remover Strip GPS, camera info, EXIF, pixel-perfect Image Metadata Viewer New See EXIF, GPS & if a photo was made with AI AI Image Checker New Check if an image was made with AI PDF Metadata Remover New Strip author, title, dates, XMP from PDFs Image Watermarker New Stamp a text watermark before sharing Image Redactor New Black-bar, blur, or brush over sensitive parts Background Remover New AI cutout โ†’ transparent PNG, in your browser Favicon Generator New One image โ†’ every favicon size + .ico + manifest

PDF Tools

Merge PDFs New Combine multiple PDFs into one Split PDF New Extract pages by range Rotate PDF New Fix sideways or upside-down scans Delete PDF Pages New Remove pages from a PDF PDF Metadata Viewer New See author, software and hidden data in any PDF Images to PDF New JPG, PNG, HEIC, WebP, AVIF โ†’ PDF PDF to Images New PDF pages โ†’ PNG or JPG Compress PDF New Shrink scans + photo PDFs
Blog Install app Privacy Terms
Back to blog
Developer Guides

Client-Side Image Compression: Why Your Files Should Never Leave Your Browser

Most online image tools upload your files to a server. For personal photos, IDs, and scans, that is the real privacy problem. Here is the case for client-side processing.

Client-Side Image Compression: Why Your Files Should Never Leave Your Browser

Most "compress your image online" tools upload your image to a server. They process it there, then offer the result for download. For business photos and stock graphics this is fine. For personal photos, scanned IDs, contracts, or anything sensitive, it's a privacy problem most users never think about. Here's the case for client-side compression, and why modern browsers make it the obvious choice in 2026.

What "client-side" actually means

Client-side means the entire compression happens in your web browser, on your computer or phone, without your file ever being transmitted to a server. The web page loads the compression code once; from then on, every image you process stays local.

Server-side, in contrast, means:

  1. You upload the image to the tool's server.
  2. The server processes it.
  3. You download the result.
  4. (Usually) the server keeps a copy, or a log of the file's metadata, for some retention period.

What you give up with server-side processing

When you upload an image to a "free online compressor":

  • A copy exists on their server. Most tools say they delete after N hours/days. Some don't say. Some say one thing and do another.
  • Your file passes through their network. Even if encrypted in transit, the server decrypts to process. Whoever has server access can see your file.
  • Metadata travels. Your photo's GPS location, camera model, capture time: all uploaded along with the image bytes.
  • Image content is transmitted. A scanned ID, a private photo, a confidential document: all becomes data flowing across the public internet.

Why client-side wasn't viable until recently

Browsers couldn't compress images efficiently in JavaScript. The available formats had server-side encoders (libjpeg, libpng, libwebp) that were 10-100ร— faster than anything JS could do.

Three things changed:

1. WebAssembly (WASM)

WASM lets browsers run compiled C/C++/Rust code at near-native speed. The same libjpeg / libwebp / libavif encoders that powered server-side compression now compile to WASM and run inside the browser.

2. OffscreenCanvas + ImageBitmap

Modern browsers can decode and re-encode images on a background thread (Web Worker), so compression doesn't freeze the UI even for large photos.

3. Storage and memory

Browsers handle 100+ MB ArrayBuffers without crashing. A typical user's machine has the RAM and CPU to compress dozens of photos at once.

By 2024, client-side compression was as fast as server-side for individual images. By 2026, batch processing of dozens of images is routine.

What client-side enables

True privacy

Your files literally cannot be leaked by the tool because they never reach the tool's infrastructure. Open DevTools โ†’ Network tab while you compress, and you'll see zero upload requests.

Faster turnaround

No upload-then-download round-trip. The "upload" is local, instant. Compression starts the moment you drop the file.

Offline usability

Once the page loads, you can disconnect from the internet entirely. The compressor still works.

No file-size limits dictated by infrastructure

Server-side tools cap uploads at typically 5-25 MB because they pay for bandwidth. Client-side tools cap based on your device's RAM (typically 200+ MB).

What client-side gives up

Nothing significant, in 2026. The two historical concerns:

Speed

A modern WASM encoder compresses a 4MP photo to JPEG in under 200ms. WebP/AVIF take longer because the format is more compute-intensive, but still fast enough for interactive use.

Format support

Every relevant format has a WASM port now: JPEG, PNG, WebP, AVIF, HEIC, GIF, BMP. Some are slower to encode than their native equivalents (AVIF most notably) but no longer impractical.

How to verify a tool is actually client-side

  1. Open DevTools โ†’ Network tab.
  2. Drop a file into the tool.
  3. Look for upload requests. A real client-side tool has NO requests that send your file's bytes anywhere. Lookup requests (font files, CSS) are fine. POST requests with form data containing your file are not.

If you see your image bytes in a POST request, the tool is server-side.

How OmegaPix does it

Every OmegaPix tool runs entirely in your browser:

  • WASM codecs for JPEG, PNG, WebP, AVIF.
  • A heic2any WASM decoder for HEIC source files.
  • pdf-lib + pdfjs-dist (also WASM) for PDF processing.
  • OffscreenCanvas + Web Workers to keep the UI responsive during batch jobs.

Your photos, PDFs, and IDs never upload. You can verify this in DevTools, or just disconnect your internet before using the tool. It still works.

When to actually use server-side processing

Two cases where server-side is the right choice:

  1. Batch processing thousands of images on a server. A CI pipeline that compresses every image on commit. Browser isn't the right environment.
  2. Image transformation as part of a CDN. Cloudflare Images, Bunny Optimizer, they transform on demand based on the request, which is a server problem by design.

For human-in-the-loop image processing, which is most personal and SMB use, client-side is the right answer.

The privacy threat model

Who specifically might compromise an image you upload to a server?

  • Insider at the company. Most "free image tools" don't background-check engineers.
  • A breach. Every company gets breached eventually. Your "deleted in 1 hour" image lived on a server somewhere for that hour.
  • Government subpoena. US-based services can be compelled to produce logs and stored files.
  • A sloppy retention policy. "We delete after 24 hours" often means "the job that runs deletion is scheduled hourly but sometimes fails."
  • Sale or acquisition. Your data goes wherever the company goes.

Most of these are low-probability for any individual image. Multiplied across millions of users and billions of uploads, the expected number of leaked photos is high.

Related

Try Image Compressor, free in your browser

No uploads, no account. Your images never leave your device.

Open Image Compressor

Comments

Optimize images privately in your browser.

Compress and convert JPG, PNG, WebP, AVIF, HEIC: all client-side. Files never leave your device.

Start Compressing