Audio format
FLAC Sample Files for Testing
FLAC (.flac) provides lossless audio compression, retaining exact fidelity while reducing file size. Popular in archival and high-end playback, it supports metadata blocks. Use sample .flac files to test decoder accuracy, seek performance, and tag block handling in audio applications.
4 files
All to 2MB
SHA256 verified
Manifest included
Quick facts
Files first
FLAC Sample Files — Download
Starter file
DownloadUse cases
FLAC Testing Workflows
Compare and decide
FLAC Format Comparisons
WAV vs FLAC
Open ComparisonFLAC vs Opus
Open ComparisonFAQ and reference
FLAC 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 flac_15s_sample_file_566KB.flac
curl -L -o flac_15s_sample_file_566KB.flac \
https://samplefile.com/samples/download/audio/flac/flac_15s_sample_file_566KB.flac/
# Or fetch a random FLAC file
curl -s "https://samplefile.com/samples/api/random?format=flac" | jq -r '.download_url'
# Download flac_15s_sample_file_566KB.flac
wget -O flac_15s_sample_file_566KB.flac \
https://samplefile.com/samples/download/audio/flac/flac_15s_sample_file_566KB.flac/
import requests
# Download a specific file
url = "https://samplefile.com/samples/download/audio/flac/flac_15s_sample_file_566KB.flac/"
resp = requests.get(url)
with open("flac_15s_sample_file_566KB.flac", "wb") as f:
f.write(resp.content)
# Or fetch a random FLAC file via API
meta = requests.get("https://samplefile.com/samples/api/random?format=flac").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/audio/flac/flac_15s_sample_file_566KB.flac/";
https.get(url, (res) => {
res.pipe(fs.createWriteStream("flac_15s_sample_file_566KB.flac"));
});
// Or fetch a random FLAC via the API
const meta = await fetch("https://samplefile.com/samples/api/random?format=flac").then(r => r.json());
const file = await fetch(meta.download_url);
// use file.arrayBuffer(), file.body, etc.
# Random FLAC file (JSON response)
GET https://samplefile.com/samples/api/random?format=flac
# All FLAC files
GET https://samplefile.com/samples/api/files?format=flac
# Manifest with SHA256 checksums
GET https://samplefile.com/samples/audio/flac/manifest.json
# Response includes: name, size_bytes, mime_type, sha256, download_url
Validation Methodology
- Verify duration, sample rate, and channel count in your decoder.
- Test metadata extraction and malformed-tag handling.
- Validate seek/stream behavior over slow networks.