How to open a password-protected RAR, 7z or ZIP
You need the password: open the archive in an app that supports encryption and type it when asked. OpenRAR opens protected RAR, 7z and ZIP, in the browser at openrar.app or as a Mac app, including archives with encrypted file names. Without the password, the files can’t be decrypted.
To open a password-protected archive, you need its password. Open the RAR, 7z or ZIP file in an app that supports encrypted archives, type the password when it asks, and extract as usual. In the browser, openrar.app does this for protected RAR, 7z and ZIP files without uploading anything; OpenRAR for Mac and other desktop apps do it too, including for archives of several gigabytes. If you don’t have the password, there’s no switch that turns the protection off: the files are encrypted, and the password is the key.
Where to find the password
Most protected archives you receive come with their password somewhere nearby:
- The download page or post the archive came from, often in the description or a text file next to the link.
- The email or message that delivered it, or a separate one: careful senders share the password through a different channel.
- The person who made it. If a colleague or client sent it, ask them.
Passwords are case-sensitive. When copying one, watch for a space at the start or end, and if you type it, check the keyboard layout (a password set on a French or German keyboard can be typed wrongly on a US one).
What you’ll see when you open it
Protected archives behave in one of two ways, depending on how they were made.
File names visible
You can open the archive and see the list of files, names, sizes and folders, but extracting asks for the password. This is how every protected ZIP works: the ZIP format encrypts file contents but never their names. RAR and 7z archives work this way too unless the creator chose to hide names.
File names encrypted
The app asks for the password before it shows anything. In WinRAR and 7-Zip, the option is called Encrypt file names. With it, even the list of files is protected, so nobody can see what the archive contains without the password. Both RAR and 7z support this; ZIP doesn’t.
If you see this prompt and enter a wrong password, the app usually can’t show the file list at all, so the error may look like a damaged archive.
How to open it, by tool
In the browser: protected RAR, 7z and ZIP
Drop the archive on openrar.app, or click the page and choose it. OpenRAR asks for the password; type it, and the page lists the files and extracts them. If the file names are encrypted, the password prompt comes first, before any list. This works for RAR, 7z and ZIP (AES-256 or ZipCrypto), and the password and the files stay on your device. A protected archive can be up to about 2 GB on a computer and unpack to about 1.6 GB; for anything bigger, use a desktop app. For ZIP specifics on a Mac, see open a password-protected ZIP on Mac.
On a Mac: protected RAR, 7z and ZIP
OpenRAR for Mac opens password-protected RAR (including RAR with encrypted file names), 7z, and ZIP with either AES-256 or ZipCrypto encryption, including archives of several gigabytes that are too large for the browser. It’s free for personal use. The Unarchiver and Keka also handle protected archives, and so does BetterZip. Mac archive apps compared goes through each.
In Terminal
unar archive.rar asks for the password when the archive needs one. 7zz x archive.7z does the same for 7z. Both accept the password on the command line too (-p), but that leaves it in your shell history, so letting them prompt is better. See open RAR and 7z from Terminal.
On Windows
WinRAR and 7-Zip both ask for the password when you extract. Recent versions of Windows 11 open RAR and 7z in File Explorer, but protected archives are often better handled in one of those two apps.
“Wrong password” when it’s right
If you’re sure the password is correct:
- Paste it into a text editor first to check for hidden spaces or a line break.
- Try typing it rather than pasting, or the reverse.
- Check for look-alike characters: capital I and lower-case l, zero and the letter O.
- Download the archive again. A damaged or incomplete archive can fail the password check or stop with a checksum error. See what to do with a corrupt RAR file.
- Try another app. Older tools can’t open RAR5 encryption or AES-encrypted ZIP files, and may report the wrong error.
If the password is lost
There’s no legitimate shortcut. RAR5 and 7z use AES-256 encryption, and the key is derived from the password in a way designed to be slow to guess. That’s the whole point: if the protection could be bypassed, it wouldn’t protect anything. Apps that promise to “remove” a RAR password can’t do it without the password.
Password recovery tools do exist. They try large numbers of guesses, which only works when the password is short or simple, and can take a very long time otherwise. Use them only on archives that are yours, such as your own backup whose password you’ve forgotten. Trying to get into someone else’s protected archive is a different matter.
For an archive someone sent you, the realistic route is to ask them for the password or for an unprotected copy.
A word on safety
Password protection hides an archive’s contents from antivirus scanners as well as from people. That’s fine for files you expect from someone you trust. Be wary of protected archives that arrive unexpectedly, especially with the password in the same message urging you to open them: it’s a common way to deliver malware. Are RAR files safe? explains what to look out for.
Protecting your own archives
If you’re the one sending files, 7z with AES-256 and encrypted file names is the strongest common choice; a ZIP with AES-256 is more widely compatible, but its file names stay visible. OpenRAR for Mac and Keka both create password-protected 7z and ZIP archives. Use a long, unique password and send it separately from the archive. RAR vs ZIP vs 7z compares the formats’ encryption.