Archive format
Fichiers d'echantillon XZ
XZ (.xz) provides LZMA2 compression for maximum ratio with support for delta filters and multi-threaded encoding. Use sample .xz files to validate high-ratio workflows and index skipping.
4 fichiers
All to 1MB
SHA256 verified
Manifeste included
Quick facts
Files first
XZ Sample Files — Download
Starter file
Telecharger| Nom du fichier | Taille | MIME | Telecharger |
|---|---|---|---|
| 1.0 MB | application/octet-stream |
Telecharger
|
|
| 200.1 KB | application/octet-stream |
Telecharger
|
|
| 500.1 KB | application/octet-stream |
Telecharger
|
|
| 50.1 KB | application/octet-stream |
Telecharger
|
No files match the current filter. Switch to another chip or size range.
Use cases
XZ Testing Workflows
Use the file table first, then branch into compare or FAQ only if the task needs more context.
Compare and decide
XZ Format Comparisons
FAQ and reference
XZ File FAQ
Verification du checksum
Utilisez les checksums pour confirmer l'integrite du fichier apres telechargement.
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 xz_sample_file_1MB.xz
curl -L -o xz_sample_file_1MB.xz \
https://samplefile.com/samples/download/archive/xz/xz_sample_file_1MB.xz/
# Or fetch a random XZ file
curl -s "https://samplefile.com/samples/api/random?format=xz" | jq -r '.download_url'
# Download xz_sample_file_1MB.xz
wget -O xz_sample_file_1MB.xz \
https://samplefile.com/samples/download/archive/xz/xz_sample_file_1MB.xz/
import requests
# Download a specific file
url = "https://samplefile.com/samples/download/archive/xz/xz_sample_file_1MB.xz/"
resp = requests.get(url)
with open("xz_sample_file_1MB.xz", "wb") as f:
f.write(resp.content)
# Or fetch a random XZ file via API
meta = requests.get("https://samplefile.com/samples/api/random?format=xz").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/xz/xz_sample_file_1MB.xz/";
https.get(url, (res) => {
res.pipe(fs.createWriteStream("xz_sample_file_1MB.xz"));
});
// Or fetch a random XZ via the API
const meta = await fetch("https://samplefile.com/samples/api/random?format=xz").then(r => r.json());
const file = await fetch(meta.download_url);
// use file.arrayBuffer(), file.body, etc.
# Random XZ file (JSON response)
GET https://samplefile.com/samples/api/random?format=xz
# All XZ files
GET https://samplefile.com/samples/api/files?format=xz
# Manifest with SHA256 checksums
GET https://samplefile.com/samples/archive/xz/manifest.json
# Response includes: name, size_bytes, mime_type, sha256, download_url
Methodologie de validation
- Verify listing and extraction behavior across tools.
- Check compression ratio assumptions and extraction limits.
- Test zip-slip/path traversal protections in upload pipelines.