Archive format
7Z Sample Files for Testing
7z (.7z) archives use LZMA/LZMA2 compression for high ratio and support solid blocks, encryption, and multi-volume sets. Use sample .7z files to test extraction libraries, encryption parameters, and multi-part archival.
4 files
All to 1MB
SHA256 verified
Manifest included
Quick facts
Files first
7Z Sample Files — Download
Starter file
DownloadUse cases
7Z Testing Workflows
Compare and decide
7Z Format Comparisons
ZIP vs 7Z
Open ComparisonFAQ and reference
7Z File FAQ
Checksum Verification
Use checksums to confirm file integrity after download.
shasum -a 256 your_file_name_here
# Compare output with SHA256 values listed above.
Where is the machine-readable manifest?
Use the manifest when you need stable names, SHA256 values, and URLs for automation.
Use in code — curl, Python, Node, wget
Copy any snippet directly into scripts, test suites, or CI pipelines. All URLs are stable and publicly accessible with no auth required.
# Download 7z_sample_file_1MB.7z
curl -L -o 7z_sample_file_1MB.7z \
https://samplefile.com/samples/download/archive/7z/7z_sample_file_1MB.7z/
# Or fetch a random 7Z file
curl -s "https://samplefile.com/samples/api/random?format=7z" | jq -r '.download_url'
# Download 7z_sample_file_1MB.7z
wget -O 7z_sample_file_1MB.7z \
https://samplefile.com/samples/download/archive/7z/7z_sample_file_1MB.7z/
import requests
# Download a specific file
url = "https://samplefile.com/samples/download/archive/7z/7z_sample_file_1MB.7z/"
resp = requests.get(url)
with open("7z_sample_file_1MB.7z", "wb") as f:
f.write(resp.content)
# Or fetch a random 7Z file via API
meta = requests.get("https://samplefile.com/samples/api/random?format=7z").json()
resp = requests.get(meta["download_url"])
with open(meta["name"], "wb") as f:
f.write(resp.content)
// Download a specific file
const fs = require("fs");
const https = require("https");
const url = "https://samplefile.com/samples/download/archive/7z/7z_sample_file_1MB.7z/";
https.get(url, (res) => {
res.pipe(fs.createWriteStream("7z_sample_file_1MB.7z"));
});
// Or fetch a random 7Z via the API
const meta = await fetch("https://samplefile.com/samples/api/random?format=7z").then(r => r.json());
const file = await fetch(meta.download_url);
// use file.arrayBuffer(), file.body, etc.
# Random 7Z file (JSON response)
GET https://samplefile.com/samples/api/random?format=7z
# All 7Z files
GET https://samplefile.com/samples/api/files?format=7z
# Manifest with SHA256 checksums
GET https://samplefile.com/samples/archive/7z/manifest.json
# Response includes: name, size_bytes, mime_type, sha256, download_url
Validation Methodology
- Verify listing and extraction behavior across tools.
- Check compression ratio assumptions and extraction limits.
- Test zip-slip/path traversal protections in upload pipelines.