Archives · Updated · All file signatures

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 nameGzip archive
Hexadecimal magic bytes1F 8B 08
ASCII / marker preview...
Byte offset0
MIME typeapplication/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.

Check a file’s real type ↗︎

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?

PlatformCompatible applications & tools
Mac (macOS)Archive Utility (double-click in Finder), gunzip / tar in Terminal, The Unarchiver, Keka
iPhone & iPadFiles app (tap to decompress), Keka
WindowsWindows 11 File Explorer (native tar/gz support), 7-Zip, WinRAR, tar in PowerShell

Free local tools & related guides

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.

Download on the App Store ↗︎