This article was co-authored by wikiHow staff writer, Hannah Dillon. Hannah Dillon is a Technology Writer and Editor at wikiHow. She graduated with a B.A. in Journalism from North Dakota State University in 2013 and has since worked in the video game industry as well as a few newspapers. From a young age Hannah has cultivated a love for writing and technology, and hopes to use these passions in tandem to help others in the articles she writes for wikiHow.
This article has been fact-checked, ensuring the accuracy of any cited facts and confirming the authority of its sources.
This article has been viewed 934,824 times.
Learn more...
A RAR file is a compressed archive that can contain hundreds of other files. RAR is popular because of how much the file size can be compressed, as well as the powerful encryption that is built in. In this article, we'll teach you how to add a password to an already existing RAR file on Windows, as well as how to password-protect a RAR file during creation on Windows and Mac. Read on to learn how.
Password-Protecting a RAR File
If you have a RAR file you've already created, you can use WinRAR on Windows to add a password to it via the Tools menu. Otherwise, create a new RAR file using WinRAR on Windows or SimplyRAR on Mac, and add a password when you create the file.
Steps
-
Download and install WinRAR, if you don't have it already. This program allows you to create RAR archives that you can protect with a password. WinRAR technically isn't free, but you can use the trial version indefinitely (though the app will nag you to purchase a license after the trial period is over). You can download WinRAR from win-rar.com.
-
Double-click your RAR file. This will open it in the WinRAR interface.Advertisement
-
Click Tools > Convert archives. Alternatively, you can also press Alt+Q to open the "Convert archives" window.
-
Click Compression…. It's under the "Conversion options" header, on the right side of the screen.
-
Click Set password…. It's near the bottom of the window, on the right-hand side.
-
Enter your password. Enter it a second time to confirm it. You can check the "Show password" box to see the characters as you type them.
- For password creation tips, check out How to Create a Secure Password.
-
Check the "Encrypt file names" box. This will make it so that no one can see the names of the files contained in the RAR file until they unlock it with the password.
-
Click OK. Then, click OK in the "Archive name and parameters" window to create your new RAR file.
- Once you've added the password to the RAR file, you can double-click it to test it out. When you try to extract it, you will be prompted for the password you created.
-
Download and install WinRAR if you don't have it already. This program allows you to create RAR archives that you can protect with a password. WinRAR technically isn't free, but you can use the trial version indefinitely (though the app will nag you to purchase a license after the trial period is over). You can download WinRAR from win-rar.com.
- If you have an already existing RAR file, you can uncompress it and recompress it with a password using the steps below.
-
Add your files to a new RAR archive. There are a couple of different ways that you can do this:[1]
- Open the WinRAR window and then browse for the files you want to add. Select all the files and then click the "Add" button.
- Select all of the files you want to archive in Windows. Right-click on your selection and choose WinRAR > Add to archive....
-
Give your archive a name. By default, it will be named after the file (if you're compressing just one file) or the folder the files were originally in.
-
Click the .Set password... button. This is located in the "General" tab of the "Archive name and parameters" window that appears when creating a new archive.[2]
-
Enter a password. Enter it a second time to confirm it. You can check the "Show password" box to see the characters as you type them.
-
Check the "Encrypt file names" box. This will ensure that no one can see the names of the files contained in the RAR file until after they have successfully entered the password.[3]
-
Click .OK to save your password. Click OK in the "Archive name and parameters" window to create your new RAR file.[4]
- After the RAR file is created, you can double-click it to test it out. When you try to extract it, you will be prompted for the password you created.
-
Download and install SimplyRAR, if you don't have it already. This is a lightweight archive program that can create and open RAR files on a Mac. It is not as powerful as WinRAR on Windows, as RARLAB, the creator of WinRAR, developed the RAR format.
- WinRAR has a Mac version available as well, but it only supports the Terminal.
- If you have an already existing RAR file, you can uncompress it and recompress it with a password using the steps below.
-
Start the SimplyRAR program. A window will appear, allowing you to add files to the new RAR file.
-
Add files to your RAR file. You can drag and drop any files you'd like into the SimplyRAR window to add them to the list of files to be compressed and archived.
-
Check the "Password protect" box. This will tell SimplyRAR that you want to add a password when the RAR file is created.
-
Enter a password. After checking the box, you will be prompted to create a password. You will need to enter it twice in order to use it.
-
Click Create RAR. You will be asked to name the file and choose where you want to save it.
- Note: Unlike WinRAR, you are not given the option to encrypt file names when password-protecting a RAR file.
- After the RAR file is created, you can double-click it to test it out. When you try to extract it, you will be prompted for the password you created.
Expert Q&A
Video
Tips
References
About This Article
1. Open WinRAR.
2. Add your files to a new RAR archive.
3. Name the archive.
4. Click Set password.
5. Enter and confirm the password.
6. Check the "Encrypt file names" box.
7. Click OK.
Reader Success Stories
-
"Most of the sites I Googled showed the way of setting passwords on Winrar files. But the most important thing here is " Encrypt filenames". I really appreciate your article."..." more





















