Initializing, please wait a moment

How to compress a folder into a single ZIP


A folder full of files becomes one smaller, sendable archive once it's compressed into a ZIP. ZIP is the universally compatible container format - Windows, macOS, Linux, iOS, and Android all open it natively, no plugin required - and the right tool turns the whole job into a three-step browser flow. This guide walks through the steps, the trade-offs that affect how small the result gets, and the most common scenarios people hit.


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?

It 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

Send a project folder to a teammate. Drag the project folder into Compress, Zip File and Folder. The folder structure is preserved inside the .zip, so when your teammate unzips on the other end (using Unzip File or any built-in OS unzip) they get the original folder back exactly as you had it.

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?

7z compresses harder than ZIP - typically 10-20% smaller for the same content - but it requires 7-Zip, The Unarchiver, or a similar app on the receiving end. macOS and iOS can't open .7z files without third-party software. Use 7z when you control both ends and size matters more than convenience.

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

1. Drag the folder onto Compress, Zip File and Folder.
2. Click Process and wait for the ZIP to build.
3. Click Download - you get one .zip with the folder structure preserved.

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.
  • Truly in-browser - no upload. Every file-processing tool on this site runs in your browser through modern Web APIs (File, FileReader, Canvas, Web Audio, WebGL, Web Workers). Your photo, PDF, audio, or text never leaves your device.
  • No tracking during tool use. Analytics ends at the page view. The actual input you paste, drop, or capture is never sent to any server and never written to any log.
  • 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.