Can you create a RAR file on a Mac?
Yes, but only with RARLAB’s own rar command-line tool, trialware from rarlab.com. Other Mac apps, OpenRAR included, open RAR but can’t create it. For most purposes a ZIP (Finder’s Compress) or a 7z (OpenRAR for Mac or Keka) is the better choice.
Yes, but only one way: RARLAB, the company behind WinRAR, makes a command-line tool called rar for macOS, and it’s the only thing that creates RAR archives on a Mac. It’s trialware, downloaded from rarlab.com, and you use it in Terminal. Everything else, including The Unarchiver, Keka and OpenRAR, can open RAR files but not make them.
Before you go that route, ask whether you need RAR at all. Usually a ZIP or a 7z does the job better, and both are free to make.
Why most apps can’t create RAR
RAR is a proprietary format. RARLAB publishes the source code of UnRAR, its decompressor, and lets other software use it to open RAR archives. The UnRAR licence explicitly forbids using that code to build a RAR compressor. That’s why archive apps on every platform can extract RAR, while creating it remains RARLAB’s territory: WinRAR on Windows, rar on macOS and Linux.
OpenRAR for Mac uses RARLAB’s official UnRAR code to open RAR archives, so it follows the same rule: it doesn’t create RAR.
When RAR is worth it
There are a few genuine reasons to want RAR:
- Someone requires it. A client, a forum or an upload site only accepts RAR.
- The recovery record. RAR can add optional redundant data that lets WinRAR repair an archive slightly damaged in transit or on a failing disk. Neither ZIP nor 7z has this.
- An existing workflow built around WinRAR, where everyone already has the tools.
If none of these applies, skip to the ZIP and 7z alternatives below.
How to create a RAR with RARLAB’s rar tool
- Go to the downloads page on rarlab.com and download RAR for macOS. Pick the build that matches your Mac (Apple silicon/ARM or Intel/x64).
- Double-click the downloaded file to unpack it. You get a
rarfolder containing therarandunrarprograms and their documentation. - Open Terminal and go to that folder, for example:
cd ~/Downloads/rar
- Create an archive of a folder:
./rar a -r ~/Desktop/Holiday.rar ~/Pictures/Holiday
a means “add to archive” and -r includes subfolders. Typing ./rar on its own lists every command and option.
A few useful options:
-hpasks for a password and encrypts both the files and their names, so nothing is visible without the password.-v500msplits the archive into parts of about 500 MB, named.part1.rar,.part2.rar…-rr5%adds a recovery record of 5% of the archive’s size.
To run rar from any folder instead of typing ./rar, copy it to a folder in your PATH. The download includes a readme and the licence terms.
About the licence: rar is trialware, like WinRAR. You can try it, and you’re expected to buy a licence from RARLAB to keep using it. Check rarlab.com for the current terms and price.
Better choices: ZIP or 7z
ZIP: built into macOS, opens everywhere
ZIP is the format to use when you send files to someone. Every Mac, Windows PC, iPhone, iPad and Android phone opens it without an app.
- Select the files or folder in Finder.
- Control-click (or right-click) and choose Compress.
- macOS creates a ZIP next to the original. With several items selected, it’s called
Archive.zip.
Two things to know: Finder’s Compress has no password option, and the ZIP can contain a hidden __MACOSX folder that Windows users see as clutter. For a password, Terminal’s zip -er Holiday.zip Holiday asks for one, but it uses the old ZipCrypto method, which is weak. For strong encryption, use AES-256 in an app (below). How to compress files on a Mac goes into more detail.
7z: smaller archives, strong encryption, free
7z usually compresses as well as RAR or better, supports AES-256 encryption with hidden file names, and can be split into parts. It’s free and open source to create. The catch: the recipient needs an app to open it, just as with RAR (recent Windows 11 opens both natively).
You can make a 7z with:
- OpenRAR for Mac: creates ZIP, 7z and TAR, with optional AES-256 passwords for ZIP and 7z. Free for personal use.
- Keka: free from its website (paid on the Mac App Store). Drop files on it, choose 7z, set a password if needed.
- Terminal:
brew install sevenzip, then7zz a Holiday.7z Holiday. Add-p -mhe=onto set a password and encrypt file names. See 7-Zip for Mac.
Which should you pick?
| You want to… | Use |
|---|---|
| Send files anyone can open | ZIP (Finder’s Compress) |
| Send files privately | 7z or ZIP with AES-256 (OpenRAR for Mac, Keka) |
| Make the smallest archive | 7z |
| Add a recovery record, or someone requires RAR | RAR, with RARLAB’s rar |
RAR vs ZIP vs 7z compares the three formats in detail. And if you received a RAR and need to hand the files on in a friendlier format, convert it to ZIP in your browser.