RAR (file format)

Last updated
RAR file format
Filename extension
.rar, .rev, .r00, .r01
Internet media type
application/vnd.rar
Uniform Type Identifier (UTI) com.rarlab.rar-archive
Magic number 52 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 by Eugene Roshal
Initial releaseMarch 1993;31 years ago (1993-03) [2]
Type of format archive 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)
Website rarlab.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.

Contents

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

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

Related Research Articles

ARJ is a software tool designed in 1991 by Robert K. Jung for creating high-efficiency compressed file archives. ARJ is currently on version 2.86 for MS-DOS and 3.20 for Microsoft Windows and supports 16-bit, 32-bit and 64-bit Intel architectures.

<span class="mw-page-title-main">WinZip</span> File compression software

WinZip is a trialware file archiver and compressor for Microsoft Windows, macOS, iOS and Android. It is developed by WinZip Computing, which is owned by Alludo. The program can create archives in Zip file format, unpack some other archive file formats and it also has various tools for system integration.

ZIP is an archive file format that supports lossless data compression. A ZIP file may contain one or more files or directories that may have been compressed. The ZIP file format permits a number of compression algorithms, though DEFLATE is the most common. This format was originally created in 1989 and was first implemented in PKWARE, Inc.'s PKZIP utility, as a replacement for the previous ARC compression format by Thom Henderson. The ZIP format was then quickly supported by many software utilities other than PKZIP. Microsoft has included built-in ZIP support in versions of Microsoft Windows since 1998 via the "Plus! 98" addon for Windows 98. Native support was added as of the year 2000 in Windows ME. Apple has included built-in ZIP support in Mac OS X 10.3 and later. Most free operating systems have built in support for ZIP in similar manners to Windows and macOS.

Info-ZIP is a set of open-source software to handle ZIP archives. It has been in circulation since 1989. It consists of 4 separately-installable packages: the Zip and UnZip command-line utilities; and WiZ and MacZip, which are graphical user interfaces for archiving programs in Microsoft Windows and classic Mac OS, respectively.

<span class="mw-page-title-main">7-Zip</span> Open-source file archiver

7-Zip is a free and open-source file archiver, a utility used to place groups of files within compressed containers known as "archives". It is developed by Igor Pavlov and was first released in 1999. 7-Zip has its own archive format called 7z, but can read and write several others.

<span class="mw-page-title-main">4DOS</span> Command line interpreter

4DOS is a command-line interpreter by JP Software, designed to replace the default command interpreter COMMAND.COM in Microsoft DOS and Windows. It was written by Rex C. Conn and Tom Rawson and first released in 1989. Compared to the default, it has a large number of enhancements.

<span class="mw-page-title-main">StuffIt Expander</span> File decompressor software utility

StuffIt Expander is a proprietary, freeware, closed source, decompression software utility developed by Allume Systems. It runs on the classic Mac OS, macOS, and Microsoft Windows. Prior to 2011, a Linux version had also been available for download.

<span class="mw-page-title-main">WinRAR</span> File archiver

WinRAR is a trialware file archiver utility for Windows, developed by Eugene Roshal of win.rar GmbH. It can create and view archives in RAR or ZIP file formats, and unpack numerous archive file formats. To enable the user to test the integrity of archives, WinRAR embeds CRC32 or BLAKE2 checksums for each file in each archive. WinRAR supports creating encrypted, multi-part and self-extracting archives.

<span class="mw-page-title-main">LHA (file format)</span>

LHA or LZH is a freeware compression utility and associated file format. It was created in 1988 by Haruyasu Yoshizaki, a doctor and originally named LHarc. A complete rewrite of LHarc, tentatively named LHx, was eventually released as LH. It was then renamed to LHA to avoid conflicting with the then-new MS-DOS 5.0 LH command. The original LHA and its Windows port, LHA32, are no longer in development because Yoshizaki is busy at work.

In computing, ACE is a proprietary data compression archive file format developed by Marcel Lemke, and later bought by e-merge GmbH. The peak of its popularity was 1999–2001, when it provided slightly better compression rates than RAR, which has since become more popular.

The following tables compare general and technical information for a number of file archivers. Please see the individual products' articles for further information. They are neither all-inclusive nor are some entries necessarily up to date. Unless otherwise specified in the footnotes section, comparisons are based on the stable versions—without add-ons, extensions or external programs.

A proprietary file format is a file format of a company, organization, or individual that contains data that is ordered and stored according to a particular encoding-scheme, designed by the company or organization to be secret, such that the decoding and interpretation of this stored data is easily accomplished only with particular software or hardware that the company itself has developed. The specification of the data encoding format is not released, or underlies non-disclosure agreements. A proprietary format can also be a file format whose encoding is in fact published, but is restricted through licences such that only the company itself or licensees may use it. In contrast, an open format is a file format that is published and free to be used by everybody.

<span class="mw-page-title-main">Self-extracting archive</span> Computer executable program

A self-extracting archive is a computer executable program which combines compressed data in an archive file with machine-executable code to extract the information. Run on a compatible operating system, there is no need for a suitable extractor in the target computer to extract the data. The executable part of the file is known as a decompressor stub.

<span class="mw-page-title-main">PeaZip</span> File archive computer program

PeaZip is a free and open-source file manager and file archiver for Microsoft Windows, ReactOS, Linux, MacOS and BSD by Giorgio Tani. It supports its native PEA archive format and other mainstream formats, with special focus on handling open formats. Version 9.4.0 supported 234 file extensions.

UnRAR is the name of two different command-line applications for extracting RAR file archives.

Eugene Roshal is a Russian software engineer.

Rawzor is a proprietary lossless image compression software which compresses camera raw images without any loss in image quality or meta-information. It is available for Microsoft Windows and Mac OS X.

FreeArc is a free and open-source high-performance file archiver developed by Bulat Ziganshin. The project is presumably discontinued, since no information has been released by the developers since 2016 and the official website is down.

References

  1. RAR 5.0 technote
  2. "Interview by correspondence" (in Russian). 1997–2002. Retrieved 26 April 2010.
  3. 1 2 3 4 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. 1 2 3 WinRAR Release History; RARsoft.
  7. 1 2 "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. 1 2 "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.