How to extract RAR, 7z, GZ files on Windows 11

Here are two easy ways to open and extract archive formats like RAR, 7z, and GZ on Windows 11.

Windows 11 extract 7z, RAR, GZ
Windows 11 extract 7z, RAR, GZ

On Windows 11, you can open and extract archive formats, such as RAR, 7z, and GZ, and in this guide, you will learn two ways to complete this task. Files with “.rar,” “.7z,” “.gz,” “.tar.gz.” extensions are containers created using Unix-based archival applications, which you may find on Linux and macOS systems. Usually, they are used for backups and archival, including distributing applications over the internet.

Windows 11 includes native support to extract “.gz” and “.tar.gz” files but support “.rar,” “.7z,” and other formats won’t arrive until later in 2023. However, you can use third-party tools like 7zip to open and extract these files.

7zip is a free and open-source file manager available on Windows, macOS, and Linux that you can use to open and extract virtually any kind of archival format, including “.rar,” “.7z,” “.gz,” “.tar.gz.,” “.iso,” “.img,” “.vhdx,” “.dmg,” “.cab,” “.zip,” and many others. You can even open files protected with a password (as long as you have the password to unlock it). Of course, you can always use WinRAR, but even though you can use it for free, you must pay to access additional features.

This guide will teach you the steps to open and extract RAR, 7z, and GZ files on Windows 11.

Extract RAR, 7z, GZ files using 7zip

Since Windows 11 doesn’t include native support to manage archival containers, such as RAR, 7z, and GZ, you will have to rely on free third-party tools, such as 7zip.

Install 7zip

To install the 7zip app on Windows 11, use these steps:

  1. Open Start.

  2. Search for Command Prompt, right-click the top result, and choose the Run as administrator option.

  3. Type the following command to install the 7zip app on Windows 11 and press Enter:

    winget install --id 7zip.7zip

    winget install 7zip

Once you complete the steps, you can use the app to open and extract virtually any kind of archival file format.

Extract RAR, 7z, GZ files

To open and extract a  RAR, 7z, or GZ file format on Windows 11, use these steps:

  1. Open Start.

  2. Search for 7zip File Manager and click the top result to open the app.

  3. Click the down-arrow button on the right of the address bar and choose the drive where your files are stored.

    7zip file manager

  4. Open the folder with the RAR, 7z, or GZ to open.

  5. Double-click the RAR, 7z, or GZ file to open it.

    Windows 11 open RAR

    Quick note: If the file is large, uncompressing and opening may take a while. If you close the app without extracting the contents, you will have to uncompress the file again.
  6. Select the files to extract from the container.

  7. Click the Extract button.

    7zip extract RAR, 7z, GZ

  8. Specify the folder location.

  9. Click the OK button.

After you complete the steps, the contents of the archival container will extract to the destination folder.

Extract RAR, 7z, GZ files using WSL

Alternatively, if you use the Windows Subsystem for Linux, you can install the P7Zip app to open and extract RAR, 7z, and GZ files using commands.

Install P7Zip

To install P7Zip on WSL, use these steps:

  1. Open Start.

  2. Search for Command Prompt, right-click the top result, and choose the Run as administrator option.

  3. Type the following command to spin the WSL (Ubuntu) distro and press Enter:

    wsl
  4. Type the following command to check that the local package index is up to date and press Enter:

    sudo apt update

    Run WSL

  5. Type the following command to install P7Zip in the WSL distro and press Enter:

    sudo apt install p7zip-full p7zip-rar

    WSL install P7zip with RAR module

  6. Type “Y” and press Enter to continue with the installation.

  7. (Optional) Type the following command to confirm the app has been installed and press Enter:

    7z

Once you complete the steps, you can use the Ubuntu terminal to extract RAR, 7z, and GZ files on Windows 11.

In the case you are dealing with a RAR or Zip folder with a password, the app will prompt you to enter the authentication information during the extraction process or when trying to open a specific file.

If you have a RAR file divided into multiple files, you only need to open the first one, and during the extraction process, 7Zip will reassemble and extract the files accordingly.

Extract RAR, 7z, GZ files

To open and extract a RAR, 7z, or GZ file format on Windows 11, use these steps:

  1. Open Start.

  2. Search for Command Prompt, right-click the top result, and choose the Run as administrator option.

  3. Type the following command to spin the WSL (Ubuntu) distro and press Enter:

    wsl
  4. Type the following command to move to the folder containing the RAR, 7z, and GZ files and press Enter:

    cd Users/USER/Downloads/extract

    WSL CD command

    Quick note: On Linux, when specifying a path, you have to use “/” not “\” like on Windows. Also, in the command, update the path with the location where your archival files are located.
  5. (Optional) Type the following command to view details about the archival container before extracting it, and press Enter:

    7z l FILE-NAME.rar

    7z archive file details command

    In the command, replace “FILE-NAME.rar” with the actual name of your file.

  6. Type the following command to unrar a file and press Enter:

    7z e FILE-NAME.rar

    Windows 11 WSL extract 7z, RAR, GZ

    In the command, replace “FILE-NAME.rar” with the actual name of the file to extract.

  7. (Optional) Type the following command to extract the file to a specific folder and press Enter:

    7z e FILE-NAME.rar -oc:/mnt/c/PATH/EXTRACTION/

    In the command, replace “FILE-NAME.rar” with the actual name of the file and update the path to the folder you want to extract the contents.

After you complete the steps, the files from the RAR, 7z, or GZ container will extract into the folder you specified.

About the author

Mauro Huculak is a Windows How-To Expert who started Pureinfotech in 2010 as an independent online publication. He has also been a Windows Central contributor for nearly a decade. Mauro has over 14 years of experience writing comprehensive guides and creating professional videos about Windows and software, including Android and Linux. Before becoming a technology writer, he was an IT administrator for seven years. In total, Mauro has over 20 years of combined experience in technology. Throughout his career, he achieved different professional certifications from Microsoft (MSCA), Cisco (CCNP), VMware (VCP), and CompTIA (A+ and Network+), and he has been recognized as a Microsoft MVP for many years. You can follow him on X (Twitter), YouTube, LinkedIn and About.me. Email him at [email protected].