HOME

TheInfoList



OR:

RAR is a proprietary
archive file format In computing, an archive file stores the content of one or more files, possibly compressed, with associated metadata such as file name, directory structure, error detection and correction information, commentary, compressed data archives, stor ...
that supports
data compression In information theory, data compression, source coding, or bit-rate reduction is the process of encoding information using fewer bits than the original representation. Any particular compression is either lossy or lossless. Lossless compressi ...
,
error correction In information theory and coding theory with applications in computer science and telecommunications, error detection and correction (EDAC) or error control are techniques that enable reliable delivery of digital data over unreliable communi ...
and file spanning. It was developed in 1993 by Russian software engineer Eugene Roshal and the software is licensed by ''win.rar GmbH''. The name ''RAR'' stands for ''Roshal Archive''.


File format

The
filename extension A filename extension, file name extension or file extension is a suffix to the name of a computer file (for example, .txt, .mp3, .exe) that indicates a characteristic of the file contents or its intended use. A filename extension is typically d ...
s 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 WinRAR is a trialware file archiver utility, 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 archive ...
application for Windows, console rar utility for different OSes and others) are proprietary software, to which Alexander L. Roshal, the elder brother of Eugene Roshal, holds the copyright. Version 3 of RAR is based on Lempel-Ziv ( LZSS) and
prediction by partial matching Prediction by partial matching (PPM) is an adaptive statistical data compression technique based on context modeling and prediction. PPM models use a set of previous symbols in the uncompressed symbol stream to predict the next symbol in the str ...
(PPM) compression, specifically the PPMd implementation of PPMII by Dmitry Shkarin. 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.


Versions

The RAR file format revision history: * 1.3 – the first public version, does not have the "Rar!" signature. * 1.5 – changes are not known. * 2.0 – released with WinRAR 2.0 and Rar for MS-DOS 2.0; features the following changes: ** Multimedia compression for true color bitmap images and uncompressed audio. ** Up to 1 MB compression dictionary. ** Introduces archives data recovery protection record. * 2.9WinRAR 5.0 and RAR for Android refer to this format as RAR4. – released in WinRAR version 3.00. Feature changes in this version include: ** File extensions is changed from ''.rar, .r00, .r01, etc.'' to ''.part001.rar, .part002.rar, etc.'' ** Encryption of both file data and file headers. ** Improves compression algorithm using 4 MB dictionary size, Dmitry Shkarin's PPMII algorithm for file data. ** Optional creation of "recovery volumes" (.rev files) for
error correction In information theory and coding theory with applications in computer science and telecommunications, error detection and correction (EDAC) or error control are techniques that enable reliable delivery of digital data over unreliable communi ...
, which can be used to reconstruct missing files in a volume set. ** Support for archive files larger than 9 GB. ** Support for
Unicode Unicode or ''The Unicode Standard'' or TUS is a character encoding standard maintained by the Unicode Consortium designed to support the use of text in all of the world's writing systems that can be digitized. Version 16.0 defines 154,998 Char ...
file names stored in
UTF-16 UTF-16 (16-bit Unicode Transformation Format) is a character encoding that supports all 1,112,064 valid code points of Unicode. The encoding is variable-length as code points are encoded with one or two ''code units''. UTF-16 arose from an earli ...
little endian format. * 5.0 – supported by WinRAR 5.0 (released April 2013) and later. Changes in this version: ** Maximum compression dictionary size increased to 1 GB (default for WinRAR 5.x is 32 MB and 4 MB for WinRAR 4.x). ** Maximum path length for files in RAR and ZIP archives is increased up to 2048 characters. ** Support for
Unicode Unicode or ''The Unicode Standard'' or TUS is a character encoding standard maintained by the Unicode Consortium designed to support the use of text in all of the world's writing systems that can be digitized. Version 16.0 defines 154,998 Char ...
file names stored in
UTF-8 UTF-8 is a character encoding standard used for electronic communication. Defined by the Unicode Standard, the name is derived from ''Unicode Transformation Format 8-bit''. Almost every webpage is transmitted as UTF-8. UTF-8 supports all 1,112,0 ...
format. ** Faster compression and decompression. ** Multicore decompression support. ** Greatly improves recovery. ** Optional AES encryption increased from 128-bit to 256-bit. ** Optional 256-bit BLAKE2 file hash instead of a default 32-bit
CRC32 Computation of a cyclic redundancy check is derived from the mathematics of polynomial division, modulo two. In practice, it resembles long division of the binary message string, with a fixed number of zeroes appended, by the "generator poly ...
file checksum. ** Optional duplicate file detection. ** Optional
NTFS NT File System (NTFS) (commonly called ''New Technology File System'') is a proprietary journaling file system developed by Microsoft in the 1990s. It was developed to overcome scalability, security and other limitations with File Allocation Tabl ...
hard and symbolic links. ** Optional Quick Open Record. Rar4 archives had to be parsed before opening as file names were spread throughout the archive, slowing operation particularly with slower devices such as optical drives, and reducing the integrity of damaged archives. Rar5 can optionally create a "quick open record", a special archive block at the end of the file that contains the names of files included, allowing archives to be opened faster. ** Removes specialized compression algorithms for Itanium executables, text, raw audio (WAV), and raw image (BMP) files; consequently some files of these types compress better in the older RAR (4) format with these options enabled than in RAR5. * 5.0+ – partially supported by WinRAR 5.0 and later. Fully supported by WinRAR 7.0 (released February 2024) and later. Changes in this version: ** Compression dictionary up to 64 GB. ** Improved compression by the addition of "Alternate search algorithm". ** Maximum path length limit increased from 2047 to 65535 characters. ;Notes


Software


Native operating system support

RARlab's native software is available for
Microsoft Windows Windows is a Product lining, product line of Proprietary software, proprietary graphical user interface, graphical operating systems developed and marketed by Microsoft. It is grouped into families and subfamilies that cater to particular sec ...
(named WinRAR),
Linux Linux ( ) is a family of open source Unix-like operating systems based on the Linux kernel, an kernel (operating system), operating system kernel first released on September 17, 1991, by Linus Torvalds. Linux is typically package manager, pac ...
,
FreeBSD FreeBSD is a free-software Unix-like operating system descended from the Berkeley Software Distribution (BSD). The first version was released in 1993 developed from 386BSD, one of the first fully functional and free Unix clones on affordable ...
,
macOS macOS, previously OS X and originally Mac OS X, is a Unix, Unix-based operating system developed and marketed by Apple Inc., Apple since 2001. It is the current operating system for Apple's Mac (computer), Mac computers. With ...
, and Android; archive extraction is supported natively in
ChromeOS ChromeOS, sometimes styled as chromeOS and formerly styled as Chrome OS, is an operating system designed and developed by Google. It is derived from the open-source operating system and uses the Google Chrome web browser as its principal user ...
. WinRAR and RAR for Android support the
graphical user interface A graphical user interface, or GUI, is a form of user interface that allows user (computing), users to human–computer interaction, interact with electronic devices through Graphics, graphical icon (computing), icons and visual indicators such ...
(GUI); other versions named RAR run as console commands.


Creating RAR files

RAR files can only be created with proprietary
WinRAR WinRAR is a trialware file archiver utility, 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 archive ...
(Windows), RAR for Android, command-line RAR (available for Windows, 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.


Third-party software for extracting RAR files

Several programs can unpack the file format. * RARLAB distributes the C++ source code and binaries for a command-line unrar program. The license permits its use to produce software capable of unpacking, but not creating, RAR archives, without having to pay a fee. It is not a
free software Free software, libre software, libreware sometimes known as freedom-respecting software is computer software distributed open-source license, under terms that allow users to run the software for any purpose as well as to study, change, distribut ...
license. *
7-Zip 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 file, archive forma ...
, a
free and open-source Free and open-source software (FOSS) is software available under a Software license, license that grants users the right to use, modify, and distribute the software modified or not to everyone free of charge. FOSS is an inclusive umbrella term ...
program, starting from 7-Zip version 15.06 beta can unpack RAR5 archives, using the RARLAB unrar code. * PeaZip is a free RAR unarchiver, licensed under the LGPLv3-or-later and via 7-Zip can unpack RAR archives, using RARLAB unrar. * The Unarchiver is a proprietary freeware software unarchiver for Mac for RAR and other formats. It was previously
free software Free software, libre software, libreware sometimes known as freedom-respecting software is computer software distributed open-source license, under terms that allow users to run the software for any purpose as well as to study, change, distribut ...
licensed under the LGPLv2.1-or-later, up to version 3.11.1 (released 2016), which at the time provided a free-software implementation of extraction of RAR versions up to RAR5. There is a free software (LGPLv2.1-or-later) command-line version, , forked from 2016, which runs on Mac, Windows, and Linux. * UNRARLIB (UniquE RAR File Library) was an obsolete free software unarchiving library called "unrarlib", licensed under the GPLv2-or-later. It could only decompress archives created by RAR versions prior to 2.9; archives created by RAR 2.9 and later use different formats not supported by this library. The original development-team ended work on this library in 2007. * libarchive, a free and open-source library for reading and writing a variety of archive formats, with partial support for all RAR versions, including RAR5. The code was written from scratch using RAR's “technote.txt” format description. *
Microsoft Microsoft Corporation is an American multinational corporation and technology company, technology conglomerate headquartered in Redmond, Washington. Founded in 1975, the company became influential in the History of personal computers#The ear ...
announced (May 23, 2023) native support for additional archive formats in
Windows 11 Windows 11 is a version of Microsoft's Windows NT operating system, released on October 5, 2021, as the successor to Windows 10 (2015). It is available as a free upgrade for devices running Windows 10 that meet the #System requirements, Windo ...
, including tar, 7-zip, rar, gz and many others using the libarchive open-source project. Recently (July 16, 2023), there have been Insider builds that have native support. It’s said to come out in version 23H2.


Other uses of ''rar''

The filename extension ''rar'' is also used by the unrelated Resource Adapter aRchive file format.


See also

* .cbr *
List of archive formats This is a list of file formats used by file archiver, archivers and data compression, compressors used to create Archive file, archive files. Archive formats by purpose Archive formats are used for backups, mobility, and archiving. Many archive ...
* Comparison of archive formats *
Comparison of file archivers 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 ...
*
Data corruption Data corruption refers to errors in computer data that occur during writing, reading, storage, transmission, or processing, which introduce unintended changes to the original data. Computer, transmission, and storage systems use a number of meas ...
, Bit rot, Disc rot


External links

*
RARLAB FTP download website
current and old versions of WinRAR and RAR


References

{{DEFAULTSORT:Rar Computer-related introductions in 1993 Archive formats Russian inventions