An archive is a single file that holds multiple files and folders squeezed together to save space
When you compress files into an archive, you are bundling them into one container. The archive itself is usually smaller than the original files because the compression removes redundant data. You have probably seen archives with names ending in .zip, .rar, or .7z — those are the file types your computer recognizes as archives.
Archives work like a suitcase. Instead of carrying ten separate items, you pack them all into one bag. When you need something from inside, you open the suitcase and take it out. Your computer does the same thing: it reads the archive, finds what you need, and extracts it back to normal files.
The main reason archives exist is to make files smaller and easier to send. A folder with 50 photos might be 200 megabytes. Compressed into an archive, it might be 80 megabytes. That difference matters when you are uploading to email or downloading from the internet.
Key Takeaways
- An archive is a compressed container that holds multiple files in a single package, making them smaller and easier to move or send.
- Common archive types are .zip files on Windows and Mac, .rar files from third-party software, and .7z files from specialized compression tools.
- To use files inside an archive, you must extract them first — opening the archive does not automatically convert it back to normal files.
- Archives are useful for email attachments, downloads, and backups because they reduce file size without losing any data.
- Your operating system can create and open .zip archives without installing extra software, but other formats may require a dedicated program.
How archives compress files smaller
Compression works by finding patterns in your data and storing them more efficiently. If a file contains the same sequence of information repeated many times, the archive notes the pattern once and says "repeat this 50 times" instead of writing it out 50 times. The result is a smaller file that contains exactly the same information.
Different compression methods work better on different types of files. Photos and videos compress less effectively because they already contain very little repetition — the data is already fairly dense. Text files, spreadsheets, and documents compress much more because they often repeat words, formatting, and structure. A folder of Word documents might shrink to half its original size, while a folder of photos might only shrink by 10 or 15 percent.
The trade-off is that your computer has to spend a moment decompressing the archive when you want to use the files inside. This happens automatically and is usually fast enough that you do not notice it, but very large archives on older computers can take a few seconds to open.
The difference between opening and extracting an archive
This is the most common source of confusion. Opening an archive and extracting it are not the same thing. When you double-click a .zip file on Windows or Mac, your operating system shows you what is inside — but those files are still compressed. You are looking at them through the archive, not actually using them.
If you try to edit a file while it is still inside the archive, your computer will extract it to a temporary folder, let you edit it, and then ask whether you want to save the changes back into the archive. This works, but it is slower and more complicated than extracting first.
To properly extract an archive, right-click it and choose "Extract All" on Windows or "Expand" on Mac. Your computer will create a new folder containing all the original files in their normal, uncompressed form. Now you can use them like any other file on your computer. The archive itself stays where it was — extracting does not delete it.
Common archive file types and what opens them
.zip files are the standard on both Windows and Mac. Your operating system can create and open them without any extra software. When you right-click a file or folder and choose "Send to" or "Compress", your computer creates a .zip archive.
.rar files are created by a program called WinRAR, which is not free. Windows and Mac do not open .rar files by default. If someone sends you a .rar file, you will need to download WinRAR or a free alternative like 7-Zip (Windows) or The Unarchiver (Mac) to open it.
.7z files use a different compression method that often makes files even smaller than .zip, but they are less common. You will need 7-Zip or a similar program to open them. These are most common in technical communities and software development.
.tar.gz files are common on Mac and Linux systems. They are actually two layers — a .tar file (which bundles files without compressing) wrapped in .gz compression. Mac can open these by default, but Windows users typically need a third-party tool.
When to use archives and when not to
Archives are most useful when you are sending files over the internet or storing backups. Email services often limit attachment size, so compressing a folder of documents before sending makes it more likely to go through. Cloud storage services like Google Drive or Dropbox let you download entire folders as .zip files automatically.
Archives are less useful for files you use every day. If you keep your work documents in an archive, you will have to extract them every time you want to edit one. It is better to keep active files uncompressed and use archives only for things you need to store or send.
Never archive files that your programs need to run. Some software looks for configuration files or libraries in specific locations. If those files are inside an archive, the program will not find them and will not work correctly.
How to create your own archive
On Windows, right-click the file or folder you want to compress. Choose "Send to" and then "Compressed (zipped) folder". Windows creates a .zip archive with the same name in the same location.
On Mac, right-click the file or folder and choose "Compress". Mac creates a .zip archive immediately.
If you want more control over compression settings or need a different format, download 7-Zip (Windows, free) or The Unarchiver (Mac, free). These programs let you choose the archive type, set compression level, and add passwords to protect the archive.
To add a password to a .zip file on Windows, use 7-Zip: right-click the file, choose "7-Zip", then "Add to archive". In the dialog, enter a password in the "Encryption" field. On Mac, you can password-protect a .zip by using the command line or by downloading a third-party tool, since the built-in Compress function does not offer this option.
Troubleshooting archives that will not open
If you double-click an archive and nothing happens, your computer does not have a program that recognizes that file type. Download the appropriate tool: 7-Zip or WinRAR for .rar files, 7-Zip for .7z files, or The Unarchiver for Mac if the default tools are not working.
If an archive opens but shows corrupted or unreadable files, the archive itself may be damaged. This usually happens if the file was interrupted while downloading or was transferred incorrectly. Try downloading it again. If the same problem occurs, ask the person who sent it to you to send it again.
If you extract an archive and the files look wrong — for example, all the text is garbled — the archive may have been created with a different character encoding. This is rare with modern software but can happen with very old archives or files created on different operating systems. Try opening the archive with a different program, as some tools handle encoding better than others.
Frequently Asked Questions
Does extracting an archive delete the original archive file?
No. Extracting creates a new uncompressed copy of the files. The archive stays where it was. You can delete the archive after extracting if you no longer need it, but extraction itself does not remove it.
Can I edit files inside an archive without extracting them first?
Yes, but it is slower. Your computer will extract the file to a temporary location, let you edit it, and ask whether to save changes back into the archive. It is more efficient to extract the entire archive first, edit what you need, and then create a new archive if you want to compress it again.
What is the difference between .zip and .7z?
.7z typically compresses files more than .zip, making archives smaller. However, .zip is more widely supported — almost every computer can open it without extra software. Use .zip for sending to other people, and .7z only if file size is critical and you know the recipient can open it.
Is it safe to download and open archives from the internet?
Archives themselves are safe. However, the files inside an archive can contain malware just like any other download. Only open archives from sources you trust, and scan them with your antivirus software before extracting if you are unsure about the source.
Can I password-protect a .zip file?
Yes, but the process depends on your operating system. Windows users can use 7-Zip to add password protection. Mac users need third-party software or command-line tools, since the built-in Compress function does not support passwords. .zip password protection is not as strong as other encryption methods, so do not rely on it for highly sensitive files.