Gzip File Signature & Magic Bytes (.gz)
Gzip (RFC 1952) compresses a single byte stream using DEFLATE with a 10-byte header and a trailing CRC-32 checksum and 32-bit uncompressed size. Standard Gzip files begin with 1F 8B followed by compression method 08 (DEFLATE).
Signature & identification summary
| Detected format name | Gzip archive |
|---|---|
| Hexadecimal magic bytes | 1F 8B 08 |
| ASCII / marker preview | ... |
| Byte offset | 0 |
| MIME type | application/gzip |
| Common extensions & aliases | .gz, .tgz, .svgz |
Check whether your file really is Gzip.
Drop any file into File Sniff’s free local browser checker to verify its 1F 8B 08 signature and spot misleading extensions—without uploading a single byte.
Container & byte-layout notes
Gzip itself compresses only one stream—it has no multi-file directory. To bundle folders on Unix/Linux and macOS, files are first packed into a TAR archive and then Gzip-compressed into .tar.gz or .tgz. Compressed SVG graphics (.svgz) also start with 1F 8B 08.
Extension mismatches & common pitfalls
HTTP servers sometimes serve pre-compressed .json.gz or .csv.gz logs without Content-Encoding headers, saving a binary 1F 8B 08 stream under a .json or .csv filename.
Which apps open Gzip files?
| Platform | Compatible applications & tools |
|---|---|
| Mac (macOS) | Archive Utility (double-click in Finder), gunzip / tar in Terminal, The Unarchiver, Keka |
| iPhone & iPad | Files app (tap to decompress), Keka |
| Windows | Windows 11 File Explorer (native tar/gz support), 7-Zip, WinRAR, tar in PowerShell |
Free local tools & related guides
- Check whether a file really is Gzip
- Inspect raw bytes in the Hex Viewer
- Guide: File Signatures & Magic Bytes Guide
- Guide: What does a file extension mismatch mean?
Inspect files & folders natively
on Mac, iPhone & iPad.
The native File Sniff app scans entire folders, spots extension mismatches, repairs extensions with Undo on Mac, and exports CSV or JSON reports locally.