Blog/Privacy
PrivacyOctober 2026 · 11 min read

How to Compress Images Without Uploading Them: Offline and In-Browser Options

You can compress images without uploading them by using a desktop app, a command-line optimizer, a browser tool that processes files locally with WebAssembly, or your operating system's export options. You can verify that nothing leaves your device by watching the network tab or turning off your connection.

Most "free image compressor" websites work the same way: you drop a file onto the page, it travels to a server, the server compresses it and you download the result. That is convenient, but it means every image you compress is copied to someone else's infrastructure. For holiday snapshots, that may not matter. For client designs, unreleased product screens, scanned documents, ID photos or anything under an NDA, it is a real exposure. The good news is that you do not have to accept the trade-off. There are several reliable ways to compress images entirely on your own device, and this guide compares them honestly, including their weaknesses.

Why avoid uploading in the first place?

Our guide on whether it is safe to upload images to online compression tools covers the details, but the short version is easy to state. When you upload a file, you cannot verify how long it is stored, who can access it, whether it appears in backups or logs, or which sub-processors touch it. Privacy policies describe intentions, not guarantees. If the image contains people, it may count as personal data under privacy laws, and sending it to a third party can create compliance obligations. If it is confidential, you may be breaching an agreement without realizing it.

There are also practical reasons. Uploading is slow on poor connections, many services cap file size or the number of images per session, and an upload-based tool stops working when you are offline.

Option 1: Desktop apps

A native desktop application processes files on your own computer using its own compression engine. Nothing needs a network connection after installation. Desktop apps usually offer the best experience for large batches and recurring work.

AppPlatformNotes
TinyPixelsmacOS, WindowsBatch PNG and JPEG compression, WebP and AVIF conversion, watch folders, runs fully offline; free tier plus one-time Pro purchase
ImageOptimmacOSFree, simple drag and drop optimization
Caesium Image CompressorWindows, macOS, LinuxFree and open source, lossy and lossless modes

Strengths: speed, batch handling, no limits imposed by a server, works offline. Weaknesses: you install software, and each tool has its own interface and feature set. Check each project's website for current platform support and licensing before you commit.

Option 2: Command-line tools

Command-line optimizers are free, scriptable and fully local. They are the right choice for developers and for automated pipelines.

  • oxipng and OptiPNG for lossless PNG optimization.
  • pngquant for lossy PNG quantization.
  • MozJPEG tools for efficient JPEG encoding.
  • cwebp and avifenc for WebP and AVIF output.
# lossless PNG
oxipng -o 4 --strip safe screenshot.png

# lossy PNG, writes screenshot-fs8.png
pngquant --quality=70-90 screenshot.png

# WebP from PNG
cwebp -q 80 screenshot.png -o screenshot.webp

Strengths: free, automatable, transparent. Weaknesses: no graphical preview, and flags differ between tools and versions, so you need to read documentation and compare results yourself. Always run on copies of your originals.

Option 3: In-browser tools that process files locally

Not every website uploads your file. Some web apps compile compression engines to WebAssembly and run them inside your browser tab, so the image is decoded, compressed and re-encoded on your machine. Google's Squoosh is a well-known example. These are convenient when you cannot install software.

The catch is that you have to verify the claim, because from the outside a local tool and an upload tool look identical. The checks in the next section take under a minute. Browser tools also tend to handle one image at a time, and large files can be slow or hit memory limits, since the tab is doing all the work.

Option 4: Your operating system

macOS

Preview can export an image as JPEG with a quality slider, resize it from the Tools menu and strip some metadata. It is manual and one image at a time, but it works offline and needs no extra software. Selecting several images in Preview and adjusting the size applies to all of them, which is handy for a quick resize.

Windows

The built-in Photos app and Paint can resize and re-save images, and the Snipping Tool can capture at screen resolution. These tools offer less control over compression quality than dedicated optimizers, but they are available everywhere and fully local.

Strengths: nothing to install, private. Weaknesses: limited compression quality, no PNG optimization and no batch automation.

Option 5: A self-hosted web app

If your team wants a shared browser interface without sending files to a third party, you can run an open source compression web app on your own server or laptop. Some such projects process files in the browser, others on your own server. This keeps data inside your network, at the cost of maintenance. It makes sense for IT-managed teams and less for individuals.

How to verify that nothing is uploaded

Trust, but verify. These checks work for any web-based tool.

  1. Open the browser developer tools and switch to the Network tab. Clear the log, then add an image. If a large upload request appears, the file left your device. If only small requests such as analytics appear, the processing is local.
  2. Disconnect from the internet after the page has loaded, then compress an image. A local tool keeps working. An upload tool fails.
  3. Read the tool's privacy claims, but treat them as claims. Behavior you observed beats text on a page.
  4. For desktop apps, you can use a firewall or network monitor to confirm that the app makes no connections while compressing. Some apps check licenses or updates, so look at what is sent rather than assuming silence.

Our own Screenshot Resizer follows this model: the work happens in your browser with the Canvas API, and you can confirm it in the network tab.

Comparison at a glance

MethodOfflineBatchSetupBest for
Desktop appYesExcellentInstall onceRegular work and large folders
Command lineYesExcellentInstall and learn flagsDevelopers and CI
Local browser toolAfter loadingLimitedNoneQuick one-off jobs
OS built-insYesPoorNoneSimple resize or JPEG export
Self-hosted appWithin your networkVariesHosting effortTeam sharing

Choosing the right option

  • You compress images every week, or in bulk: use a desktop app with batch and folder watching.
  • You are a developer building a pipeline: use command-line tools in scripts.
  • You need one quick job on a locked-down computer: use a local browser tool after verifying it.
  • You only need to shrink a photo for email: use your operating system's export.

What local compression cannot do

Honesty matters here. Local tools cannot give you a hosted API for server-side processing in a deployment pipeline, and they do not provide team sharing out of the box. If your workflow needs to compress images from a server process, use command-line libraries in your code instead. Local compression also relies on your own hardware, so enormous batches take longer on an old laptop, although modern engines are multi-threaded and fast.

Privacy checklist for sensitive images

  • Work on a copy and keep the original untouched.
  • Strip metadata such as GPS location and camera serial numbers before sharing.
  • Prefer tools whose behavior you verified over those that merely promise privacy.
  • Avoid mixing sensitive and non-sensitive images in the same cloud account or upload batch.
  • Delete temporary exports after delivery.

How TinyPixels fits

TinyPixels is a native macOS and Windows app built around local processing. A Rust engine does the compression, using oxipng, imagequant and MozJPEG, and the app can convert to WebP and AVIF. Folder watching compresses new images automatically as they land. There are no accounts needed to compress, and no image data is sent to a server. Pro is a one-time purchase, not a subscription. If you want to try the approach before installing anything, the free browser-based Screenshot Resizer shows the same local-first idea for resizing store screenshots.

Scenarios: what to use when

A freelancer delivering client work

Client designs and unreleased mockups are often covered by confidentiality clauses, whether written or assumed. Uploading them to a free web compressor is the kind of small, invisible breach that nobody notices until a dispute. A desktop app with a watch folder is the most comfortable fit here: export from your design tool into a folder, let it compress automatically and deliver the optimized files, with a clear conscience about where the images have been.

A developer shrinking assets in a repository

Developers benefit from tools that fit into their existing habits. Command-line optimizers run in scripts and pre-commit hooks, and a desktop app with folder watching handles the designer-supplied exports that arrive outside of version control. Combining the two gives both automation and a safety net, and neither sends a pixel off the machine.

A small business owner preparing product photos

Product photographs usually are not sensitive, but customers' photos, invoices and scans are. A friendly desktop app with presets keeps things simple: choose a preset, drop in a folder and get smaller files. The same app handles the occasional scanned document without a second thought about where it was sent.

Someone on a managed work computer

If you cannot install software, a browser tool that processes files locally may be your only option, and your operating system's built-in export is the fallback. Verify the browser tool with the network tab, and check with your IT team about policies on web tools, because some organizations block them or require approval.

Metadata: the other privacy leak

Compression is only part of the story. Image files often carry metadata that reveals more than the picture. Photos from phones usually include GPS coordinates, the device model and the time they were taken. Design exports can embed author names, software versions and file paths. If you share an image publicly or with a client, you may be sharing that information too.

Most optimizers can strip metadata as part of compression, and doing so also shaves a few kilobytes. Keep a copy with metadata if you need it for your own records, and publish the stripped version. Be careful to retain color profiles where color accuracy matters, as some workflows depend on them.

Conclusion

Privacy and convenience are not opposites. A desktop app, a command-line tool, a local browser tool or even the editor already on your computer can shrink images without sending them anywhere. Pick the option that fits your volume and skill, verify the no-upload claim with the network tab or by going offline, and keep sensitive images on your own machine from start to finish.

Frequently asked questions

Can I compress images without uploading them?

Yes. Desktop apps, command-line tools, browser tools that process files locally with WebAssembly, and your operating system's export features all compress images on your own device.

How can I tell if a website uploads my images?

Open the browser's Network tab and add an image. A large upload request means the file left your device. You can also disconnect from the internet after the page loads and see whether the tool still works.

Is Squoosh safe for private images?

Squoosh runs its compression in your browser, which means images are processed locally. Verify with the network tab yourself, and note that it handles one image at a time.

What is the best offline image compressor?

It depends on your system and workflow. For Mac or Windows batch work with folder watching, a desktop app such as TinyPixels fits well. ImageOptim and Caesium are free options, and oxipng or pngquant suit scripts.

Does offline compression reduce quality more than online tools?

No. Quality depends on the encoder and settings, not on where the code runs. Local tools use the same families of encoders as online services.

Are command-line image optimizers free?

Tools such as oxipng, OptiPNG, pngquant and MozJPEG are free and open source. Check each project's licence for your use case.

Compress images privately with TinyPixels

Download TinyPixels — 100% local, zero uploads, one-time Pro purchase.