fileformer
search⌘KtranslateENexpand_moreupload_fileConvert
Converters8 file families · 44 direct conversions
What changes in a conversionarrow_forward
home/archive-converter

Open it, check it, repack it.

A free archive converter for ZIP, RAR, 7Z, TAR, ISO, CAB, DEB, RPM and any of 15+ archive types: see every file and any risky paths inside, then repack it as one of 15 formats. Everything runs in this tab, and the new archive is read back and compared byte for byte before you download it.

folder_zipproject-files.7z45.8 KB packed · 64.8 KB inside · 5 files · built in your browserSample .7z
verified_userNo unsafe paths, hidden programs or bomb ratios found in 5 entries.
Open an archive to list every file in it. The sample builds a real .7z in your browser: notes, a CSV, code and a photo.
folder_openproject/64.8 KBfolderdocs/16.7 KBfolderphotos/43.9 KBfoldersrc/4.1 KBdescriptionREADME.md69 B
click a folder to open or close it · red rows are programs or unsafe paths
repack as
.zipopens anywhere.7zsmallest.tgzLinux, servers.txzsmallest tarball.tarno compression.isodisc image
searchAll 22 formats · 15 written hereexpand_more
search
.
No format matches.
writes.zip
packerthis page
source45.8 KB
files5
Deflate per file. Opens with a double-click on Windows, macOS, iOS and Android.downloadDownload inventory_2Repack as .zip
~/two-folders-seven-formats

How much each archive format actually saves.

We packed the same two folders into every format and measured the results: 2.3 MB of source code, logs and CSV data, and 3.9 MB of photographs and audio. Packed with 7-Zip 26.02. What you archive matters far more than which format you choose.

86.7%XZ on text and code, the best saving
15.3%best saving on photos and audio
−1.1%TAR alone, larger than the source
formatalgorithmtext folder · 2.3 MBphoto folder · 3.9 MBspeednotes
.7zLZMA20.3 MB · 86.3%15.3%FastSmallest result, open format
.xzLZMA20.3 MB · 86.7%15.3%FastTies 7Z, standard on Linux
.bz2Burrows-Wheeler0.4 MB · 83.5%15%SlowerBetween gzip and LZMA2
.gzDEFLATE0.4 MB · 81.9%14%SlowerUniversally supported tarball
.zip-9DEFLATE level 90.4 MB · 81.4%14%MediumOpens everywhere, no extra software
.zipDEFLATE level 60.4 MB · 80.8%13.6%MediumWhat this tool produces in your browser
.tarNone2.4 MB · -1.1%-0.3%InstantA container only, it does not compress
bars = share of the folder saved · negative means the archive came out larger
On text and code the gains are largeXZ and 7Z both cut the 2.3 MB folder to 0.3 MB, saving about 86.3%, while ZIP saved 80.8%. Logs, source code and spreadsheets are full of repetition that compressors exploit.
On photos and audio almost nothing is leftThe same formats saved only 13.6% to 15.3%, because JPEG and MP3 files are already compressed. Zipping a folder of photos will not make it meaningfully smaller.
TAR on its own saves nothingIt came out 1.1% larger. It is a container that joins files together, which is why you almost always see it paired with gzip, bzip2 or xz.
File type beats format choiceChoosing 7Z over ZIP gained about 5.5 percentage points on text, whereas switching from text to photos changed the outcome by more than sixty.

Measured on two representative folders with 7-Zip at maximum settings. Your own results depend heavily on what is inside the archive.

~/15-plus-formats

15+ archive and compression formats.

Archivers bundle many files into one; compressors shrink a single stream. Tarballs like TGZ and TXZ are one of each.

Common archives

3 formats
.zipThe universal archive format, supported everywhere.Best for sharing with anyone on any system.Compresses well and opens without extra software.What is .zip?Convert .zip →
.rarA proprietary format from RARLAB with strong compression.Best for opening archives someone sent you.Creating RAR needs licensed software; convert to ZIP or 7Z.What is .rar?Convert .rar →
.7zThe open 7-Zip format, using LZMA2 compression.Best when you want the smallest possible archive.Beat ZIP by a clear margin on text in our test.What is .7z?Convert .7z →

Unix and Linux archives

3 formats
.tarA Unix container that bundles files without compressing them.Best as a wrapper before applying gzip, bzip2 or xz.On its own it saves nothing; it only joins files together.What is .tar?Convert .tar →
.tgzA TAR archive compressed with gzip.Best for Unix and Linux distribution of source code.The most common compressed tarball you will meet.What is .tgz?Convert .tgz →
.tbz2A TAR archive compressed with bzip2.Best when you want more compression than gzip.Slower than gzip, smaller output.What is .tbz2?Convert .tbz2 →

Specialised formats

16 formats
.isoA complete disc image, sector for sector.Best for archiving CDs, DVDs and bootable media.A container rather than a compressor.What is .iso?Convert .iso →
.cabMicrosoft’s cabinet format, used by Windows installers.Best for opening Windows setup and driver packages.Convert to ZIP for everyday sharing.What is .cab?Convert .cab →
.arThe classic Unix archive format.Best for static libraries and Debian package internals.Rarely used directly these days.What is .ar?Convert .ar →
.debA Debian and Ubuntu software package.Best for inspecting what an installer contains.An ar archive holding compressed tarballs.What is .deb?Convert .deb →
.rpmA Red Hat, Fedora and SUSE software package.Best for inspecting package contents.Convert to extract the files inside.What is .rpm?Convert .rpm →
.jarA Java archive, structurally a ZIP file.Best for Java libraries and applications.Any ZIP tool can open it.What is .jar?Convert .jar →
.arjA DOS-era archive format from the early 1990s.Best for recovering files from old backups.Largely historical; convert it forward.What is .arj?Convert .arj →
.lhaA Japanese archive format popular in the 1990s.Best for old Amiga and DOS archives.Convert to ZIP or 7Z to keep the contents usable.What is .lha?Convert .lha →
.cpioA Unix archive used by system tools and initramfs images.Best for Linux boot images and RPM internals.A container format like TAR.What is .cpio?Convert .cpio →
.bz2Burrows-Wheeler compression for a single file.Best paired with TAR as a .tar.bz2 tarball.Smaller than gzip but slower to pack.What is .bz2?Convert .bz2 →
.gzThe gzip format, compressing one file at a time.Best paired with TAR, or for web content.Fast and universally supported.What is .gz?Convert .gz →
.xzLZMA2 compression for a single file.Best where the smallest size matters most.Excellent ratio, higher memory use.What is .xz?Convert .xz →
.lzmaThe original LZMA compression format.Best for legacy archives that predate XZ.XZ superseded it and is the better target.What is .lzma?Convert .lzma →
.lzoA compressor built for speed over ratio.Best where decompression speed matters most.Saves less than gzip but runs very fast.What is .lzo?Convert .lzo →
.txzA TAR archive compressed with xz.Best for the smallest tarballs, used by many Linux distros.Matched 7Z for the best ratio in our test.What is .txz?Convert .txz →
.zThe original Unix compress format.Best for very old Unix archives.Obsolete; convert to gzip or xz.What is .z?Convert .z →
~/magic-numbers

The extension can lie. The first bytes can’t.

Every archive and compression format starts with a signature at a fixed position. Most sit at byte 0, but tar puts “ustar” at byte 257 and an ISO disc image puts “CD001” at byte 32,769. Pick an example, or choose a file from your computer. Only its first 33 KB are read, in your browser, and it all stays on your device.

.zip.docx.rar.7z.tar.gz.bz2.xz.zst.tar.iso.zip?
report.zip70 bytes
000000
50P4BK03·04·14·00·00·00·08·00·00·60`41A5D]86·A6·
000010
10·36629)00·00·00·49I00·00·00·0A·00·00·00·72r65e
verifiedZIP.zipNamed .zip, but the bytes say ZIP. Rename it to .zip or open it with a tool that reads the signature.
signature atbyte 0MIME typeapplication/zipversion needed2.0first methodDeflatefirst entryreport.txt
Directory at the end of the file; see the ZIP format page for the full layout.
~/ustar-512

A tar file is 512-byte blocks of plain text numbers.

tar was designed for magnetic tape in 1979 and never compresses anything. Each file gets a 512-byte header, numbers written as octal ASCII digits, then its contents padded to the next 512 bytes. Two empty blocks mark the end. Compression is a separate step: a .tar.gz is this whole stream run through gzip. The archive below is built live, checksum included, and downloads as a real .tar.

your file as tar blocks · 2048 bytes for 22 bytes of content
header512 Byour contents22 Bpadding to 512490 Bend marker1024 B
For a small file the header and end marker are most of the archive, which is why a tar of tiny files is much bigger than its contents.
type
Regular file · 0Directory · 5Symlink · 2
permissions
644 rw-r--r--755 rwxr-xr-x600 rw-------
downloadDownload .tar · 2,048 bytes
header512 bytesdata22 → 512 bytesend marker2 × 512 zero bytesGNU tar on disk10,240 bytes
header byte 0click a band · 512
fieldatlenstored asmeans
name0100project/src/app.js + ␀×82path, up to 100 bytes
mode10080000644 + ␀×1permissions 644 in octal
uid10880001750 + ␀×1owner user ID 1000
gid11680001750 + ␀×1group ID 1000
size1241200000000026 + ␀×122 bytes; max 8 GiB in 11 octal digits
mtime1361215257445500 + ␀×12026-10-01 12:00 UTC
chksum1488014403␀␣sum of all 512 bytes = 6403 (decimal), with this field counted as spaces
typeflag15610regular file
linkname157100␀×100unused for this type
magic2576ustar + ␀×1“ustar” + NUL: POSIX format
version263200“00”
uname26532sam + ␀×29owner name, used before uid
gname29732staff + ␀×27group name
devmajor32980000000 + ␀×1device number, for device files only
devminor33780000000 + ␀×1device number, for device files only
prefix345155␀×155empty: path fits in name
padding50012␀×12unused, to fill 512 bytes
~/repack-into-everything

The same files in all 15 formats, measured.

One click packs the archive open above (or the sample) into every format this page writes, opens each result again and compares every file byte for byte. Next to the measurements: what each format is able to store besides the bytes.

15/15read back identical
.lzmasmallest result
45.7 KBsmallest size
Measured on project-files.7z just now. Smallest row highlighted.scienceMeasure again
writessize on your filesread backfolderspermstimeslinks>4 GBencrypt
.zip46.8 KB · 42 ms5/5 sameyesyes2 syesZIP64AES
.jar46.8 KB · 31 ms5/5 sameyesyes2 syesZIP64no
.tar69.5 KB · 30 ms5/5 sameyesyes1 syesPAXno
.tgz47.6 KB · 30 ms5/5 sameyesyes1 syesPAXno
.gz47.6 KB · 38 ms5/5 sametartar1 staryesno
.7z45.8 KB · 98 ms5/5 sameyespart100 nspartyesAES
.tbz247.5 KB · 92 ms5/5 sameyesyes1 syesPAXno
.txz45.8 KB · 85 ms5/5 sameyesyes1 syesPAXno
.bz247.5 KB · 74 ms5/5 sametartar1 staryesno
.xz45.8 KB · 79 ms5/5 sametartar1 staryesno
.lzma45.7 KB · 82 ms5/5 sametartar1 staryesno
.z68.0 KB · 39 ms5/5 sametartar1 staryesno
.iso448.0 KB · 58 ms5/5 sameyesRR1 sRRmultino
.cpio65.4 KB · 47 ms5/5 sameyesyes1 syesnono
.ar65.1 KB · 52 ms5/5 samenoyes1 snoyesno
bar = size relative to the largest result · capability columns are what the format can store: Unix permissions, timestamps, symbolic links, single files over 4 GB, built-in encryption
.zipapplication/zipPKWARE APPNOTE 6.3.10 · ISO/IEC 21320-1 subset
.7zapplication/x-7z-compressedIgor Pavlov’s 7z format; LZMA, LZMA2, PPMd, BCJ2
.rarapplication/vnd.rarRegistered with IANA in 2015; RAR 5 since WinRAR 5.0
.tarapplication/x-tarPOSIX.1-1988 ustar · POSIX.1-2001 pax · GNU extensions
.gzapplication/gzipRFC 6713 registered the type in 2012
.xzapplication/x-xzTukaani project; replaced .lzma in 2009
.zstapplication/zstdRFC 8878 registered the type in 2021
.bz2application/x-bzip2No formal specification beyond the reference code
.isoapplication/x-iso9660-imageECMA-119 · ISO 9660, with Joliet and UDF extensions
1979tarVersion 7 Unix ships the tape archiver; its header has no magic number.
1985compressLZW-based .Z files become the Unix default until the patent dispute.
1988POSIX ustarIEEE 1003.1-1988 adds the “ustar” magic, owner names and the 155-byte prefix.
1989ZIPPhil Katz releases PKZIP with an openly documented format.
1992gzipJean-loup Gailly and Mark Adler write a patent-free replacement for compress.
1993RAREugene Roshal releases RAR, with recovery records and solid archives.
1996bzip2Julian Seward’s Burrows: Wheeler compressor beats gzip on text.
19997-ZipIgor Pavlov publishes the 7z format and LZMA.
2001paxPOSIX.1-2001 removes tar’s path, size and timestamp limits with extended headers.
2009xzxz-utils 5.0 makes LZMA2 the standard for Linux source tarballs.
2016ZstandardYann Collet’s zstd 1.0 from Facebook: gzip-like speed, xz-like ratios.
2024xz backdoorA planted backdoor in xz-utils 5.6 is caught days before reaching stable Linux releases.

Common archive conversions

RAR→ZIPopen without WinRARset the repacker to .zip ↑7Z→ZIPsend to anyoneset the repacker to .zip ↑ZIP→7Zsqueeze out more spaceset the repacker to .7z ↑TAR.GZ→ZIPopen Linux files on Windowsset the repacker to .zip ↑ZIP→TAR.GZupload to a serverset the repacker to .tar.gz ↑ISO→ZIPpull files off a disc imageset the repacker to .zip ↑