This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages) This article possibly contains original research. Please improve it by verifying the claims made and adding inline citations. Statements consisting only of original research should be removed. (February 2016) (Learn how and when to remove this message) This article relies excessively on references to primary sources. Please improve this article by adding secondary or tertiary sources. Find sources: "RAR" file format – news · newspapers · books · scholar · JSTOR (October 2008) (Learn how and when to remove this message) (Learn how and when to remove this message)
RAR file format
Filename extension
.rar, .rev, .r00, .r01
Internet media type
application/vnd.rar
Uniform Type Identifier (UTI)com.rarlab.rar-archive
Magic number52 61 72 21 1A 07 00
(RAR 1.5 to 4.0)
52 61 72 21 1A 07 01 00
(RAR 5+) [1]
Size limitation263-1 bytes (almost 8 exbibytes)
Developed byEugene Roshal
Initial releaseMarch 1993; 31 years ago (1993-03)[2]
Type of formatarchive format
Open format?No (decompression source code available, but not free software, due to restriction that it not be used to create RAR-compatible archives)
Websiterarlab.com

RAR is a proprietary archive file format that supports data compression, error correction and file spanning.[3] It was developed in 1993 by Russian software engineer Eugene Roshal and the software is licensed by win.rar GmbH.[3] The name RAR stands for Roshal Archive.

File format

The filename extensions used by RAR are .rar for the data volume set and .rev for the recovery volume set. Previous versions of RAR split large archives into several smaller files, creating a "multi-volume archive". Numbers were used in the file extensions of the smaller files to keep them in the proper sequence. The first file used the extension .rar, then .r00 for the second, and then .r01, .r02, etc.

RAR compression applications and libraries (including GUI based WinRAR application for Windows, console rar utility for different OSes and others) are proprietary software, to which Alexander L. Roshal,[3] the elder brother of Eugene Roshal, owns the copyright. Version 3 of RAR is based on Lempel-Ziv (LZSS) and prediction by partial matching (PPM) compression, specifically the PPMd implementation of PPMII by Dmitry Shkarin.[4]

The minimum size of a RAR file is 20 bytes. The maximum size of a RAR file is 9,223,372,036,854,775,807 (263−1) bytes, which is one byte less than 8 EiB.[5]

Versions

The RAR file format revision history:

Notes
  1. ^ WinRAR 5.0 and RAR for Android refer to this format as RAR4.

Software

Main article: Comparison of file archivers

Operating system support

Software is available for Microsoft Windows (named WinRAR), Linux, FreeBSD, macOS, and Android; archive extraction is supported natively in ChromeOS. WinRAR supports the Windows graphical user interface (GUI); other versions named RAR run as console commands. Later versions are not compatible with some older operating systems previously supported:

Creating RAR files

RAR files can be created legally only with commercial software WinRAR (Windows), RAR[8] for Android, command-line RAR (Windows, MS-DOS, macOS, Linux, and FreeBSD), and other software that has written permission from Alexander Roshal or uses copyrighted code under license from Roshal. The software license agreements forbid reverse engineering.[3]

Third-party software for extracting RAR files

Several programs can unpack the file format.

Other uses of rar

The filename extension rar is also used by the unrelated Resource Adapter aRchive file format.[24][25][26][27][28][29]

See also

References

  1. ^ RAR 5.0 technote
  2. ^ "Interview by correspondence" (in Russian). 1997–2002. Retrieved 26 April 2010.
  3. ^ a b c d win.rar GmbH. "RAR and WinRAR END USER LICENSE AGREEMENT (EULA)". RARLAB. The author and holder of the copyright of the software is Alexander L. Roshal. [...] Neither RAR binary code, WinRAR binary code, UnRAR source or UnRAR binary code may be used or reverse engineered to re-create the RAR compression algorithm, which is proprietary, without written permission.
  4. ^ Christian Scheurer (2006-12-17). "unrarlib FAQ".
  5. ^ "WinRAR description". Retrieved 2013-05-01.
  6. ^ a b c WinRAR Release History; RARsoft.
  7. ^ a b "FreeDOS general questions". Archived from the original on 2014-10-11. Retrieved 2014-10-07.
  8. ^ "RAR - Apps on Google Play". play.google.com. Retrieved 2019-01-31.
  9. ^ "RarLab downloads: freeware UnRAR source and binaries download". RarLab.com. The license states: "The source code of UnRAR utility is freeware".
  10. ^ "7-Zip / Discussion / Open Discussion: 7-Zip 15.06 beta". sourceforge.net. Retrieved 2015-10-24.
  11. ^ PeaZip website with info about RAR5 extraction.
  12. ^ "The Unarchiver". The Unarchiver. Archived from the original on 2017-06-21.
  13. ^ "Another High Priority Project done: The Unarchiver provides free RARv3 extraction tools". Free Software Foundation. Retrieved 2024-02-18.
  14. ^ "The Unarchiver changes". The Unarchiver. Archived from the original on 2017-07-06.
  15. ^ "The Unarchiver source code from 2016 is licensed under the GNU Lesser General Public License v2.1". GitHub. 2011-05-11. Retrieved 2024-02-18.
  16. ^ "Unar and Lsar - Command Line Tools for The Unarchiver". The Unarchiver. Retrieved 2024-02-18., including The Unarchiver source code from 2016.
  17. ^ "MacPaw/XADMaster is licensed under the GNU Lesser General Public License v2.1". GitHub. 2018-03-21. Retrieved 2021-11-23.
  18. ^ a b "Home". UnRarLib.org. UniquE RAR File Library. 2007.
  19. ^ "Features". UnRarLib.org. UniquE RAR File Library. 2002.
  20. ^ "FAQ". UnRarLib.org. UniquE RAR File Library. December 2011.
  21. ^ "List of formats supported by libarchive". GitHub. Retrieved 2021-05-01.
  22. ^ "Support for RAR · Issue #151 · libarchive/Libarchive". GitHub.
  23. ^ Panay, Panos (2023-05-23). "Bringing the power of AI to Windows 11 – unlocking a new era of productivity for customers and developers with Windows Copilot and Dev Home". Windows Developer Blog. Retrieved 2023-05-26.
  24. ^ "The Java EE 5 Tutorial". Retrieved 2017-12-02.
  25. ^ "RAR abbreviation stands for Resource Adapter Archive". Retrieved 2017-12-02.
  26. ^ "Resource Adapter aRchive - How is Resource Adapter aRchive abbreviated?". Retrieved 2017-12-02.
  27. ^ "9 Packaging and Deploying Resource Adapters". Retrieved 2017-12-02.
  28. ^ "Apache Maven RAR Plugin". Retrieved 2017-12-02.
  29. ^ "java - Is Resource Adapter Archive (RAR) the same as Roshal ARchive (RAR)? - Stack Overflow". Retrieved 2017-12-02.