How to Open TGZ Files in Windows 11: Step-by-Step
In this article
Windows 11 can open .tgz files without any extra software. A .tgz file is simply a gzip-compressed tar archive (the same thing as .tar.gz), and File Explorer handles both formats natively. Double-click the file, and Explorer shows the archive contents as a folder; drag what you need out to a normal folder. The catch is that Explorer treats the archive as read-only: you cannot edit files in place, and some deeply nested archives or unusual tar variants may fail. For those cases, use a free archiver such as 7-Zip. The steps below cover both routes, plus what to do when the built-in method refuses to cooperate.
What You'll Need
- A Windows 11 PC (the built-in tar/gzip support arrived with Windows 11; older Windows versions need third-party software).
- The .tgz file saved somewhere you can find it, such as your Downloads folder or Desktop.
- Optional: 7-Zip (free, from 7-zip.org) if the built-in method fails or you need to edit the archive.
- Enough free disk space to extract the contents, which can be larger than the compressed file.
Step-by-Step
- Locate the file. Open File Explorer (Win+E) and navigate to the folder containing your .tgz file. If you downloaded it, check Downloads first.
- Check the file extension. In File Explorer, open View > Show > File name extensions so you can see the real extension. A file named something.tgz is what you want; if it is something.tgz.zip or similar, it has been renamed or double-compressed and needs different handling.
- Double-click the .tgz file. Windows 11 opens it in File Explorer as if it were a folder and lists the contents. If the file opens in a different app instead, right-click it, choose Open with > File Explorer. Menu labels can differ slightly by Windows version and region.
- Browse the contents. You will usually see a top-level folder inside the archive. Open it to confirm the files are the ones you expect.
- Extract what you need. Select the files or folders, then drag them to a normal folder such as Desktop or Documents, or right-click and choose Copy, then Paste into the destination. Copying out is the extraction step; the original .tgz stays untouched.
- Verify the extracted files. Open the destination folder and check that file sizes look sensible and that nothing is missing. Some archives contain hidden files (names starting with a dot), which Explorer may hide; turn on View > Show > Hidden items if you need them.
- If you need to edit or repack the archive, use 7-Zip. Install 7-Zip from 7-zip.org, then right-click the .tgz file and choose 7-Zip > Extract to "foldername". This produces a .tar file; extract that the same way to get the final files. To rebuild an archive, select the files, right-click, and use 7-Zip > Add to archive, choosing tar as the format and then gzip if you need a .tgz back.
Common Mistakes
- Renaming the file to .zip. Changing the extension does not convert the archive and can make it unopenable. Use the built-in support or 7-Zip instead.
- Editing files inside the archive view. Explorer's archive view is read-only. Any edits you attempt there will not be saved; extract first, edit the copy, then repack if needed.
- Assuming .tgz and .tar are the same. A .tar file is uncompressed; a .tgz is gzip-compressed. 7-Zip often needs two extraction passes: .tgz to .tar, then .tar to files.
- Extracting to a protected location. Dragging files into Program Files or Windows folders can fail silently due to permissions. Extract to Desktop or Documents first, then move things where they belong.
- Ignoring disk space. A small .tgz can expand to many times its size. Check free space before extracting large archives.
Tips
- Use the search box in the archive view to find a specific file inside a large .tgz quickly.
- If you extract the same archive often, keep a permanent extracted copy rather than reopening the .tgz each time.
- When sharing files with Windows users, a .zip is more universally understood, but .tgz is fine if the recipient knows to use Explorer or 7-Zip.
- For command-line users, Windows 11 includes tar.exe. Running
tar -xzf file.tgzin the file's folder extracts it in place; this is handy for scripted or repeated extractions. - Keep the original .tgz until you have confirmed the extracted files open correctly, in case something went wrong.
Troubleshooting
If double-clicking does nothing, or the file opens in an unrelated app, right-click and use Open with > File Explorer, or choose another app and pick Explorer from the list. If Explorer shows an error such as the archive being invalid, the download may be incomplete; download it again and compare the file size with the source. If the built-in viewer shows an empty window, the archive may use a tar variant Explorer does not handle; install 7-Zip and extract with that instead. If extracted files will not open, check that you extracted the inner .tar as well when using 7-Zip, since a single pass on a .tgz sometimes leaves you with a .tar file rather than the actual contents. If permission errors appear, move the .tgz to your Desktop and extract there. Finally, if the file came from an untrusted source, scan it with Microsoft Defender before opening; archives can carry malware, and extracting does not make the contents safe.
Frequently Asked Questions
Do I need to install anything to open a .tgz file in Windows 11?
No. Windows 11 opens .tgz files in File Explorer natively. Third-party tools like 7-Zip are only needed if the built-in method fails or you want to edit or repack the archive.
What is the difference between .tgz and .tar.gz?
Nothing. They are the same format; .tgz is just a shorter extension for a gzip-compressed tar archive.
Can I edit files directly inside a .tgz in Windows 11?
No. Explorer's archive view is read-only. Extract the files, edit the copies, and repack them with 7-Zip if you need a new archive.
Why does 7-Zip give me a .tar file after extracting a .tgz?
A .tgz contains a .tar file that has been compressed. 7-Zip's first pass decompresses it to .tar; run extraction again on that .tar file to get the actual contents.
Is it safe to open a .tgz file from the internet?
Only if you trust the source. Scan the file with Microsoft Defender before extracting, and be cautious with executable files inside the archive.
Can I open .tgz files on older versions of Windows?
Not natively. Windows 10 and earlier need third-party software such as 7-Zip to open .tgz files.