Create ZIP Files from a SharePoint Document Library on Windows
Question details
Create a ZIP archive from a SharePoint document library folder when Windows compression fails in the synchronized location.

- Product
- SharePoint Online and Windows File Explorer
- Device & OS
- Windows
- Scenario
- A user wants to compress a folder stored in a SharePoint-synchronized document library.
- Observed behavior
- Windows may fail to compress the synchronized folder, particularly when folder names are long. SharePoint Online does not provide a native option to create a ZIP archive directly in the library.
In File Explorer, check that the SharePoint folder and its contents are available locally. If needed, right-click the folder and select Always keep on this device, then wait for synchronization to finish.
Copy the SharePoint folder locally and compress it
Use a local copy outside the synchronized library to avoid compression problems in the SharePoint folder.
In File Explorer, right-click the synchronized SharePoint folder and select Copy.
Open a local location outside the synchronized folder, such as C:\Temp, and select Paste. Create the location first if it does not exist.
In the local copy, right-click any folder with a long name, select Rename, and give it a shorter name. A shorter destination path may also help.
Right-click the local folder and select Send to > Compressed (zipped) folder. On Windows 11, select Show more options first if needed.

Create the archive with 7-Zip
Use 7-Zip if Windows' built-in compression still fails.
Work with Office Documents Using WPS Office
WPS Office is a free, lightweight alternative for working with Office documents. Its familiar interface and Microsoft Office format support make it easy to move between applications. It does not fix SharePoint synchronization or Windows ZIP compression.

Frequently Asked Questions
Can I create a ZIP archive directly in SharePoint Online?
SharePoint Online does not provide a native option to create a ZIP archive directly in the library. Copy a synchronized folder to a local location and compress it with File Explorer or 7-Zip.
Why might a SharePoint-synced folder fail to compress?
Windows' built-in compressor may have trouble with long folder names or paths in the synchronized location. Try copying the folder to a short local path, such as C:\Temp, and compressing the copy.
How do I make SharePoint files available before compressing them?
In File Explorer, right-click the synchronized folder, select Always keep on this device, and wait for the files to finish downloading.
What can I do if 7-Zip works but Windows compression does not?
You can use 7-Zip to create the archive. Because the issue may be specific to Windows' built-in compressor, seek help in a Windows support forum if you need to troubleshoot it further.




