How To Use Tar On Windows 10 [Guide]

Both Linux and macOS can create and extract a compressed archive file out of the box. Windows cannot compress files and folders out of the  box and users have to download apps to add this feature. As of Windows 10 build 17063 though, Tar is now packaged in the OS by default. This gives users a way to compress files without installing additional apps however, Tar only has a command line interface on Windows 10 and it cannot create or extract ZIP files. Those are its limitations. Here’s how to use Tar on Windows 10.

Tar On Windows 10

Check your Windows 10 build number to make sure you have build 17063 or later.

Compress Files

To compress files and folders, you need to run the following command.


tar -cvzf archive name.tar path to folder to compress


tar -cvzf archive.tar "C:UsersfatiwDesktopMy Account Info"

The output file will be saved to the same directory that you’re in. For example, if you ran the above command in your user folder, that’s where the archive will be saved. You can cd to a different folder, and create the archive there. If the file name that you want to give the .tar file or the path to the folder or file you want to compress contains spaces, make sure you enclose it in double quotes.

‘); if (navigator.appVersion.indexOf(“Mac”)!=-1) document.write(”);


To extract a Tar file, you need to run the following command.


tar -zxvf archive name.tar -C path to extraction location


tar -zxvf archive1.tar -C "D:Apps"

About Extraction And Compression

There is a small difference between extraction and compression using Tar on Windows 10. When you compress a file or folder, the compressed file is saved to the directory you’re currently in. This means that you have to be careful which folder you cd into. Alternatively, you can specify in the command where you want to save the Tar file.


tar -cvzf "path and name to archive.tar" "path to folder to compress"


tar -cvzf "C:UsersfatiwDesktopMy Account Infomy_archive.tar" "C:UsersfatiwDesktopMy Account Info"

With extraction, you have to specify where the folder is extracted to however you can extract it from any directory. You do not have to cd into the folder the Tar file is in to execute the command.

You can read up on other commands that the Tar program supports. It’s not the easiest way to compress files and folders and users will likely still go for third-party apps that offer a GUI over clunky command prompt commands simply because they’re easier to use.

About Alex Miller 6306 Articles
Alex Miller is a bestselling Tech author currently working here. His work has received a lot of appreciation from users and is being made to work hard to meet the user's expectations.

Be the first to comment

Leave a Reply

Your email address will not be published.