How to use Create TAR or TAR.GZ
- 1Drop files into the box, or click Add a folder to include a folder and its subfolders.
- 2Type an archive name, or keep the suggested one.
- 3Choose .tar.gz (compressed, the usual choice) or .tar (no compression, fastest).
- 4Click Create and then Download.
When to use TAR instead of ZIP
TAR archives are the standard on Linux and macOS servers. Deployment scripts, Docker builds, backup tools and many upload forms for hosting panels expect a .tar.gz. Creating one on Windows normally means installing extra software; here it takes a few clicks.
What is stored
The archive stores the folder structure, using standard POSIX ustar format with GNU long-name records for very long paths, along with each file's modified date. Folders get permission 755 and files 644, the usual defaults on Linux.
If two files share a name, the second is renamed to name (2).ext. System files from an added folder (.DS_Store, ._ files, __MACOSX, Thumbs.db, desktop.ini) are left out unless you click Include them under the file list.
Privacy and limits
Archives are created in your browser; no file is uploaded. A .tar.gz is built in memory, so the total size you can archive depends on your device. File owners and executable permissions are not kept, because browsers do not expose them.
Our test: a web project folder
We added a 3.9 MB folder of website source code (359 files in 36 subfolders) with Add a folder:
| Format | Size | Time |
|---|---|---|
| .tar | 4.21 MB | 0.2 s |
| .tar.gz | 1.06 MB | 1.2 s |
A plain .tar is slightly bigger than the files themselves, because every file gets a 512-byte header and is padded to a multiple of 512 bytes. Hundreds of small files add up. The .tar.gz removes that overhead and more, which is why it is the usual choice for uploads.
Before you upload the archive to a server
- Check the top folder. Archives made with Add a folder put everything inside that folder's name, so
tar -xzf site.tar.gzcreatessite/. If your host expects the files at the top level, extract into a temporary folder and move them, or add the files themselves instead of the folder. - Restore permissions. Files are stored as 644 and folders as 755. Scripts that must run need
chmod +xafter extracting. - Leave secrets out. Hidden files such as
.envgo into the archive too; we checked by opening a test .tar.gz made here. The page shows a file count, not names, so move anything that should not reach the server out of the folder before you pick it.
Windows 10 and 11 include a tar command too (tar -xf archive.tar.gz in Command Prompt), so the recipient does not need extra software on a current PC.
.tar.gz, .tar or .zip: picking for the recipient
- .tar.gz for Linux servers, Docker build contexts, hosting control panels that ask for an archive to unpack, and anyone who will use
taron the other end. - .tar when every file is already compressed (photos, videos, other archives) and you only need one bundle quickly. Compressing those again wastes time and saves almost nothing.
- .zip for people on Windows or Mac who will double-click it. Create ZIP makes one in the same way.
If you are not sure what the server expects, .tar.gz is the safe default: every Linux system can unpack it with one command.
The same archive from a terminal
If you will make this archive again and again, for example for every deploy, the command line gives the same result and lets you leave files out by name:
tar -czf site.tar.gz site/makes a .tar.gz of the foldersite, like Add a folder plus .tar.gz here.tar -czf site.tar.gz --exclude=.env --exclude=node_modules site/skips secrets and installed packages.tar -tzf site.tar.gzlists what went in, so you can check before uploading.
These work in the Terminal on Mac and Linux and in Command Prompt on Windows 10 and 11. This page is handy when you are on a borrowed computer or a phone and just need the archive once.
Frequently asked questions
How do I create a tar.gz file on Windows?
Add your files or folder here, choose .tar.gz and click Create. No command line or extra software is needed.
What is the difference between .tar and .tar.gz?
.tar bundles files without compressing them. .tar.gz is the same bundle compressed with GZIP, so it is smaller.
How do I extract the archive on Linux?
Run tar -xzf archive.tar.gz for a .tar.gz, or tar -xf archive.tar for a plain .tar.
Are executable permissions preserved?
No. Browsers do not give access to file permissions, so files are stored as 644. Run chmod +x after extracting if you need it.
Can I create a .tar.gz from a whole folder?
Yes. Click Add a folder, pick the folder, choose .tar.gz and click Create. Every subfolder is included with its structure.
Will the archive open on Windows?
Windows 11 opens .tar and .tar.gz files in File Explorer. On older versions use 7-Zip, or this site's Extract TAR tool.
Why is my .tar bigger than the files?
TAR stores a 512-byte header for every file and pads each file to 512-byte blocks. With many small files that overhead is noticeable. Choose .tar.gz to remove it.
Are hidden files like .env included?
Yes. In our test a folder with a .env file produced a .tar.gz that contained proj_env/.env. The page shows only a file count, not the names, so move secret files out of the folder before you add it. Only system files such as .DS_Store, Thumbs.db and desktop.ini are left out automatically.
Can Windows open the .tar.gz I made?
Yes. Windows 11 opens it in File Explorer, and Windows 10 and 11 can extract it with the built-in tar command. Older systems can use 7-Zip.
