Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

A lot of people are compressing files with RAR, sending compressed files with RAR and so on.

ZIP is more standard and works on all platforms. Windows users have ZIP included and Linux users have no trouble with that file format.

The tests I did sometime ago showed me that RAR compress better (some kilobytes, no more) but not enough to use a non-free program when ZIP works on almost all computers for free.

Why do some people use RAR rather than ZIP for compressing?

share|improve this question
4  
This question is seeking opinions, and subjective arguments. As such, it should be a community-wiki. – Sampson Jul 16 '09 at 17:27
10  
That isn't the reason for community wiki. – Lance Roberts Jul 16 '09 at 17:41
3  
Actually, I'd like to vote in 7-zip if Ferran does not mind. – nik Jul 16 '09 at 17:54
6  
@Lance It is actually exactly what community wiki is for. I agree with Jonathan, subjective and should be a community wiki. – BinaryMisfit Jul 16 '09 at 18:06
3  
@Lance - any question that doesn't have a one and definite answer should be community wiki. There have been enough discussions on the subject on SO, so check there to see the unofficial policy on CW. – Rook Jul 17 '09 at 12:24

20 Answers 20

up vote 143 down vote accepted

Stop using these WinRAR and WinZip tools -- shift to 7-Zip.

  • It's free
  • available across platforms, as command-line and GUI
  • available in portable form across platforms
  • has good compression ratio (check the site or try for yourself)
  • has no pop-up pain
  • allows you to use most of the other formats
  • it is also open-source
  • can be used in commercial and personal development (within GNU LGPL constraints)
  • live support forum at Sourceforge
  • Vista 32-bit compatibility
  • multiple languages supported

The only compression format I find not supported for extraction is ACE.

References.


I am told that my opening sentence to this answer feels 'markety'.

I take it with all the good intention, because
without being paid for this free software or
being in any way associated with it or, the people making it,
I strongly feel the desire to push it to everyone I remotely know.

This comes from my innumerable encounters over the years with
people using these other tools and muttering about incompatibilities,
annoying pop-ups and many other problems, yet, somehow
continuing to miss 7-Zip when it arrived on the scene.

I have since decided to take every opportunity to publicize 7-Zip.

share|improve this answer
36  
This doesn't quite answer the question: Compressing with RAR vs ZIP. – R. Martinho Fernandes Jul 16 '09 at 17:49
2  
It is a well-formed and informative answer, so I would go against downvoting it, though. – R. Martinho Fernandes Jul 16 '09 at 18:00
7  
7-Zip is also VERY good at using several processors, which Winrar and Winzip are neither very good at. – Stefan Thyberg Jul 19 '09 at 16:28
4  
i would upvote this post if it weren't for the poor style, starting a post with telling folks what to use and what not is insulting. make your recommendation and respect the readers' intelligence to make up their own mind ... as for WinRAR, there are still scenarios where you achieve better compression, so it is still a viable alternative. 7-Zip is superior to Zip but not necessarily to RAR. – Molly7244 Nov 4 '09 at 20:37
4  
Besides the style that can be badly taken, I don't especially like the fact that the question "rar or zip, which is better" is answered with "7zip". So ok, we know, 7 zip is loved by hundreds (probably allegedly), and that explains why the upvotes are so numerous. But it's a pity that the preferred answer to this question is finally a bit off-topic. – Gnoupi May 24 '10 at 14:27

It's HARDCORE!

Really.
That's most RAR users' reason for preferring RAR: Part of the scene. A standard. A sign of doing things like the black-arts-pros do it.

None of these are valid reasons. There was an argument that RAR was faster or that RAR achieved smaller sizes, and this holds true versus ZIP files. But the same people will insist on splitting RAR archives, and creating non-MD5 sums and generating an extra PAR parity file when in the end, they're going to use a Torrent and not Usenet to move the files. In torrents there's no reason for any of that. In fact there's a strong reason not to compress, so the file can be used while being seeded.

But as you can see from here already, the value of having a good version or implementation of the compressor and decompressor can not be understated, and WinRAR just fails that test.

7-Zip takes that cake, and generally does better for size and speed. BZip2 really should be in the running, but lots of people don't have a good GUI implementation. The command-line is great of course, but right clicking like 7-Zip, or drag-and-drop like StuffIt is just so much easier.

Here's someone's 2002 measurements that seem to put RAR ahead. But multi-threading and memory use are allowing for changes in this area that seem to leave RAR behind.

P.S. The worst example of compression used badly is when I see image, video and audio files that are already compressed with a lossy compression like JPEG, DivX, or MP3 further "compressed" with any lossless format. I'm sorry but it should be obvious that in most cases you're not reducing the file to less than 95% of the original size, and in that case you're just wasting everyone's time and efforts.

share|improve this answer
    
Hmm, RAR is still being actively developed isn't it? So what has multi-threading and memory got to do with leaving RAR behind? – Pacerier May 20 '15 at 8:40

A point against RAR is that there is (as far as I know) no free software that can compress it. As current versions of WinRAR can decompress 7z (and 7z can decompress rar), and 7z usually compresses better than zip (and often better than rar), I tend to send those who send me RAR files 7Z files back :)

All the others get plain old .zip files of course. Maybe they learn from it ;)

share|improve this answer
4  
This is a good reason to not use RAR at all. And, use 7-zip to open RAR when you have no other alternative archive available. – nik Jul 16 '09 at 17:43

One feature about WinRAR is it preserves the original creation dates of folders on extraction.

Both rar and .zip preserve folder creation date/time but it seems only winrar preserves that info on extraction

share|improve this answer

RAR files don't have the limits that ZIP files do. I think ZIP files are limited to containing 65536 files and each file and the total size of the archive is limited to 2GB. Thee is ZIP64, but it is not an open file format.

share|improve this answer
1  
7-zip (not to be confused with ZIP) supports up to 16000000000 GB files and I do not know of any file count limits -- would be happy to learn that. – nik Jul 16 '09 at 17:46

I use Zip because it's available and supported on the machines we have at work, and everyone can work with Zip files.

share|improve this answer

If you work in a Windows environment, then Zip is the best thing to use for compatibility reasons. It may not compress as well as the others, but since support is baked in to XP/Vista/etc, you can be sure that the receiver of a zip file will be able to open it. Especially in a corporate environment, this leads to far fewer instances of 'what do I do with this?'.

If the compression ratio REALLY matters, and you can get the receiver to install something else, then both WinRAR and 7-Zip appear to be able to beat zip in many cases.

But seriously - when does the few percent extra compression they give you matter anymore? Images, sound and video are already compressed for most people (have you EVER worked with raw video at all?), so you aren't going to compress them. And everything else is pretty small by comparison.

With bandwidth being what it is these days, the relatively small amount of extra compression that a non-zip compressor gives you seldom makes up for the compatibility issues.

share|improve this answer

Another thing that RAR has over Zip: Authenticity information. I can "sign" my RAR Archive and then the receiver can see a) who created it, b) what the original filename was, c) when it was created. Additionally, Archive Locking means that the archive cannot be modified - I do not know if Zip can do that, haven't checked. Same goes for recovery records, not sure if Zip/7-Zip support them.

Rar Auth Example

Also, what I like about Rar vs. 7-Zip is the Command Line support. Last time I checked 7-zip, the command line was lacking. I think it was about appending the current date to the filename.

share|improve this answer
    
7z command line has a lot of great features, for example you can create reverse delta archives (i. e. delete all files from archive YESTERDAY that are the same in archive TODAY), or give different kinfs of masks. You cannot append the current date to the filename, but since the filename is from your .cmd file anyway, you can append it using cmd's date variable. – mihi Sep 3 '09 at 17:01
2  
In fact, the only reason i use 7-zip is because Rar doesnt have the command line support i need. – RCIX Sep 9 '09 at 4:06
    
I think recovery records are the big thing that RAR has that ZIP doesn't, at least as far as file sharing goes. As the file passes through 100 hands, if it becomes corrupted at some point you can still repair it. – endolith Feb 1 '10 at 16:07
    
What does this "Authenticity verification" actually check or prove? – Samuel Edwin Ward Aug 21 '12 at 18:50
    
@Samuel The Name, Author and Date of when the archive was created, and that no one has tampered with it. No idea if it has been cracked, although a cracked WinRAR license can be used to spoof the author. So it's a nice touch, but it's not a SHA-256 hash. – Michael Stum Aug 21 '12 at 21:10

Advantage of RAR over ZIP: GMail doesn't complain when you send executable files (or any other kind of files) in RAR files, but does when you do it in ZIPped files.

share|improve this answer
    
I really can't see why this is downvoted - I find it a very good reason for using rar over zip. – Rook Nov 4 '09 at 22:05
4  
I rarely send any compressed files through email, but when I do, all you need to do to send zip files is tack on a fake .txt extension (so the filename ends up being something like compressedstuff.zip.txt) and tell the person I am sending it to to make sure to remove that. – Jason Bunting Dec 4 '09 at 6:50
    
A more simple solution is to use something like Dropbox where you don't have a size limit or executable attachment problem. – Cole Johnson May 7 '14 at 1:24
    
Just remove the '.exe' extension, archive it and send it. – Eddie B Dec 15 '14 at 19:53

RAR has the Solid Archive option which concatenate files together before compression. This allows to compress patterns that appear only once per file but are repeated among many files. Very likely with XML files for example.

ZIP does not have such an option.

On Unix platform though, you can TAR your files first before compressing the TAR which will give you roughly the same behavior than RAR with Solid Archive.

7-Zip does support a similar option when using the 7Z compression.

I agree though that ZIP is so standard that it should always be your first option for communication with the outside world. If you can agree with you peers on a better format like RAR or 7ZIP, then do it.

share|improve this answer

A point against RAR is that there is (as far as I know) no free software that can compress it.

Just to make a comment on this point, the fully-functional command line implementation of RAR is free. (it compresses, it decompresses, it makes summer dresses.. okay not that last one, but it's just as, if not more, powerful than the GUI non-free version).

share|improve this answer

You can break up a RAR archive into multiple small parts and send each part separately, for example. the archive cannot be fully restored without all parts, so it is handy.

Aside from this, I don't know of any real advantages of RAR of Zip.

share|improve this answer
    
I'll choose to create multiple smaller archives (that are not RAR). – nik Jul 16 '09 at 17:44
    
But say you have a 50 MB per file limit and you're uploading large archives. What are you going to do if those archives contain large files even when compressed? – RCIX Jul 17 '09 at 8:05
3  
@RCIX That's the beauty of it... you can RAR a 50 MB file into an archive, then break up the archive into 50x1MB files named file.r00 to file.r48 (+file.rar) and the parts can be assembled together to make up the original archive =8-) – Yuval Jul 17 '09 at 9:42
4  
Ahhh, this is a non-argument since you can do this with zip files too... I know that 7zip & winzip both support splitting zip files into whatever size chunks you want. – Alconja Jul 21 '09 at 22:52
    
@Alconja Is that a fact? wow, had no idea it was possible for Zip. – Yuval Jul 22 '09 at 9:06

RAR usually compresses much better than ZIP. Of course it depends heavily on the data, but most of the time fast RAR is similar to ZIP normal, and RAR best is much better.

Extracting RARs is already well supported on platforms other than Windows: check out 7-zip.

share|improve this answer
    
Really? I've found that RAR and 7Z are generally SLOWER than ZIP. Of course they usually have better compression ratios, but at the expense of speed. – davr May 10 '10 at 18:07
2  
@davr: I meant the fast RAR compression setting yields sizes similar to normal ZIP compression. If you sacrifice speed for size, yes, it sure gets slower. – R. Martinho Fernandes May 15 '10 at 16:31

Rar has mostly better compression, and is supposed to be better with compressing errors.

share|improve this answer

I believe bzip2 has the best compression of the lot, but it is very slow. 7-zip is my choice on Windows but its icon is horrible; it looks like it's from Windows 95!

I love the standard Linux (Ubuntu, at least) file archiver. When you extract a file, if there's one file or folder in it, it is extracted to the current directory, otherwise a sub folder. Saves all those folder-in-folder situations, where on Windows I constantly check the contents of the zip before extracting.

share|improve this answer
    
The 7-Zip GUI is pretty poor as well, but it's open source so I can at least theoretically do something about it. – therefromhere Jul 19 '09 at 9:15
    
Don't ever use the 7z GUI. Right click on the .zip file (or the selection of files you want to compress). Why waste time? – MGOwen Sep 3 '09 at 3:09
    
I was talking about extracting files. Often archives contain only one folder, so using "extract to folder" is kinda silly. You have to open the GUI to check what the structure is. On Linux, you just do "Extract" and it works. – DisgruntledGoat Sep 4 '09 at 12:30
    
@DisgruntledGoat good point, why doesn't 7z behave like Ubuntu in this case? I can't think of a situation where redundant-folder-in-folder is desirable. – MGOwen Sep 7 '09 at 4:18
    
You'd have to ask the developers of 7-zip ;) I guess they haven't seen this behaviour. – DisgruntledGoat Sep 7 '09 at 11:37

7zip (generally) has the highest compression ratio but consequently, the slowest. i have ever extracted 4GB wiki data exploded to about 120GB. zip is omnipresent, one of the oldest; anybody, anything, anywhere can handle it, despite in UNIX world, tar + gzip (or bzip) combination is much more preferred. rar has got fair compromises between speed, features/handling and compression ratio, why is it popular among (win) hackers, nobody know though, its a kind of attitude.

share|improve this answer

I use RAR, because the people I work with use RAR, and RAR works just fine for me and my needs.

share|improve this answer

WinRar is such a great tool, so I use RAR when I can. But, if I'm seeking interoperability with other people who might not know about RAR, I use ZIP of course. Fortunately, WinRar can do ZIP as well. :)

share|improve this answer
1  
7-zip can open RAR and work with ZIP across multiple platforms using command-line or GUI. Have you tried it? – nik Jul 16 '09 at 17:52
    
No, but I will check it out! – JP Alioto Jul 16 '09 at 18:00
    
@JP, thanks.... – nik Jul 16 '09 at 18:26

Q: Why do some people use RAR rather than ZIP for compressing?

A: Because those people also care about sometime decompressing the compressed file. If I have some time and energy I'll try pit latest 7zip and WinRAR against each other with normal & best settings taking time of compression and decompression of the resulting files. The resulting sizes are generally in similar ballpark so that metric doesn't matter as much (especially when you have decent speed internet available). Atleast couple years ago RAR decompressed twice as fast . v4.0 promises 30% improvement to decompression speed.

I'll update this answer when I have some numbers on hand.

edit: Buried in the comments above was this important thing: "Last I checked 7z was, like tar.gz/tar.bz2, extremely slow when it comes to extracting a single file out of an archive as everything before that file had to be processes for the file to be extractable. rar/zip don't have that problem"

I recall noticing this problem also but I will have to verify on latest 7zip to be sure it's not a problem related to 7z extraction in winrar.

share|improve this answer

I do use 7-zip It compresses ZIP on par with RAR e.g following will even compress mp4 video or jpeg image a little bit(probably metadata):

(7z a -tzip -mfb=258 -mpass=15 -mfb=258 file.zip @list_of_files_no_dir5)

It also has better method caled 7z which is significantly better (and slower) than RAR.

PS it also extracts RAR, so no big loss going with opensource in place of expensive...

share|improve this answer

You must log in to answer this question.

protected by nhinkle Jan 2 '12 at 23:26

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged .