Archive extensions look confusing at first, but they make sense once you separate two jobs: bundling and shrinking. Here is what each format is like and how to choose between them.
Bundling and shrinking are different jobs
Combining many files into one (bundling) and making data smaller (compression) are separate tasks by nature. TAR only bundles, GZ only shrinks a single file, and ZIP and 7z do both in one step.
Knowing this explains double extensions such as TAR.GZ: the files were first bundled with TAR, and that bundle was then shrunk with GZ. A common misconception is that the extension tells you the quality of a format. It is only a label; making the same material in several formats and comparing sizes shows you the real difference.
Bundling — many files and folders into one (TAR)
Shrinking — a single file made smaller (GZ)
Both — ZIP, 7z, RAR
ZIP, the most universal choice
ZIP opens by default on Windows, macOS and mobile devices, so its compatibility is the best. Each file is compressed separately, which makes pulling out a few files quick.
The compression ratio is average, but when you do not know who will open the file, it is the safest choice. Whether the format opens without extra software is another big difference. Whether the recipient can open it immediately often matters more than a few percent of compression.
Strength — opens almost anywhere, easy to extract just a few files
Weakness — not the best compression ratio
Best for — handing files to ordinary users
7z and RAR
7z is known for strong compression and is an openly documented format. It is good when you want the smallest result, though the recipient may need to install a separate program.
RAR is widely seen online. Creating it requires commercial software, which limits who can make it, while opening it is possible with several free programs. When sending a 7z, ask in advance whether the recipient has a program that can open it, or add one line on how to open it, which cuts out needless back and forth.
7z — compression first, needs a program on the receiving end
RAR — common on the internet, creating it is restricted
Neither may open with built-in features alone
TAR, GZ and TAR.GZ
TAR is a long-standing bundling format from the Unix world that preserves file permissions and folder structure well. It does not shrink anything on its own, so you usually meet it as .tar.gz together with GZ.
You will see it in software releases, server backups and developer materials. When you receive such a file, the Extract TAR.GZ tool lets you look inside. Some environments cannot open TAR.GZ with built-in features alone; in that case, looking at the list in the browser and pulling out only the files you need is convenient.
TAR — bundles only, keeps permission information
GZ — shrinks one file
TAR.GZ (.tgz) — bundled and shrunk, a standard on servers and in development
Choosing by situation
If the recipient is an ordinary user, pick ZIP. For servers or development environments, pick TAR.GZ. If you want the smallest archive for storage, 7z is usually a fine choice.
Do not trust the extension alone: when a file will not open, its real format may differ from its name. An extension is a label, not the content. In conclusion, rather than sticking to one format, choosing by recipient and purpose is the most efficient approach.
Email or chat — ZIP
Server upload or backup — TAR.GZ
Long-term storage and saving space — 7z
If it will not open, suspect the extension and real format do not match