Mac Split Zip Into Multiple Files

On Unix-like operating systems, the zipsplit command splits a single ziparchive into a set of smaller zipfiles.

This page covers the Linux version of zipsplit.

Jan 04, 2019 I need weekly to upload bunch of pdf file to grading platform, in the form of zip, but the website has limit of 250Mb per zip file, and it takes me too much time to split the zip I have into smaller zip files. What is the simplest way to split a zip into chunks with max size? A way that would work on other unix-like platform (like my mac at. Instead of using ls and grep and zip's -@, you can use shell globs to select files directly on the zip command line e.g. Zip files.zip file. or zip images.zip.jpg. Also, when using a list of filenames from a file, you can use redirection instead of invoking a separate cat process, zip files.zip -@ zip.lst – steeldriver May 25 '16 at 0:28. On your Mac, click the Finder icon in the Dock to open a Finder window. Select the files you want to combine into a PDF. Alternatively, you can select the files on your desktop. Note: The files appear in the PDF in the same order that you select them. Control-click the selected files, then choose Quick Actions Create PDF. Here's how: Open the folder with files or folders you want to zip up. Select the items you want to include in the zip file and right-click on any one of the items. Select 'Compress (x) Items' from the pop-up menu. Once again, a progress bar will display. It will compress the selected files and will split the compressed files in to multiple files with the extension.001, 002,.003 etc. You may later join these files using the same approach with 7-zip. Split existing compressed files To split an existing.zip file or.rar file, follow the steps below: 1.

Description

zipsplit is a very simple program which will split an archive into smaller, sequentially-numbered zipfiles. This command can be useful, for instance, if you need to break an archive into smaller archives that fits onto removable media of limited capacity.

zipsplit does not break the individual files in your archive into smaller pieces; therefore, the minimum size of the split zipfiles is the size of the largest file inside the original archive.

Splitting an archive

Let's say you have a zipfile named archive.zip that is about 50 megabytes in size, and you want to split it into pieces that are no larger than 1 megabyte. You could use this command:

...which tells zipsplit to create a sequence of zipfiles, each no larger than 1048576bytes (one megabyte), which collectively contain the same files as archive.zip. The output of this command looks something like:

The result in this case was 66 new files, archive01.zip through archive66.zip, which together contain the same files as archive.zip.

archive.zip is unchanged by this process.

Syntax

Options

-tReport how many files it takes to perform the split, but don't actually split anything.
-iCreate a zip index named zipsplit.idx, and include its size in the first zip file.
-nsizeCreate zipfiles no larger than size bytes. For the split to be successful, size must be larger than the largest file in the original zipfile. Default is 35978 bytes.
-rroomMake the first split file smaller by room bytes. This option can be useful if you intend to store the split zipfiles on removable disks, and you need extra space on the first disk for other software, such as an executable file to decompress the archives. The default value of room is zero.
-bpathOutput zip files into the pathpath.
-pPause between each zip file that is output.
-sPerform a sequential split even if it requires more zip files. In other words, make sure that the order of files in the split archives exactly matches the order of files as they appear in the original archive; do not 'shuffle them around' when splitting them up.
-hDisplay a help message, and exit.
-vDisplay version information, and exit.
-LDisplay software licensing information, and exit.

Limitations

zipsplit does not support splitting archives that are larger than 2 gigabytes.

zipsplit offers very little control over how it decides to split up your archive. If one of the files inside your archive is very large, you may not be able to split the archive at all, because zipsplit cannot span a single archived file across multiple zipfiles.

The default maximum size of a split file is approximately 36 kilobytes, which by modern standards is very small. If you want or need to create splits larger than 36 Kb, you must specify a different maximum size using the -n option.

There is no convenient way to re-assemble a set of split zip archives into a single unified archive. Concatenating them manually and then 'fixing' the concatenated file with zip's -FF option is possible, however. For example, if your split files are named archive01.zip, archive02.zip, etc. you could concatenate them into a new file, whole.zip, with the command:

...and then 'fix' whole.zip (re-build its index), using the command:

...which would leave you with a re-assembled archive named fixed.zip.

Examples

Split the archive /home/user/myarchive.zip into multiple smaller archives, each of that is no larger than 2097152 bytes (2 megabytes). The split files will be written into the current directory.

Same as the above command, but pause between the creation of each split file. This command can be useful on much older systems if the destination of your split files is a floppy disk drive, as it gives you the option to insert a new floppy disk between each split.

Split myarchive.zip into zipfiles no larger than 2 megabytes, and write the split zipfiles into the directory /archive.

Related commands

unzip — List, test and extract compressed files in a zip archive.
zip — A compression and archiving utility.
zipcloak — Encrypt files within an existing zip archive.
zipnote — View, add, or modify a zip file's comments.

Get a secure archiver app
Compress and unpack any files on Mac with Archiver.

The allure of zipped files is simple: they allow you to directly send and receive files, or batches of files, without encroaching on file size limits. Often, email providers have limits on how large attachments can be. Zip files make it easy to bypass that limitation without sending multiple emails.

Zipping files can also be useful for compressing files for storage on your Mac, or an external hard drive.

All-in-one file management

Get 190+ apps to deal with your files in one Setapp suite. Zip and unzip files, edit and search PDFs, change file formats, and more.

How do you open a zip file on a Mac? Or what's the best way to do that? There are, of course, several methods for creating archives, such as built-in utilities, Terminal, and third-party apps. Below, we are going to explore how to unzip files on Mac, how to create zip archives, and showcase some archivers that make it really easy to zip and manage zipped files.

What is a Zip file?

A zip file is a lossless way to compress and archive files and folders. You often encounter zip files in emails, as mentioned, but also when downloading from the internet. If you've ever downloaded an app or extension directly from a developer website, chances are it was a zipped file.

It uses the '.zip' filename, and its icon is typically a folder with a zipper running up the middle. Zipping files is a time-tested method, and is largely unchanged. Its use-cases have expanded, though. We use zip files for sending large files and bundles of PDF or text files, but it's now used as a method to send large folders of images as well as for downloading applications or games from the internet.

How to zip files on a Mac

Before we talk about some special apps and tools, we need to mention built-in macOS's utility that allows you to compress and decompress files and folders. Your Mac's simple Archive Utility, stored in the Applications > Utilities folder, is a simple, direct way to zip files. Its functionality is limited, but it's a decent option for quick zipping and unzipping of files and folders when you need to open zip files someone has sent you.

Here's how to zip a file on Mac with the Archive Utility:

  1. Find the file or files you want to zip.
    Note: if you'd like to zip multiple files, it's best to put those files in the same folder. Then you can proceed to step two.
  2. Right-click on the file or folder.
  3. Select 'compress'

That's all it takes. Note the zipped file or folder will be created in the same location as the file or folder you zipped. You can move it manually if you like.

If you want to zip multiple files without first adding them to a folder, that's also possible with Archive Utility. Here's how:

  1. Open the folder with files or folders you want to zip up
  2. Select the items you want to include in the zip file and right-click on any one of the items.
  3. Select 'Compress (x) Items' from the pop-up menu.

Once again, a progress bar will display. When the compression is finished, zipped items will be stored in a file called Archive.zip, which will be located in the same folder as the original items.

How to create an encrypted zip archive

Multiple

Now that you know how to create a zip file on Mac, you may be wondering how to encrypt that zipped file. Archive Utility doesn't allow for this, but you can use the Terminal to accomplish this feat. Here's how:

  1. Open 'Terminal' from your Applications
  2. Enter the following command: cd desktop
  3. Press enter on your Mac's keyboard
  4. Enter the following command: zip -e [zipped filename]
    Note: Do not use brackets. If your filename were 'test.zip', you would enter: zip -e test.zip
  5. Press enter
  6. Terminal will ask for you to assign and verify a password.

The encrypted file will then appear on your desktop. Opening it will require a password.

We should note this method is clunky, a bit confusing for many – and dealing with Terminal is always a bit nerve-wracking. There's a much better way!

Get BetterZip for all ZIP tasks

Create encrypted ZIP archives and handle compression effortlessly. BetterZip is part of Setapp, so it’s free to try for 7 days.

BetterZip is an app that makes compression and encryption a breeze. In fact, you can set BetterZip up to encrypt all files by default! It uses strong AES-256 encryption, and has the same lossless compression you'll find with any zipping method.

Here's how to encrypt zip files using BetterZip:

  1. Open BetterZip on your Mac.
  2. From the menu bar, select 'BetterZip,' and 'Preferences'
  3. From the 'Presets' menu, select the 'Save' menu
  4. Select 'Clean and Zip'
  5. Under 'Encryption method,' select 'Strong (AES-256)'

If you'd like to use the same password for every file you encrypt, you can enter it in the filed just below 'encryption method'. If you don't supply a password, BetterZip will prompt you for one each time you zip and encrypt a file.

BetterZip is impressive for encrypting every zip file you create. If you're looking for a simpler approach, Archiver is the app you're looking for. It uses a drag-and-drop interface, and makes encryption as easy as checking a box and assigning a password. Here's how:

  1. Open Archiver on your Mac
  2. Drag the file you want to zip into the app
  3. Select 'encrypt' if you want to secure the file with a password
  4. Enter and verify your password
  5. Select 'Archive'

How to add files to an existing zip file

BetterZip is your best path forward for adding files to an already zipped file. Here's how it's done:

  1. Open BetterZip on your Mac
  2. Select the zipped file you want to add new files to
  3. Select 'Add' from the top of the betterZip window
  4. Select the file or files you'd like to add to your already zipped file
    Note: If you want to add multiple files, you can shift-click to add a list, or command-click to add them one at a time.
  5. Select and hold 'Save' from the top left of the BetterZip window
  6. In the menu that appears, select 'Clean and Zip'

This creates a new .zip folder with the already-zipped file, as well as the files you added, all of which are now zipped in the same folder.

Unzip files on a Mac

Unzipping files on your Mac is simple. The best method is using the built-in Archive Utility app. The process is simple, and essentially a reversal of the process for zipping a file. Here's how to unzip files:

  1. Right-click the zipped folder or file you'd like to unzip
  2. Select 'open with'
  3. Select 'Archive Utility'

The zipped file or folder will be unzipped. If you'd like to re-zip the file, simple follow the steps we've outlined in this article to zip it again.

How to open zip files as a pro

To open zipped files and folders, both BetterZip and Archive are great options. We especially like BetterZip, here, because each zipped file or folder is previewed in the BetterZip window before you open it up. That way, you always know what you're about to open!

Here's how to unzip files using BetterZip.

  1. Open BetterZip
  2. Select the zipped file or folder you want to unzip
  3. Select 'Extract' from the top of the BetterZip window

Your file or folder will be unzipped.

Here's the method if you choose Archive:

  1. Open Archive on your Mac
  2. Select the zipped file or folder you want to unzip
  3. Drag it to the Archive window
  4. Select it from the menu
  5. Select 'Extract' from the bottom of the Archive window

That's all it takes!

Zip

Look inside the archive without extraction

Viewing a zipped file without actually unzipping it can be important if you have many zipped files on your computer, or have zipped folders and can't remember where you stuck a particular file.

For this, we like BetterZip. It automatically offers up a preview of zipped files and folders on the right side of its screen. There's no guessing, or fussy methodology. All you have to do is select the file in BetterZip, and the preview loads immediately.

Extract a separate file from a zip archive

Again, we really like BetterZip for this. Here's how to do it:

  1. Open BetterZip on your Mac
  2. Select the zipped folder with the file(s) you want to extract
  3. Right click the file you want to extract
  4. Select 'Extract Selected' from the drop-down menu

Unzip files and folders using Terminal

If you would rather unzip files using the Terminal, here's how to do it:

Windows 10 Split Zip Files

  1. Open Terminal on your Mac
  2. Change directory to where your zipped file or folder is located using the 'cd' command. (As an example, if your zipped file were in the documents folder, you would enter 'cd documents' into Terminal – without the quotations. Keep in mind if your zipped file is buried in another folder, you will have to change directory until you reach the file's location.)
  3. Enter the following command: unzip [filename]. (If your file were named zipped-stuff.zip, you would enter 'unzip zipped-stuff.zip' – again, no quotations.)

Mac Split Zip Into Multiple Files Without

Setapp uses cookies to personalize your experience on our website. By continuing to use this site, you agree to our cookie policy.

Zip Divide File