It is not uncommon for you to search the internet for a file of a particular format/extension… and all you get is either .7z, .zip, or .rar. In 99% of the cases, you already got what you want, just that, the real file has been compressed. In this article, I will be giving a comprehensive tutorial on how to extract compressed files. Archived files contain other files of which what is inside can be exactly what you need. For example, Windows OS directly uses .exe and .msi. If you search for a Windows computer file on the net and you see something like “Mozilla Firefox browser for pc.zip” Then it means, Firefox.exe has been compressed into a .zip archive. in all certainty, you need to extract or decompress an archived file in order to get into the enclosed files.
What is an “Archive/Compress File”?
According to Wikipedia, An archive file is a file that is composed of one or more computer files along with metadata. Archive files are used to collect multiple data files together into a single file for easier portability and storage, or simply to compress files to use less storage space. Archive files often store directory structures, error detection, and correction information, arbitrary comments, and sometimes use built-in encryption.
On the other hand, File compression is a process of “packaging” a file (or files) to use less disk space. Compression software allows you to take many files and compress them into one file. The benefit of this is that it is smaller than the combined size of the originals.
Examples of Archive/Compressed files
Why is there a Need For File Compression/Archiving?
To Save Storage Space and Cost
Generally, when you compress files, the overall size reduces compared to the combined file size. For example, if the total size of the files a, B, and C is 300mb, after compression into zip or rar format, you can get 210mb or less as the combined size. Mind you, after extraction, the files return to their original sizes. Furthermore, File compression allows you to store and back up significantly more data, and faster.
Similarly, the costs of storing your data are reduced by compressing your files for storage because you can store more files in your available storage space when they are compressed.
It allows the original file extensions to be Disguised
Sometimes, hackers compress some malicious files in order to disguise them and make sure they bypass security software. Thank goodness, many antivirus software has found a way around this. Likewise, pirated software might be renamed and compressed before being uploaded for download. This act is to beat the law. Don’t compress your files for any of the two reasons listed above. It is illegal.
To Protect and Encrypt the Files
You can also compress your file to protect its identity. Also, many file decompressing software have the option to password-protect files. This will add an extra layer of security to your files.
Compressing a file can help you with splitting it for easy uploading and downloading
Imagine a situation whereby you need to download a 3 GB file from a slow, non-resumable server. Won’t it be better if the file is split (by a file compressor) into like 200MB each for a more convenient download? Well, if you have had to deal with slow internet, you will appreciate this better.
To effectively post files on a web page for someone else to download or to send large documents as email attachments.
Files can become corrupted when they are transferred over the internet in an uncompressed format. Transfer time is lessened when files are compressed. File compression is often necessary for sending large documents over the internet as email attachments since most email systems limit the size of each email message. Often it is easier to compress multiple documents into one document to attach to an email message rather than sticking them one by one.
- To download and open files from a web page or from your email application that has been compressed.
Bandwidth and Transfer Speed
What are the drawbacks of Compressing Files?
Compressed files must be uncompressed to be opened. When using file compression to send email attachments, the recipient of the message must understand how the file was compressed and have the tools to uncompress the file. Unfortunately, not everyone knows about these basic technicalities.
How to Determine Whether a File is Compressed or Not?
Most compressed files have extensions indicating the format like .zip, .rar, .7z, etc. Often they have standard headers so you can tell by the first few bytes of the file.
But there is no way to be certain. Compressed and encrypted files are statistically random and indistinguishable without knowing the compression algorithm or the encryption key.
- The first method is to check the file extension to determine if it’s what you are expecting or not. For example, if you are expecting a .exe file and you receive a .7zip file, then that file has probably been compressed. Similarly, once you are unsure of the extension, contact the sender and ask. Please don’t extract a file that you don’t trust the extension.
- Secondly, check the file extension and see if it falls within any compression/archiving formats such as zip or rar. 7zip, cab e.t.c. You can learn more here.
- Another way to detect if a file looks compressed is to try to compress it. The file is probably compressed or encrypted if you can’t significantly reduce the size.
- How to rename file extensions on your phone and computer
- Using Blueftp to unzip / Extract / Decompress your zip files on Java Phones
Precautions When Dealing With Compressed Files
To learn more about archive file formats and their comparison, please read this. It is also worthy of note that .zip is the most popular and the easiest to decompress, while .rar is the most secure.
- Don’t attempt to open a file archive that is very big on your phone. Use your computer instead. There is a limit to the size of compressed files a mobile decompressor can handle. I wouldn’t try a file bigger than 4GB
- If you download a compressed file online, do so only from a trusted source. Compressed files have both advantages and disadvantages, as black hat hackers and white hat hackers make use of them extensively. The bottom line is that you can download a computer virus contained in an archive if you are downloading from untrusted sources. Such virus mostly includes adware, malware, and trojan. So please only download files that you know and need.
- Secondly, exercise caution when downloading split archive files. Test each part after download, and do not wait to download all the parts before attempting to extract. For example, if you want to download a file that is 12 GB in size, it is most likely it will be split into parts of 1 GB each and the format will likely be .rar or .zip. Once you finish downloading the first part, try and open it with your file decompressor, once you receive a message like “some volume/parts are missing,” it means the first file is healthy you can proceed. But if you receive “archive corrupt or damaged” or “enter a password,” please do not proceed. For password-protected files, please get the password before downloading all the parts.
- The above clues are hard and fast rules and fail-safe tips that you must always apply before downloading any archive files.
Types of Software That Can Open Compressed/Archived Files
I will arrange them in order of competence and versatility. For both Mac, mac os, android os, and Windows.
How to extract compressed files on Windows Computers
- Windows file explorer: Don’t be surprised that Win7, win8, and win10 file explorer can open zip files by default. All you need to do is simply double-click on the zip archive, and it will open for you to extract.
- For Windows computers, I strongly recommend WinRar: Winrar can open virtually any file format
- 7-Zip(this is good when you want to open some stubborn .7z files
How to Extract Compressed Files on Mac Computers
- If you are extracting a zip archive on Mac, all you need to do is double-click on such a file. Mac from OS can extract and decompress zip files.
- However, if you want to open other more complex file archives such as .rar, cab, and so on, you will need a 3rd-party file decompressor. I enjoy using “The Unachiver” on my Mac as it is pretty easy. You can download it from the App Store.
How to extract compressed files on Android Phones
- In case your Android phone comes with a pre-installed file manager app, first, attempt to use it to open your zip files. If it doesn’t work, you can download a free 3rd party app. For the records, Samsung Galaxy phones have been opening zip files via the default file manager for a long time
- If, however, you have other file archives, such as RAR, you can use a 3rd-party advance Android file manager to extract or decompress. My favorites are “root browser”, ES Explorer” and File Expert.” You can download any of this on the google play store. For Android, we have many file extractors. In addition, the Uc browser for Android can extract any zip or RAR file. Lastly, you can also specialized file decompressors for Android such as ZAchiver, WinRar, easy unrar, and so on.
How to extract compressed files on Apple iDevices, Especially iPhones
- Thankfully, iOS 12 comes with a pre-installed file manager. This file manager can perform some basic functions, including extracting zip files. You must open the “File” app on your iPhone with iOS 12 to do this. Then, please navigate to the zip file you already downloaded or copied to your phone>>open it>>then click on preview content>>then swipe through the preview images
- Alternatively, go to the app store and download apps that can decompress files on iOS. One that I often use on phones that are not jailbroken is “PhoneDrive.” Of course, you have multiple options if your phone has a jailbreak. Hurry and download iFile if you already jailbreak your iDevice. Once you get the correct file, extraction is a breeze.
Steps to be Taken When Extracting a Compressed File on a PC
- Drag, move, or copy the file to a known location on your PC. I recommend your desktop if you are using a computer.
As I said earlier, WinRAR is a great tool for extracting files from their compressed formats. One thing that makes WinRAR so popular is the ease of use. There are several ways to open an archive for unzipping. One method is just by clicking on the file to open WinRAR and by Drag-and-dropping the file to your destination folder.
- First, select a RAR file that is part of the archive, then open the file
- Select any RAR part of the archive
After you open the file, it will bring up a window showing you the details of the complete file. You can highlight the file and then drag and drop the file into the desired location.
- Drag the file from the Win Rar window into the desired location.
- After you drag and drop the file into the desired folder, WinRAR will bring up a window showing the UnRAR process.
- When the UnRAR/UnZIP process is complete, it will leave the finished file in the destination folder. Now, your file is ready to be used.
- Now, you can make use of the file. The above guide is for Windows computers, and this same simple principle can be employed for Mac or mobile devices using the appropriate software.