Free 7Z sample, test and dummy files (.7z)

Spec-valid 7-Zip (.7z) archive container featuring the canonical 32-byte SignatureHeader and verified IEEE 802.3 CRC-32 header checksums. Use this fixture to test archive upload validators, antivirus magic-byte scanners, and decompression error handlers.

Quick facts: .7z format

Extension.7z
Full name7-Zip Compressed Archive Container
MIME typeapplication/x-7z-compressed
CategoryArchives
Compression / EncodingLossless solid archive compression (LZMA, LZMA2, BCJ2)
Magic bytes (signature)37 7A BC AF 27 1C 00 04 ('7z' followed by BC AF 27 1C and version 0.4)
Specification7-Zip Open Architecture Specification (Igor Pavlov, Public Domain / LGPL)

Download sample 7Z files

Every file below is a spec-compliant .7z fixture generated deterministically for automated and manual testing. Verify the exact byte count and SHA-256 digest after downloading, or open the custom-size file generator to build additional fixtures in your browser.

7Z sample files
FileSizeVariant & contentsSHA-256 checksumDownload
sample-archive-7z.7z 33 bytes33 bytes Spec-valid 7-Zip (.7z) archive container with verified IEEE CRC-32 signature header 5ea0f8eac83aa38babba58ece8db4e04c2248ddc1d3ec1aee3f684a3f8f8b96d Download 7Z

What is a 7Z file?

The .7z format is a high-compression archive container created by Igor Pavlov in 1999 for the 7-Zip archiver. Unlike ZIP—which compresses each file independently and stores a verbose local header before every entry—7z defaults to solid compression, concatenating similar files into a single continuous stream compressed with LZMA or LZMA2. It also compresses the archive's own file-name and metadata directory and places that directory at the very end of the file.

Every 7z archive starts with a fixed 32-byte SignatureHeader: bytes 0–5 are the magic signature 37 7A BC AF 27 1C, bytes 6–7 are the major/minor format version (00 04), bytes 8–11 are the 32-bit CRC of the 20-byte StartHeader that follows, bytes 12–19 are the 64-bit little-endian relative offset to the NextHeader at the end of the file, bytes 20–27 are the 64-bit length of that NextHeader, and bytes 28–31 are the 32-bit CRC of the NextHeader bytes.

How to open a .7z file on Windows, macOS, Linux, Android and iOS

What to test with 7Z sample files

Common problems when handling .7z files

A common mistake when writing custom test generators is writing the 6-byte magic signature 37 7A BC AF 27 1C followed by zero padding; 7-Zip and libarchive immediately report "Can not open file as archive" because the CRC-32 of 20 zero bytes is 0xB1C2A1A3, not 0x00000000. Our hosted sample-archive-7z.7z computes exact little-endian IEEE CRC-32 values over both the StartHeader and NextHeader.

Need to convert or inspect a file right away? Use ConvertFerry Archive Converter or drop any local file into our in-browser Magic-Byte File Inspector.

Related formats and testing resources

Frequently asked questions

What are the exact magic bytes of a 7z file?
Every 7z archive starts with the 6-byte hexadecimal sequence 37 7A BC AF 27 1C (the first two bytes are ASCII '7z'), followed by 00 04 for format version 0.4.
Why can't a 7z file be streamed from stdin without seeking?
Because the 32-byte SignatureHeader at byte 0 points forward to the NextHeader metadata table at the very end of the file. A reader must seek to the end of the file first to discover the file names and compression coders.
What MIME type is used for 7z archives?
The standard MIME type is application/x-7z-compressed.
Does Windows 11 open .7z files without third-party software?
Yes. Starting with the Windows 11 23H2 update, File Explorer integrates libarchive to open .7z, .tar, .tar.gz, .tar.bz2, and .tar.xz archives natively.