Convert TAR to ZIP

Converting TAR to ZIP does two things at once, and only one is a format change. TAR bundles files without compressing them at all, so writing the same contents as a ZIP applies DEFLATE for the first time and the file usually gets a great deal smaller. The second is compatibility: a `.tar` means nothing to Windows Explorer, and a `.zip` has opened there for years.

  • Where it runs On our server, because a browser cannot run the software this needs.
  • Lossless Nothing is discarded. The ZIP holds exactly what the TAR held.
  • File size limit Up to 25 MB per file, free, without an account.
  • Worth knowing The files come out byte for byte. What does not survive is anything the container held about them rather than in them — a password, and on some formats the original permissions and timestamps.

Up to 100 files at once. Mixed formats are fine.

Where an uncompressed TAR comes from in the first place

Tarballs that are not compressed are almost always machine output. `docker save` writes one. Backup tooling and hosting panels write them as an intermediate. Datasets get dumped as a tar because the pipeline that made them was going to compress it later and did not. Build systems produce them as an artefact to hand to the next stage.

That matters because it tells you what to expect inside: many files, machine-generated names, deep paths and no thought at all given to the archive as something a person will one day open. This conversion is usually the moment a machine's output becomes a human's file, which is a genuinely different job from repacking an archive somebody assembled on purpose. It also explains why the tarball is uncompressed in the first place — the program that wrote it was going to hand it straight to something else, and compressing an artefact that travels four inches would have been wasted effort.

The one repack on this site that reliably shrinks the file

Most archive conversions here trade one compressor for another and the size moves a little in one direction or the other. This one starts from nothing. TAR's compression, in our registry, is recorded as none — it writes headers and file contents in sequence and never touches a byte of them.

So a ZIP of the same content is compressed where the TAR was not, and on the material tarballs usually hold — source files, JSON, logs, configuration, container layers full of text — the difference is large rather than marginal. It is the rare conversion where the compatibility gain and the size gain point in the same direction, which is why it needs no argument for or against: there is no trade being made here beyond the loss of the Unix metadata described further down. Every other archive pair on this site asks you to give something up in exchange for something else, and this one mostly does not.

The 512-byte blocks you stop paying for

TAR is a stream of fixed 512-byte blocks and nothing else. Every member costs one header block carrying its name, size, mode and timestamp, plus its content padded up to the next multiple of 512, and the whole archive is terminated by two blocks of zeros. There is no index and no central directory anywhere in the file.

On an archive of a few large files that overhead is invisible. On one holding thousands of small ones — a `node_modules`, a checkout, a directory of tiny JSON documents — the padding alone can be a serious fraction of the file. A ZIP has per-entry overhead too, but it is tens of bytes rather than a rounding up to half a kilobyte, and the entries are compressed on top.

What ZIP gives you that a tarball never could

ZIP writes a central directory at the end listing every entry and where it starts. A program can therefore read the contents of a large archive without decompressing any of it, and pull one file out without touching the others. That is what makes a ZIP behave like a folder in Explorer.

A TAR has no index at all, so listing it means reading it from the beginning, and extracting one file from the middle means walking past everything before it. That design is a consequence of the format's age and purpose — it was written in 1979 for tape drives, where seeking backwards was not on the table — and it is why every tool that browses archives is happier with a ZIP.

The Unix metadata the TAR was carrying

A TAR stores a mode, a user and a group for each member, and that is why deployment and packaging workflows use it. ZIP has no place for any of that which desktop tools honour, so it does not come through the conversion.

The general rule across archive pairs here is that the members come out byte for byte and what the container knew about them is what is at risk — a password, and on some formats the permissions and timestamps. For a tarball this is the part to think about, because a tar from a build or a container export is far more likely to depend on an executable bit than a ZIP somebody made on a desktop.

A TAR whose contents were already compressed

The size gain described above is not automatic. If the tarball holds photographs, video, PDFs or files that were themselves compressed before being archived, DEFLATE has almost nothing to find and the ZIP lands close to the TAR minus its padding.

That is worth checking before you assume the conversion will solve a transfer problem. A 25 MB tar of JPEGs will not become a 6 MB ZIP, and no compressor on this site or anywhere else will make it one; the bytes were spent when the photographs were encoded. What you still get is a single file that every machine can open, which is very often the actual reason to convert in the first place.

Where the tarball is unpacked and rewritten

This pair runs on our converter rather than in the browser. The TAR is uploaded over an encrypted connection, extracted with 7-Zip into a scratch directory, packed again as a ZIP from inside that directory, and returned; the upload and every intermediate are deleted when the job ends.

The scratch space is a bounded memory-backed filesystem, discarded together with the container that ran the job. The limits are 25 MB per upload on the free tier and a hard sixty-second cap per job, with an outright refusal for any archive declaring it unpacks to more than 2 GB. A tar is uncompressed, so that declaration is rarely far from the file size itself.

Compressing a tarball without leaving the Unix shape

If the destination is a Linux machine rather than a desktop, converting to ZIP solves a problem you do not have. The idiomatic move is to keep the TAR and compress it — converting the tarball to GZ produces the `.tar.gz` that every Unix tool unwraps in one command, and keeps the modes and ownership the tar was carrying.

Pick ZIP when a person on Windows or macOS has to open the file, or when an upload form insists. Pick a compressed tarball when the file is going back into tooling. The difference is not technical taste; it is who is at the other end.

Checking the ZIP holds what the TAR held

The ZIP gains a check the tarball never had. Tar’s `chksum` field covers the header block and nothing else, so a corrupted member extracts silently with the wrong bytes in it; ZIP stores a CRC-32 per entry and reports the bad one by name. Every member is copied without being re-encoded — a lossless container has nothing to re-encode in the first place. The entry count and the paths in the ZIP should match the tarball exactly, and any archiver will list both without extracting anything, which makes the comparison a thirty-second job.

The one thing worth a deliberate glance is the top level. A tar written from a parent directory carries a leading folder in every path and one written from inside does not, and the ZIP faithfully reproduces whichever it found. If your files come out one level deeper than you expected, that is the tarball's own layout showing through rather than something the conversion introduced — and it is worth knowing before a script that hard-codes the path runs against it.

Container exports and other tarballs with surprises inside

A tar produced by `docker save` is a good example of an archive that is not really a folder. It holds layer blobs, a manifest and JSON metadata whose names are long hexadecimal strings, and none of it is meant to be read by a person. Converting it to ZIP works perfectly well and gives you exactly that structure, compressed, in a file your machine will open.

What it does not give you is the image. Rebuilding one needs the tar fed back into a container runtime, which expects the tar and not a ZIP, so a converted copy is useful for inspecting or forwarding the artefact and not for restoring it. The same caution applies to backup tools that write tarballs with their own index files inside: the archive converts cleanly, and whether the tool that made it will accept the converted version is a separate question worth checking before you discard the original.

How to convert TAR to ZIP

  1. Drop your TAR onto this page, or click to choose one.
  2. It is extracted and packed again as a compressed ZIP.
  3. Download the ZIP — smaller than the tarball, and openable anywhere.

TAR versus ZIP: a bundler with no compressor, and a compressor with a directory

TAR compared with ZIP
TARZIP
Full nameTape ArchiveZIP Archive
File extension.tar.zip
Media typeapplication/x-tarapplication/zip
CompressionUncompressedLossless — nothing is discarded
First published19791989
Published byPKWARE
SpecificationPOSIX.1-2001 ustarAPPNOTE.TXT
LicensingOpen standardOpen standard
Standing todayCurrentCurrent
Opens in a browserNo browserNo browser
Considered insteadGZ7Z

What survives

Nothing is discarded. TAR and ZIP both store their content losslessly, so the conversion is a change of packaging rather than a change of quality, and it can be repeated without accumulating damage.

Opening the result

7-Zip reads both TAR and ZIP, so there is a way to check the result against the original without a second tool.

File size and quality

ZIP packs the same samples into roughly half the space. Nothing is discarded — decode it and you get the TAR back bit for bit — which makes it the better shelf for anything you intend to keep.

What each format is for

TAR was published in 1979. The specification is POSIX.1-2001 ustar, and it is worth reading if the file has to outlive the tool that wrote it.

ZIP comes from PKWARE and dates from 1989, specified as APPNOTE.TXT. Windows Explorer, Finder and 7-Zip all read it.

TAR to ZIP: size, structure and permissions

Are my TAR files uploaded anywhere?

Yes — this conversion needs software that cannot run in a browser, so the file is uploaded over an encrypted connection. It is deleted as soon as the job finishes, and the result is sent straight back to you without being stored. The work is done by 7-Zip, the archiver, in its command-line form.

Will converting a TAR to ZIP make it smaller?

Yes, and usually by a lot. TAR applies no compression whatsoever — the registry records its compression as none — so a ZIP of the same contents is the first time anything has been compressed at all.

Why does my TAR seem bigger than the files inside it?

Because of block padding. TAR is a stream of 512-byte blocks: each member gets a header block plus its content rounded up to the next multiple of 512, and the archive ends with two blocks of zeros. On thousands of tiny files that overhead is visible.

Do file permissions survive?

No. TAR records a mode, an owner and a group for every member and ZIP has no equivalent that desktop tools read, so treat them as not preserved and set them again after extracting if anything depends on them.

Is the directory structure kept?

Yes. Both formats hold many members with full paths, so nested folders come through unchanged, and the ZIP is built from inside the extracted directory so your files are at the top level rather than under a wrapper folder.

What if the TAR is full of images or video?

Then expect very little shrinkage. JPEG, MP4 and PDF are compressed before they are archived, so DEFLATE finds almost nothing left to remove. The conversion is still worth it for the compatibility, just not for the size.

How big a TAR can I upload?

25 MB on the free tier, because the repack runs on our server. Since a TAR is uncompressed, that 25 MB is roughly 25 MB of real content rather than a compressed fraction of something larger.

More about these formats

Where these figures come from

The claims this page makes about TAR and ZIP are checkable, and these are the documents that settle them.