HomeGuidesHow to Create a ZIP File From Files or a Folder
ZIP guide

How to Create a ZIP File From Files or a Folder

Package files and folders into a ZIP, preserve paths and choose compression level.

ZIP has two jobs: it packages many files into one archive and it compresses data that contains repeated patterns. Packaging is guaranteed; size reduction is not.

Clean the source folder and choose a clear structure before creating the archive.

Choose files or a folder

Individual selection is useful for a small group. Folder selection preserves relative paths when the browser supports it.

Review the list for temporary files, hidden metadata, backups and confidential material that should not be shared.

Name folders and the archive clearly

Use short descriptive names and avoid characters that cause problems across operating systems. A date or version can help recipients distinguish revisions.

Do not rely on the ZIP filename alone; the internal top-level folder should also be clear.

Choose compression by content

Text, CSV, JSON, XML and source code can benefit from stronger DEFLATE levels. JPG, MP4, MP3 and many PDFs will change very little.

Maximum compression can take longer without meaningful savings on mixed media folders.

Verify the package

Open the new ZIP, inspect the entry count and extract a few representative files. Confirm that nested paths and filenames survived.

Keep the source folder until the recipient confirms the archive.

Compression expectations

ContentExpected reductionRecommendation
Text / CSV / codeOften strongBalanced or Maximum
JPG / MP4 / MP3Usually minimalUse ZIP for packaging
Mixed folderVariesBalanced
Already zipped dataAlmost noneAvoid nested archives if possible

Final checklist

  • Clean the source

  • Use clear names

  • Preserve required folders

  • Choose a sensible level

  • Reopen and inspect the ZIP

Questions people ask

Can ZIP preserve folders?

Yes, relative paths can be stored in the archive.

Can I encrypt the archive here?

The current tool does not provide password encryption.

Why is the ZIP larger?

Container overhead or recompressing already-compressed files can increase size slightly.

Use the related tools

This article explains the current DocPixel interface and known trade-offs. Requirements from a receiving institution or software provider take priority.