Do you need to ZIP an Excel file to benefit from file compression to enhance storage efficiency, facilitate smoother transfers, and streamline collaborative efforts? You’ve come to the right place! Read this article until the end to learn some awesome and effortless ways to ZIP and Excel files in no time.
As businesses and individuals handle an increasing volume of data, the importance of optimizing file management cannot be overstated. Zipping Excel files reduces their size and provides an organized approach to archiving and sharing.
Whether you’re a Windows user exploring built-in functionalities, a coding enthusiast leveraging VBA or Python, or someone relying on online tools, I’ve got you covered.
Join me as I list various methods for zipping Excel files using diverse techniques. I’ll also include step-by-step instructions so you can easily follow along on your own computer. The different methods mentioned below ensure that you can choose the method that best aligns with your needs.
Why Would You Want to ZIP an Excel File?
The primary reason to ZIP an Excel file is to compress the original file so you can email it to a colleague, teacher, or friend easily. Most email clients like Gmail and Yahoo come with a 25 MB attachment limit.
By zipping your Excel file, which is crossing the 25 MB size limit, you can reduce the file size below 25 MB. Then, you can attach the ZIP file to an email and send it conveniently to the recipient.
Some third-party file compression tools like WinRAR come with a ZIP file-splitting feature. Suppose, your Excel file size is 1 GB. You can’t logically reduce the file size below 25 MB by simply zipping it.
You need to split the 1 GB file into small pieces like 24 MB each. WinRAR software can help you achieve this feat. Now, find below other major reasons to ZIP an Excel file:
- Suppose there are more than 50 Excel files for a specific project named ACME Automations. Now, you can create a folder named ACME Automations and put all the Excel files inside this folder. Then, ZIP the folder. The next time you need to share the Excel files of this particular project, you don’t need to sift through the whole computer. You can simply share this ZIP file. It’s a great file organization practice.
- Zipping files can also reduce the risk of file corruption during transfer. The compression process creates a single archive file, which is less prone to corruption compared to multiple individual files.
- Zipping Excel files before creating backups can simplify the backup process. You can create a single compressed archive containing all the necessary files, making it easier to manage and restore data if needed.
- Zipping Excel files with a password adds an extra layer of protection. It helps prevent unauthorized access to the contents of the Excel files, especially when sharing sensitive or confidential information.
Also read: 5 Ways to Lock and Unlock Formulas in Microsoft Excel
Now, you’re ready to learn how to ZIP one or many Excel files by following the steps for the following file archiving methods:
Zip Using the Windows Send To Feature
Windows Send to command is the most common method to ZIP any files on your Windows PC including Excel files.
It shows up as a right-click context menu on the Windows PC. Here are the steps to use this method:
![Send to in Windows File Explorer context menu](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2023/11/Send-to-in-Windows-File-Explorer-context-menu.png)
- Open File Explorer and navigate to the location of the Excel file you want to zip.
- Click on the Excel file to select it.
- Right-click on the selected Excel file. This will open a context menu.
- In the context menu, hover your cursor over the Send to option. This will open a submenu.
- In the Send to submenu, select the option that says Compressed (zipped) folder.
![The zipped archive of Excel file](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2023/11/The-zipped-archive-of-Excel-file.png)
- This will create a new compressed folder with the same name as your Excel file in the same location.
You should now see a new ZIP file in the same location as your original Excel file. The ZIP file will have the same name as the Excel file but with the “.zip” extension.
Zip Using the Windows File Rename Feature
You can simply convert an Excel file to a compressed ZIP file by replacing the XLSX or XLS extension with the ZIP extension. Here are the steps:
![Renaming XLSX to ZIP](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2023/11/Renaming-XLSX-to-ZIP.png)
- Select the target Excel file.
- Press the F2 key on your keyboard.
- Now, click on the right side of the XLSX file extension name.
- Use the backspace to delete the file extension name.
- Make sure you don’t delete the period.
- Now, simply type ZIP in place of the XLSX file extension name.
- Click once on any blank space in the folder.
- Click Yes on the pop-up.
![Zipped Excel file](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2023/11/Zipped-Excel-file.png)
The file icon should change automatically to an archive icon or ZIP file icon.
The recipient must follow the same steps mentioned above to convert the zipped Excel file to a decompressed Excel file. They simply need to replace the ZIP extension with the XLSX extension.
You may not see the file extension renaming option unless you’ve made the following changes to your Windows File Explorer earlier:
![Change folder and search options](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2023/11/Change-folder-and-search-options-1024x349.png)
- Open the Windows File Explorer.
- Click on the View tab on the ribbon menu.
- Click the Options drop-down menu.
- Select the Folder and search options button.
![Folder Options](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2023/11/Folder-Options.png)
- On the Folder Options dialog, click the View tab.
- Under the Advanced settings section, uncheck the “Hide extensions for known file types” checkbox.
- Click Apply and then hit the OK button to apply the changes you’ve just made.
Zip Using the Windows File Explorer
The ribbon menu of the Windows File Explorer also comes with an archiving tool so you can ZIP multiple Excel files at once. Follow these steps:
![Share button on the File Explorer](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2023/11/Share-button-on-the-File-Explorer.png)
- Go to the directory that contains the Excel files.
- Select all the Excel files that you want to compress.
- Click on the Share tab on the ribbon menu.
![The Zip command on Send](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2023/11/The-Zip-command-on-Send.png)
- Hit the Zip command button inside the Send commands block.
Windows will archive the selected Excel files. You should see a new zipped folder containing the Excel files in the same directory as the uncompressed ones.
Zip Using Google Drive
This method is only suitable for two or more Excel file compressing. Here’s how:
![Downloading Excel files from Google Drive](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2023/11/Downloading-Excel-files-from-Google-Drive-1024x522.png)
- Go to Google Drive.
- Upload the target Excel files by dragging and dropping them onto Google Drive.
- Now, select all the uploaded Excel files and right-click.
- Click on the Download option on the right-click context menu.
![Google Drive zipping Excel files](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2023/11/Google-Drive-zipping-Excel-files.png)
- Google Drive will start zipping the Excel files.
- Once done, the download will begin.
Zip Using Third-Party File Compression Software
You’ll find WinRAR or 7-Zip as the dedicated file compression software in most business organizations and education institutes.
Here’s how you can use WinRAR to ZIP an Excel file:
![Add to archive for WinRAR](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2023/11/Add-to-archive-for-WinRAR.png)
- Go to your Excel file and click on it.
- Right-click to get the context menu.
- There, you should see the third-party archiving tool, like WinRAR.
- For WinRAR, the option to compress the files is Add to archive. Click on that.
![Archive name and parameters](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2023/11/Archive-name-and-parameters.png)
- The Archive name and parameters dialog will open.
- There, type a new name inside the Archive name field, if you want.
- Choose the ZIP option as the Archive format.
- If you need to split a large Excel file into small zipped archives, click the Split to volume… drop-down and choose a file size.
- If you wish to protect the archive with a password, click the Set password… button.
- Enter a password that you can remember.
- Click OK on the Enter password dialog.
- Now, click OK on the Archive name and parameters dialog to start the archiving process.
![Zipped an Excel file using WinRAR](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2023/11/Zipped-an-Excel-file-using-WinRAR.png)
Once the process is over, you’ll see the compressed ZIP file in the same file directory as the original Excel file.
Zip Using an Online File Compression Software
There are various online file compression tools offering free conversion of Excel files to a zipped archive. Find below the steps you should follow:
![Choose File](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2023/11/Choose-File.png)
- Go to the Convert XLS to ZIP tool of Onlineconvertfree.com.
- Click the Choose File button.
- Navigate to the Excel file you want to compress, select it, and click Open.
![Convert to ZIP online](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2023/11/Convert-to-ZIP-online.png)
- Now, hit the Convert button.
![](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2023/11/Download-converted-ZIP-file.png)
- Click the Download button to get your ZIP file.
This method is more suitable for you if the Excel file you’re uploading online doesn’t contain sensitive data. Refrain from uploading an Excel file online for file conversions if it contains confidential data.
Zip Using a PowerShell Script
Microsoft PowerShell is an advanced command line interface of Windows PCs since the Windows XP operating system.
It enables you to perform advanced automation, .NET Framework integration, and configuration management. You can execute the Compress-Archive command on PowerShell to ZIP your Excel file.
Here’s how it’s done:
![Launching PowerShell](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2023/11/Launching-PowerShell.png)
- Go to the folder where you’ve saved the target Excel file.
- Press the Shift key and right-click on any blank space in the directory to open the context menu.
- There, click on the Open PowerShell window here option.
![Writing and executing a PowerShell script](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2023/11/Writing-and-executing-a-PowerShell-script.png)
- Copy and paste the following PowerShell script into the command line interface:
Compress-Archive "zipexcelfile.xlsx" "zipexcelfile.zip"
- Press Enter.
- The PowerShell tool might flash a blue screen.
The compressed folder will now appear in the directory where you executed the command.
In the above PowerShell script, ensure you change the input ("zipexcelfile.xlsx")
and output ("zipexcelfile.zip")
file names appropriately.
![PowerShell archiving multiple Excel files](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2023/11/PowerShell-archiving-multiple-Excel-files-1024x325.png)
Suppose, your folder has more than one Excel files for archiving. You can use the following PowerShell script instead:
>> # Specify the names of the XLSX files you want to zip >> $fileNames = @("file1.xlsx", "file2.xlsx", "file3.xlsx", "file4.xlsx") >> >> # Specify the name for the zip file >> $zipFileName = "output.zip"
>>
>> # Combine the source path and file names to get the full file paths
>> $filesToZip = $fileNames | ForEach-Object { Join-Path $sourcePath $_ }
>>
>> # Use the Compress-Archive cmdlet to create a zip file
>> Compress-Archive -Path $filesToZip -DestinationPath (Join-Path $sourcePath $zipFileName)
Zip Using macOS Archive Utility
Just like the Send To feature to archive files in Windows, macOS Archive Utility does the same in a MacBook or iMac. Here are the steps you should know:
![Compress Excel file on Mac](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2023/11/Compress-Excel-file-on-Mac.png)
- Navigate to the folder containing the target Excel file for compressing.
- Select the Excel file.
- Right-click on the file.
- A context menu will show up.
- There, click on the Compress “File_Name.xlsx” command.
![Zipped file on Mac](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2023/11/Zipped-file-on-Mac.png)
macOS will compress the selected Excel file and create a ZIP archive just below the original file.
Zip Using Excel VBA Editor
You can use the following Excel VBA script to save the workbook as a ZIP file to a pre-configured directory.
Sub CompressWorkbook()
Dim sourceWorkbook As Workbook
Dim destinationFilePath As String
' Set the source workbook
Set sourceWorkbook = ThisWorkbook ' Assumes the code is in the workbook you want to compress
' Specify the destination file path (including the .zip extension)
destinationFilePath = "D:\Excel\output.zip" ' Change this path as needed
' Save the workbook as a zip file
sourceWorkbook.SaveAs destinationFilePath, FileFormat:=xlOpenXMLWorkbook
' Close the workbook (optional, depending on your needs)
sourceWorkbook.Close SaveChanges:=False
End Sub
Find below the steps to create the VBA macro:
![A VBA macro to compress Excel workbook](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2023/11/A-VBA-macro-to-compress-Excel-workbook-1024x390.png)
- Press Alt + F11 to launch the Excel VBA Editor.
- Click the Insert button on the Excel VBA toolbar.
- Select the Module option.
- Copy and paste the above VBA script inside the blank module.
- Click the Save button.
- Follow onscreen instructions to save the workbook as a Macro Enabled Workbook or XLSM file.
- Close the Excel VBA Editor.
![Running a VBA Macro](http://cdn-5a6cb102f911c811e474f1cd.closte.com/wp-content/uploads/2023/11/Running-a-VBA-Macro.png)
- To run the macro later, press Alt + F8.
- Select the CompressWorkbook macro.
- Hit Run to save the Excel workbook as a ZIP file in the given destination.
Conclusions
These are all the effortless ways to ZIP an Excel file for personal or professional needs.
If you prefer using the Windows native programs, you can use the Windows Send To command, File Rename, and File Explorer to ZIP Excel files.
Suppose, you’re okay with third-party options and uploading files on the internet, you can use WinRAR, Google Drive, and the Onlineconvertfree web app.
If you’ve had previous experience running commands using a Terminal app, you can check out the PowerShell-based method as well.
When you’re using a MacBook or iMac, you can use the macOS Archive utility to ZIP your Excel files.
Finally, if you’re an Expert Excel user and don’t mind writing a few lines of Visual Basic for Applications (VBA) codes, you must try the VBA-based method of zipping Excel files directly from the worksheet.
Did this article help you? Do you know another way to ZIP Excel files that I didn’t mention here? Or do you simply want to share feedback about this Excel tutorial? You can share your voice by commenting below.
Thanks for your article. I have a question: xlsx files are already zipped based on their file type. Zipping a zip file a second time doesn’t really bring much profit. Or am I wrong?
Regards Roland
Yes, you are correct an xlsx file is really just a zipped set of XML files. You can see this by changing the extension from xlsx to zip.
Tbh, this article exsists because people search how to do it. But I did test is out and it reduced my example file size by about 10%.
why not mention the .xlsb format, which achieves way more compression than zipping a .xlsx which is already zipped.
and the .xlsb format offer faster open/write times when filled with a lot of data…
.XSLX files are already compressed; little reduction in size will be gained for putting them into a Zip file.