Initializing, please wait a moment

How to compress a folder into a single ZIP


To compress a folder into a single ZIP, open the browser-based ZIP compressor on this site, select the files or folder, and download the result - no install, no upload to a server. ZIP is readable on Windows, macOS, Linux, iOS, and Android without any plugin.


The three-step flow

Step 1. Open Compress, Zip File and Folder. The tool runs entirely in your browser and on our service - no account required.

Step 2. Drag the entire folder onto the upload zone (or click Choose files and select every file inside the folder using Cmd+A on Mac or Ctrl+A on Windows). The tool preserves the folder structure inside the ZIP - your subfolders stay nested exactly as they were.

Step 3. Click Process. Once the ZIP is built, click Download. The result is a single .zip file that any modern operating system can open with a double-click.


Why compress a folder at all?

Three reasons drive most folder-compression jobs:

Email attachments. Gmail caps attachments at 25 MB, Outlook at 20 MB, and corporate webmail often at 10 MB. A folder with 30 photos at 4 MB each (120 MB total) won't go through; the same folder zipped at default compression often drops to 70-90 MB - still too large by itself, but if the photos are JPG you'll need to compress the images first (see Compress Image) and then ZIP the smaller versions. For non-image folders (documents, source code, spreadsheets) the ZIP step often does the heavy lifting alone.

Single-file uploads. Many portals, learning-management systems, and submission forms accept one file at a time. ZIP turns "30 documents" into "one .zip" so the upload finishes in one shot.

Storage and sharing. Cloud-storage cost is usually billed by file count plus bytes. A folder of 1,000 small files compresses well (text and code typically shrink 60-80%) and reduces both metrics.


How much smaller will the ZIP actually be?

ZIP compression savings vary by file type
Pick the right ZIP expectation: text shrinks 60-80%, photos barely compress

The final ZIP size depends entirely on what's in the folder.

Folder contentTypical compression ratioNotes
Plain text, source code, JSON, CSV60-80% reductionExcellent compression - lots of redundancy
Office documents (.docx, .xlsx, .pptx)5-15% reductionThese are already ZIP files internally; little extra room
PDF documents5-20% reductionPDFs are typically pre-compressed
JPG, HEIC, WebP photos0-3% reductionAlready lossy-compressed; ZIP can't shrink further. Compress the images first.
PNG screenshots5-15% reductionPNG has its own compression; ZIP adds little
MP3, MP4, AVI videos0-2% reductionAlready compressed by the codec. ZIP is mainly for bundling.
Mixed folder (docs + photos + code)15-40% reductionDriven by the most-compressible part

The honest rule of thumb: if a folder is mostly photos or videos, ZIP gives you a single-file shipping container, not a smaller payload. Compress the images or transcode the videos before zipping if the goal is a smaller upload.


Common scenarios

Common scenarios for how to compress a folder: email a project tree under an attachment limit, archive a photo dump before cloud upload, or package logs for support - drag the folder into Compress Zip File and Folder, Process, then Download one .zip.

Compress a folder for email under 25 MB. Run the folder through the ZIP tool first. If the result is still over the limit and most of the size is photos, route the photos through Compress Image at 80% quality (typically halves their size with no visible quality loss) and re-ZIP. If the result still exceeds the limit, see how to reduce a ZIP's size for the next strategy.

Bundle source code for a job submission. Drop the project folder in. The tool keeps the directory structure (src/, tests/, docs/) intact, so the recipient can extract and run the code immediately. If the project has node_modules or build artifacts, delete those before zipping - they're huge and the recipient will rebuild them anyway.

Add a password to the ZIP. If the folder contents are sensitive, use Compress, Zip File and Folder with the password option enabled (look for the password field in the tool settings). Or, for a folder you've already zipped without a password, see how passwords work on archive formats.

Compress a folder that contains files larger than 4 GB. Standard ZIP has a per-file limit at 4 GB (the legacy ZIP32 format); ZIP64 lifts this. Compress, Zip File and Folder handles files above this threshold transparently - just upload them.


What about 7z, RAR, or tar.gz?

What about 7z, RAR, or tar.gz is that those formats can shrink further but need extra apps on the receiver - ZIP from this browser tool opens on Windows, macOS, and Linux without installs, which is why it is the default for shared folders.

RAR is similar to 7z in compression but the format is proprietary; creating a .rar requires WinRAR (paid). Most modern guides recommend skipping RAR in favour of ZIP or 7z.

tar.gz / tar.bz2 dominates Linux and server-side workflows. They're not natively supported on Windows pre-Windows-10. If the recipient is on Linux or running scripts, tar.gz is fine; otherwise ZIP is the safer bet.

For the email-folder, send-to-teammate, submit-to-portal scenarios, ZIP is the right answer 99% of the time.


Privacy and what gets uploaded

The compression runs on our processing service - your folder is uploaded, compressed, and the result is returned to your browser for download. Files are processed and removed; we do not retain folder contents beyond the duration of the active session. If your folder is highly sensitive (legal, medical, payroll), consider using a desktop-only ZIP tool (built into Windows, macOS, and most Linux distributions) to keep the files entirely local.


Quick recap

Quick recap of how to compress a folder: open Compress Zip File and Folder, drop the folder, click Process, download the .zip - already-compressed JPG/MP4 inside rarely shrink; prune those first if size is the goal.

If the ZIP is still too big for the destination, the bottleneck is usually photos or videos in the folder - compress those first, then re-ZIP.


Related tools and guides

Why trust these tools

  • Ten-plus years of web tooling. The freetoolonline editorial team has shipped browser-based utilities since 2015. The goal has never changed: get you to a working output fast, without an install.
  • No install, no sign-up. Open a tool and get a working output in seconds - nothing to download and no account to create. Tools that need heavy processing run it on our service, so even a low-powered machine gets the job done.
  • Analytics stops at the page view. We measure which pages get visited, not what you type or upload inside a tool. There is nothing to sign in to and no profile is attached to your input.
  • Open-source core components. The processing engines underneath (libheif, libde265, pdf-lib, terser, clean-css, ffmpeg.wasm, and others) are public and audit-able. We link to each one in its tool page's footer.
  • Free, with or without ads. All tools are fully functional without sign-up. The Disable Ads button in the header is always available if you need a distraction-free run.

Related tools:

  • ZIP Tools - Free online ZIP tools - compress folders, unzip files, and remove ZIP passwords in your browser.
  • File Compressor: Pick the Right Tool by File Type - Free file compressor online: ZIP a folder, compress JPG/PNG photos, convert HEIC to JPG, or merge
  • Get JPEG Compression Level - JPEG compression level checker - inspect the quality value a JPG was saved with, estimate headroom
  • Remove Zip Password - Remove ZIP passwords online with the correct password to unlock your archive.
  • UnZip File, Extract, Decompress Zip - Extract files from a ZIP online - open archives, browse contents, and download individual files in
  • Compress, Zip File and Folder - Bundle files or a folder into one ZIP - sized to fit a 25 MB email cap, cloud upload, or project
  • Compress JPEG by AI - Free online image compressor - drop a JPG, PNG, or WebP, preview the before/after, and download a
  • Insights Image Optimizer - Image optimizer online - compress JPG, PNG, and WebP for PageSpeed Insights.
  • Flatten Pdf - Flatten PDF online - bake form fields, annotations, and layered content into the page itself.
  • PDF Tools - All-in-one PDF tools to create, split, merge, secure, and convert PDFs online.
  • All Guides - Browser Tool Library - Free, in-browser guides on compressing files, converting HEIC, testing screens, hashing, PDFs, and
  • Base64 To Image - Paste a Base64 image string and decode it to an inline preview in your browser.

Tags: #guide, #zip, #compress

Related guides:

Related news: