General ZIP (compress) Files and Folders in Windows 11


ZIP_banner.png

This tutorial will show you how to ZIP files in Windows 11.

Zipped (compressed) files take up less storage space and can be transferred to other computers more quickly than uncompressed files. In Windows, you work with zipped files and folders in the same way that you work with uncompressed files and folders. Combine several files into a single zipped folder to more easily share a group of files.

Starting with Windows 11 build 22631.3810, you can now compress files and folders to a ZIP, 7z, or TAR file.

Starting with Windows 11 version Build 26040 (Canary), build 26052.1100 (Dev), build 22635.3640 (Beta), and build 26100.712 (RP), Microsoft is adding a new compression wizard that lets you choose even more formats and specify even more details. You can compress individual files with gzip/bzip2 (and more,) or add multiple files to archives in different tar formats with different types of compression. You can also change the compression level and what types of data are stored in each archive.

Reference:


An empty folder will not be zipped.


If you ZIP an EFS encrypted file, the file inside the ZIP will no longer be encrypted.



Contents

  • Option One: ZIP, 7z, or TAR File(s) and Folder(s) using "Compress to" Context Menu
  • Option Two: ZIP File(s) and Folder(s) using "Send to" Context Menu
  • Option Three: ZIP File(s) and Folder(s) using File Explorer Command Bar
  • Option Four: ZIP File(s) and Folder(s) using Command




Option One

ZIP, 7z, or TAR File(s) and Folder(s) using "Compress to" Context Menu


1 Select one or more files(s) and/or folder(s) you want to ZIP.

2 Right click or press and hold on the selected item(s).

3 Perform an available option: (see screenshots below)
  • Click/tap on Compress to ZIP file.
  • Click/tap on Compress to, and click/tap on ZIP File, 7z File, TAR File, or Additional options.

Additional options is currently only available starting with Windows 11 version Build 26040 (Canary).


Compress_to_ZIP_file_context_menu.png
Compress_to-1.png

4 If you selected Additional options, then perform the steps you want below: (see screenshots below)
  1. Select the Archive format you want to use.
  2. Select the Compression method you want to use.
  3. Select the Compression level you want to use.
  4. If available, check or uncheck Retain symbolic links for what you want.
  5. If available, check or uncheck Retain hard links for what you want.
  6. Click/tap on Create.
Compress_to-2.png
Compress_to-3.png
Compress_to-4.png

5 Type a name you want for the ZIP, 7z, or TAR file. (see screenshot below)

ZIP_name.png




Option Two

ZIP File(s) and Folder(s) using "Send to" Context Menu


1 Select one or more files(s) and/or folder(s) you want to ZIP.

2 Right click or press and hold on the selected item(s).

3 Click/tap on Show more options (Shift+F10).

4 Click/tap on Send to, and click/tap on Compressed (zipped) folder. (see screenshot below)

Send_to_Compressed_zipped_folder.png

5 Type a name you want for the ZIP file. (see screenshot below)

ZIP_name.png




Option Three

ZIP File(s) and Folder(s) using Send To Context Menu


1 Open File Explorer (Win+E).

2 Select one or more files(s) and/or folder(s) you want to ZIP.

3 Click/tap on the See more (3 dots) button on the command bar, and click/tap on Compress to ZIP file. (see screenshot below)

Compress_to_ZIP_file_File_Explorer_command_bar.png

4 Type a name you want for the ZIP file. (see screenshot below)

ZIP_name.png




Option Four

ZIP File(s) and Folder(s) using Command


To see more Compress-Archive command usage details, see: Compress-Archive | Microsoft Docs


1 Open Windows Terminal, and select either Windows PowerShell or Command Prompt.

2 Use the command below you want:


 ZIP File

A) Type the command below into Windows Terminal, and press Enter.

PowerShell -Command "Compress-Archive -LiteralPath'<full path of file>' -DestinationPath '<full path for ZIP>.zip'"

Substitute <full path of file> in the command above with the actual full path of the file with extension you want to ZIP.

Substitute <full path for ZIP> in the command above with the full path with ZIP name for where you want the ZIP.

For example:
PowerShell -Command "Compress-Archive -LiteralPath 'C:\Users\Brink\Desktop\File.txt' -DestinationPath 'C:\Users\Brink\Desktop\File.zip'"




 ZIP Folder with All its Files and Subdirectories

A) Type the command below into Windows Terminal, and press Enter.

PowerShell -Command "Compress-Archive -LiteralPath '<full path of folder>' -DestinationPath '<full path for ZIP>.zip'"

Substitute <full path of folder> in the command above with the actual full path of the folder you want to ZIP.

Substitute <full path for ZIP> in the command above with the full path with ZIP name for where you want the ZIP.

For example:
PowerShell -Command "Compress-Archive -LiteralPath 'C:\Users\Brink\Desktop\Folder' -DestinationPath 'C:\Users\Brink\Desktop\File.zip'"




 ZIP Only All Files and Subdirectories in a Folder

A) Type the command below into Windows Terminal, and press Enter.

PowerShell -Command "Compress-Archive -Path '<full path of folder>\*' -DestinationPath '<full path for ZIP>.zip'"

Substitute <full path of folder> in the command above with the actual full path of the folder you want to ZIP.

Substitute <full path for ZIP> in the command above with the full path with ZIP name for where you want the ZIP.

For example:
PowerShell -Command "Compress-Archive -Path 'C:\Users\Brink\Desktop\Folder\*' -DestinationPath 'C:\Users\Brink\Desktop\File.zip'"




 ZIP Only All Files in Root Directory of Folder

A) Type the command below into Windows Terminal, and press Enter.

PowerShell -Command "Compress-Archive -Path '<full path of folder>\*.*' -DestinationPath '<full path for ZIP>.zip'"

Substitute <full path of folder> in the command above with the actual full path of the folder you want to ZIP.

Substitute <full path for ZIP> in the command above with the full path with ZIP name for where you want the ZIP.

For example:
PowerShell -Command "Compress-Archive -Path 'C:\Users\Brink\Desktop\Folder\*.*' -DestinationPath 'C:\Users\Brink\Desktop\File.zip'"




That's it,
Shawn Brink


 
Last edited:
Hello @Brink,

I have noticed Windows "Compressed (zipped) folder" has a problem with UTF-8 file/folder names. I have had this problem since I started using "Compress to Zip File" (new Right-Click, not the Legacy) instead of "7z" (legacy Right-Click Menu).

ss1.png
 

My Computer

System One

  • OS
    Win 11 Enterprise
    Computer type
    Laptop
    CPU
    i7
    Hard Drives
    SSD
@Brink,
Do we have to wait for an update to resolve this issue?
 

My Computer

System One

  • OS
    Win 11 Enterprise
    Computer type
    Laptop
    CPU
    i7
    Hard Drives
    SSD
@Brink,
Do we have to wait for an update to resolve this issue?

I'd recommend to send feedback to Microsoft on this in case it's a bug to help get it sorted faster.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop 7 Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender
Option One in tutorial updated for "Compress to" 7z File and TAR File support added in Canary channel. :alien:
 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop 7 Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender

Latest Support Threads

Back
Top