PHP & MySQL

Online File Extractor - Unzip, Unrar & Decompress

Free online tool to extract RAR, ZIP, 7z, TAR, and GZ archives directly in your browser. No installation required.

Online Archive Extractor

Extract compressed files directly in your browser. This tool supports RAR, ZIP, 7-Zip, TAR, GZ, and BZ2 archives. Simply upload your file and download the extracted contents.

folder_zip

File Extractor Tool

Upload a compressed archive to extract its contents

upload_file

Drag and drop your archive here, or click to browse

Supported: .zip, .rar, .7z, .tar, .gz, .bz2

Files are processed client-side. Nothing is uploaded to our servers.

Supported Archive Formats

ZIP

The most common archive format. Supported across all operating systems natively.

RAR

Proprietary format by RARLAB. Known for better compression ratios on certain file types.

7-Zip

Open-source format with LZMA compression. Often achieves the best compression ratios.

TAR

Unix tape archive. Bundles files without compression - usually paired with gzip or bzip2.

GZ (Gzip)

Standard Unix compression. Compresses a single file - use with TAR for directories.

BZ2 (Bzip2)

Higher compression than gzip, but slower. Common in Linux software distributions.

How to Extract RAR Files Online

1

Upload your RAR file

Click the upload area above or drag and drop your .rar file into the box.

2

Wait for extraction

The tool processes the archive and lists all contained files with their sizes.

3

Download extracted files

Click individual files to download them, or download all as a ZIP archive.

Extracting Archives with PHP

If you need to extract archives server-side using PHP, the ZipArchive class provides a built-in solution:

<?php
$zip = new ZipArchive;
if ($zip->open('archive.zip') === TRUE) {
    $zip->extractTo('/destination/path/');
    $zip->close();
    echo 'Extraction successful';
} else {
    echo 'Failed to open archive';
}

Security Considerations

Zip Slip Vulnerability: When extracting archives server-side, always validate that extracted file paths don't traverse outside the intended directory. Malicious archives can contain entries like ../../etc/passwd to overwrite system files. Always sanitize extracted paths.

Last updated: 2026 • Browse all courses