FileCompressor

Offline File Compressor

Pre-cache all 6 WebAssembly compression codecs in one click, then compress PDFs, JPG, PNG, WebP, and ZIP archives right in your browser—even after turning off Wi-Fi.

  • No install
  • No upload — runs locally in your browser
  • No sign-up
Online · Ready to pre-cache Pre-cache all 6 open-source WASM codecs into your browser now, then keep compressing even after disconnecting Wi-Fi.

Drop PDFs, images, or documents here

PDF, JPG, PNG, WebP, AVIF (up to 100 MB per PDF / 50 MB per image) · Other documents archived with DEFLATE L9

Batch up to 40 files · Or paste a screenshot directly with Ctrl+V / ⌘+V

Image mode
PDF mode
PDF compression level

Balanced: recompresses embedded images with MozJPEG (up to 150 DPI), deduplicates streams, strips metadata, and keeps all vector text selectable.

Before12.4 MB
Saved 75%
Example: a 12-page PDF
After3.1 MB

    How to compress files offline in your browser

    1. Pre-cache all 6 WASM codecs in one click

      Click Pre-cache WASM codecs in the bar above while online to load MozJPEG, libwebp, OxiPNG, ImageQuant, fflate, and pdf-lib into your browser cache.

    2. Disconnect from the internet anytime

      Turn off Wi-Fi or switch to Airplane Mode—watch the status badge turn Offline · Running 100% locally.

    3. Compress and download completely offline

      Drop PDFs, images, or documents (up to 40 files), tune quality or exact target sizes, and save locally via Blob URLs or a local ZIP archive.

    What works offline after pre-caching codecs

    Codec warmed up Formats supported offline Works after Wi-Fi off? Notes
    MozJPEG + libwebp WASM JPEG / JPG and WebP (Quality & Target Size) Yes (pre-cached in 1 click) Includes split visual inspector & PSNR
    ImageQuant + OxiPNG WASM PNG (perceptual lossy & Q100 lossless) Yes (pre-cached in 1 click) Preserves smooth alpha transparency
    pdf-lib + fflate WASM/JS PDF Balanced, Strong, Lossless, Target Size & ZIP Yes (pre-cached in 1 click) Vector text stays selectable offline
    AV1 AVIF & pdfjs-dist (Scan) AVIF output & PDF Scan extreme raster mode Lazy-loaded on first use Trigger once online if needed offline

    How offline browser file compression actually works (no exaggeration)

    Because FileCompressor compiles its compression engines (MozJPEG, libwebp, OxiPNG, libimagequant, fflate, and pdf-lib) to WebAssembly and JavaScript rather than running them on a remote server, no internet connection is required to compress files once the codecs are loaded into your browser.

    Here is the exact, honest workflow for offline use on flights, trains, restricted intranets, or air-gapped verification tests:

    1. Click "Pre-cache WASM codecs" above while online: Our Web Worker proactively downloads and compiles all 6 core open-source codecs (MozJPEG, libwebp, OxiPNG, ImageQuant, fflate, pdf-lib) into your active tab's worker memory and browser HTTP cache.
    2. Disconnect Wi-Fi or turn on Airplane Mode: The live status pill switches automatically to Offline · Running 100% locally.
    3. Keep compressing PDFs, JPGs, PNGs, WebPs, and ZIP archives: Drop files, adjust quality or PDF/Image Target Size, inspect split before/after image previews, and download single files or .zip batches locally with zero internet connection.
    4. Install as a desktop or mobile app (PWA): FileCompressor ships with a standard Web App Manifest (standalone display), so Chrome, Edge, and Safari let you add FileCompressor to your dock or home screen for instant launch.

    Honest offline limitations to know upfront

    • First load requires internet once: Because this is a web app with zero desktop installer, your browser needs a one-time connection to open the page and fetch the ~3 MB combined WASM codecs.
    • Keep the pre-cached tab open when fully offline: Reloading a brand-new tab while completely disconnected may fail if your browser evicts cached CDN assets; keeping the pre-cached tab open guarantees uninterrupted offline compression.
    • On-demand heavy codecs: AVIF (libaom) and PDF Scan extreme (pdfjs-dist) are lazy-loaded only when selected—so if you plan to use AVIF or Scan extreme offline, run one quick sample in that mode while still connected.

    Need strict privacy verification alongside offline processing? Visit Private File Compressor or check our Compression Benchmarks.

    Honest boundaries for offline browser compression

    Requires one-time online load & pre-cache

    Your browser needs internet once to load the page and pre-cache the ~3 MB WASM codecs. Keep the tab open when completely offline for guaranteed uninterrupted compression.

    Optional heavy codecs are lazy-loaded

    AV1 AVIF and PDF Scan extreme (pdf.js) are intentionally excluded from the default 1-click pre-cache to keep download weight tiny; trigger them once while online if you need them offline.

    Encrypted & digitally signed PDFs

    Encrypted PDFs must be unlocked locally first; digitally signed PDFs lose signature validity if rewritten.

    Local device RAM ceilings

    Up to 100 MB per PDF / 50 MB per image on desktop; on phones keep batches to 5–15 files and PDFs under 40 MB.

    Offline file compressor FAQ

    Can I really disconnect Wi-Fi and keep compressing files?

    Yes—after opening the page and clicking Pre-cache WASM codecs once while connected, all 6 core codecs (MozJPEG, libwebp, OxiPNG, ImageQuant, fflate, pdf-lib) stay loaded in your tab's Web Worker and browser cache. You can immediately disconnect Wi-Fi or turn on Airplane Mode and keep compressing PDFs, images, and ZIP batches in that tab.

    Do I have to install WinRAR, 7-Zip, or desktop software?

    No desktop installer is needed, and we also publish a standard PWA Web App Manifest so you can click Install / Add to Home Screen in Chrome, Edge, or Safari for a clean standalone window.

    Which formats work offline after clicking Pre-cache WASM codecs?

    Pre-caching warms up the 6 core codecs covering JPG, PNG, WebP, vector-preserving PDF presets/Target Size, and ZIP archiving (~3 MB total). Heavy optional codecs—AVIF (libaom) and PDF Scan extreme (pdfjs-dist)—stay lazy-loaded unless used, so run one test in those modes before going offline if you need them.

    What happens if I close and reopen the browser tab while completely offline?

    If you keep the pre-cached tab open, offline compression works indefinitely. Reloading or opening a cold tab while completely offline depends on browser cache retention and may require reconnecting briefly.