Archive Extractor
Professional client-side unarchiver. Securely extract ZIP, TAR, and GZ files with instant split-pane preview, syntax highlighting, and zero-server data leakage.
Select a file to preview
Supported: Images, Code, Text, JSON
About
This tool represents a paradigm shift in data privacy, moving file processing from the cloud edge directly to the client's V8 engine context. By leveraging the ArrayBuffer and Blob interfaces, we allow users to manipulate compressed data streams without a single byte leaving the local device. This is critical for handling NDA-protected documents, financial audits, or source code.
The extraction logic utilizes the DEFLATE algorithm, combining LZ77 (sliding window compression) and Huffman coding. The theoretical compression efficiency is modeled as entropy H:
Where pi is the probability of character occurrence. This tool reverses this process, reconstructing the directory tree in the browser's volatile memory.
Formulas
To ensure data integrity during extraction, we calculate the Cyclic Redundancy Check (CRC32). The polynomial used is standard IEEE 802.3. The checksum calculation over a data block D of length n bits is defined as:
Where G(x) is the generator polynomial. If the calculated CRC does not match the file header's hex value 0xDEADBEEF (example), the file is flagged as corrupt.
Reference Data
| Extension | MIME Type | Magic Number (Hex) | Structure | Compression Method |
|---|---|---|---|---|
| .ZIP | application/zip | 50 4B 03 04 | Central Directory | Deflate / Store |
| .TAR | application/x-tar | 75 73 74 61 | Sequential | NULL (Uncompressed) |
| .GZ | application/gzip | 1F 8B | Stream | Deflate |
| .APK | application/vnd.android | 50 4B 03 04 | ZIP-based | Deflate |
| .LOG | text/plain | Variable | Text Stream | N/A |
| .JSON | application/json | 7B or 5B | Structured Text | N/A |
| .PNG | image/png | 89 50 4E 47 | Binary Bitmap | Deflate (Internal) |
| .WAV | audio/wav | 52 49 46 46 | RIFF Header | PCM (LPCM) |