Extracting Archives in Hostinger File Manager: Steps & Limits
To extract an archive in Hostinger’s File Manager, locate the file (e.g., .zip, .tar.gz), right-click it, and choose Extract from the context menu. The main format limit is that you can only extract archives that are 1 GB or smaller, and the total uncompressed size must not exceed 2 GB, with a maximum of 50,000 files per extraction.
Background: Why Archive Extraction Matters
Uploading a large website or application to a shared hosting account is far more reliable as a single compressed file than as thousands of individual files. A typical WordPress theme, for example, might contain 1,500 files; uploading each one through a browser-based file manager can take hours and often times out. By uploading a single .zip file and then extracting it on the server, you avoid these issues. Hostinger’s File Manager includes a built-in extraction tool precisely for this purpose, so you don’t need to use SSH or a separate FTP client with compression software.
How Extraction Works in Hostinger File Manager
The extraction process is handled server-side, meaning the files are decompressed directly on the hosting account’s disk. The File Manager reads the archive, creates the necessary folders, and writes the contents to the specified directory. This is much faster than downloading the archive to your computer, extracting locally, and re-uploading. The tool supports the most common archive formats, but it does not support every format you might encounter. Supported formats include:
- .zip
- .tar
- .tar.gz
- .gz
Unsupported formats include .rar, .7z, .bz2, and .xz. If you upload a .rar file, the Extract option will be grayed out or may produce an error. You would need to convert it to a supported format on your local machine first (using free tools like 7-Zip or WinRAR) or use a different method like SSH.
Step-by-Step: Extracting an Archive
Here are the exact steps to extract an archive in Hostinger’s File Manager (based on the current hPanel interface):
- Log into your Hostinger account and open hPanel.
- Go to Files → File Manager.
- Navigate to the folder where you uploaded your archive (usually
public_htmlfor your website root). - Right-click on the archive file (e.g.,
my-site.zip). - From the context menu, select Extract.
- A dialog box will appear asking for the destination path. The default is the current folder. You can change it if you want the files extracted elsewhere.
- Click Extract to begin the process.
- Wait for the confirmation message. The time depends on the archive size and the number of files.
If you prefer using the top toolbar, select the archive file (click once), then click the Extract icon in the toolbar at the top of the File Manager. The result is the same.
Format Limits and File Size Restrictions
Hostinger enforces specific limits for archive extraction to protect server stability. These limits are not arbitrary; they prevent a single user from consuming excessive CPU or disk I/O, which would affect other customers on the same shared server. The key limits are:
- Maximum archive size: 1 GB (before extraction).
- Maximum uncompressed size: 2 GB (after extraction).
- Maximum number of files: 50,000 per archive.
If your archive exceeds any of these, the extraction will fail, often with a generic error like “Extraction failedâ€� or “Archive is too large.â€� In that case, you have a few options: split the archive into smaller parts (e.g., using a tool like 7-Zip to create multi-volume archives) and extract each part separately, or use SSH with the unzip or tar command if you have access. SSH typically has higher limits, but those are also capped by the hosting plan’s resource limits.
Common Problems and How to Fix Them
Even when your archive is within the limits, you may encounter issues. Here are the most frequent problems and their solutions:
- “Extraction failed� with no other message: Often caused by a corrupted archive. Re-upload the file, ensuring it fully uploaded (check the file size matches the original). Try re-creating the archive on your local machine.
- “Permission denied� error: The destination folder may not have write permissions. Right-click the folder, select Permissions, and set it to 755 (or 775 if you need group write). Usually 755 is sufficient for the owner.
- Files appear with mixed case or strange names: This can happen if the archive was created on a system with different filename encoding. It’s rare but can be fixed by re-creating the archive with a standard tool like 7-Zip.
- Extraction takes too long: If you have a large number of small files (e.g., 40,000 files), the process may time out. Try extracting in batches: split the archive into multiple parts and extract them one by one.
If you see a specific error code, search for that exact code in Hostinger’s knowledge base or contact their support—they can see the server logs and tell you the precise cause.
Alternatives to File Manager Extraction
If you frequently work with large archives or need to extract unsupported formats, consider these alternatives:
- SSH (Shell Access): If your plan includes SSH, you can use commands like
unzip file.ziportar -xzf file.tar.gz. This is faster and has higher limits, but requires command-line knowledge. - FTP client with remote extraction: Some FTP clients (like FileZilla) do not support remote extraction, but you can upload a PHP script that uses the
ZipArchiveclass to extract on the server. This is a more advanced workaround. - Extract locally and upload via FTP: For very large archives, it might be more reliable to extract on your computer and then upload the folder using an FTP client with resume support. This avoids server-side limits entirely, but is slower for many small files.
For most users, the built-in File Manager extraction is sufficient. Only when you hit the limits do you need to consider these alternatives.
Safety and Best Practices
Before extracting any archive, especially one you downloaded from the internet, scan it with a local antivirus program. Extracting a malicious file on your server can compromise your website. Also, always extract into a dedicated folder first to avoid overwriting existing files. If you are updating a WordPress plugin or theme, it is safer to delete the old folder first (or use the built-in updater) rather than extracting over it, as leftover files can cause conflicts. Finally, after extraction, you can delete the archive file to save disk space—but only after you have confirmed the extraction was successful and the site works.
Frequently Asked Questions
Can I extract a .rar file in Hostinger File Manager?
No, Hostinger’s File Manager does not support .rar files. You must convert the .rar to a .zip on your computer (using free software like 7-Zip) before uploading, or use SSH if you have shell access.
What is the maximum file size I can upload to Hostinger?
The upload limit in File Manager is typically 512 MB per file, but this can vary with your hosting plan. For larger files, use FTP (which has a limit of 2 GB) or SSH. The extraction limit is separate: 1 GB compressed, 2 GB uncompressed.
Why does extraction fail even though my archive is under 1 GB?
The most common reason is that the archive contains more than 50,000 files, or the uncompressed size exceeds 2 GB. Check these numbers on your computer. Another possibility is a corrupted archive—try re-uploading or re-creating it.
Can I extract an archive into a different directory?
Yes, when you click Extract, you can specify the destination path. For example, if you want to extract a theme into public_html/wp-content/themes/, you can enter that path in the dialog box.
Does extraction overwrite existing files?
Yes, if a file with the same name already exists in the destination folder, it will be overwritten. To avoid this, extract into a new folder first, then move the files manually if needed.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.