5 MB FLAC sample file

A FLAC file of exactly 5,242,880 bytes. It is a valid Free Lossless Audio Codec file, generated for this site and checked with an independent parser. Use it wherever you need a 5 MB sample, test or dummy FLAC file.

Download

sample-flac-5mb.flac

5 MB5,242,880 bytes

Download 5 MB FLAC

Created in your browser in a few seconds, then checked against the SHA-256 checksum. No sign-up.

Type
audio/flac
SHA-256
1f195c48bb92cae077095cc33f02d355fd4d3dd3e89ae07812e917c19d1f2288
Delivery
Created in your browser. Files of 2 MB and more have no direct URL (why).

What is in this file

320 FLAC frames (29.7 s) of a synthesised musical phrase that repeats every eight seconds. The samples are stored verbatim, so the audio decodes bit for bit to the matching WAV data. 1 byte of a standard PADDING metadata block bring the file to the exact size.

Duration29.7 s
Sample rate44,100 Hz
Channels2 (stereo)
Bit depth16-bit
Block size4,096 samples
EncodingVerbatim subframes (lossless, not compressed)
TagsVorbis comment (title, artist, album)

First bytes of the file

The first 64 bytes of sample-flac-5mb.flac as a hex dump: offset, bytes, then the same bytes as text. The FLAC signature is 66 4C 61 43.

00000000  66 4c 61 43 00 00 00 22 10 00 10 00 00 00 00 00  |fLaC..."........|
00000010  00 00 0a c4 42 f0 00 13 fc 85 a8 07 84 da a4 b5  |....B...........|
00000020  9d ec bf 97 1c 29 29 75 2c a0 04 00 00 77 19 00  |.....))u,....w..|
00000030  00 00 53 61 6d 70 6c 65 54 65 73 74 46 69 6c 65  |..SampleTestFile|

Preview

Creates the file in your browser and shows it here. Nothing large is downloaded from our server.

Where 5 MB matters

A 5,242,880-byte file: the size of a phone photo and the minimum part size for S3 multipart uploads. These are the default limits a file of this size is useful for testing:

SystemLimitNote
PHP2 MB per uploaded file by default (upload_max_filesize)A 5 MB upload fails on an untuned PHP installation.
Vercel Functions4.5 MB request bodyLarger uploads must go directly to object storage.
Amazon S3 multipart upload5 MiB minimum part sizeThis file is exactly one minimum part.
AWS Lambda6 MB synchronous invocation payload5 MB of binary data exceeds it once base64-encoded.
Browser localStorageAbout 5 MB per originStoring this file as text fills the quota.
Django2.5 MB in memory by defaultLarger uploads are streamed to a temporary file instead of held in memory.

All 5 MB sample files

Use this file for

  • Testing image resizing and memory use
  • Verifying duration and tag reading
  • Testing that a decode matches the stored MD5 checksum

Testing notes for FLAC

  • The MD5 checksum in STREAMINFO lets software prove that a decode is correct, yet few applications check it. A value of all zeros means the encoder did not record one.
  • Cover art lives in the metadata, so a three-minute song can carry several megabytes before its first audio frame.

FLAC format reference

Technical details

File namesample-flac-5mb.flac
FormatFLAC (Free Lossless Audio Codec)
Extension.flac
MIME typeaudio/flac
Size5,242,880 bytes (5 MB)
KindBinary
Signature66 4C 61 43
SHA-2561f195c48bb92cae077095cc33f02d355fd4d3dd3e89ae07812e917c19d1f2288
Created2026-10-14
ValidationExact size, signature bytes and structure checked when the generator was built; your copy is checked against the SHA-256 after it is created
PreviewAvailable on this page
SourceGenerated in your browser by this site's generator; not copied from elsewhere
LicenceFree to use, modify and redistribute (terms)
CategoryAudio

Validated for expected format and integrity. As with any download, scan the file with your own security tools before opening it. How files are made and checked

Verify your copy

This file is created in your browser, so it has no direct URL for curl or wget. The bytes are the same every time and in every browser, so after saving it you can compare its checksum with the SHA-256 value above.

sha256sum sample-flac-5mb.flac     # Linux
shasum -a 256 sample-flac-5mb.flac # macOS

On Windows, run Get-FileHash sample-flac-5mb.flac -Algorithm SHA256 in PowerShell. For scripts and pipelines, save the file once and keep your own copy, or use a 1 MB file, which has a direct URL.

Related files

Questions about this file

Is this file exactly 5 MB?
Yes. It is 5,242,880 bytes, which is 5 MB in the binary units that operating systems and server limits use (1 KB = 1,024 bytes).
What is inside the 5 MB FLAC file?
320 FLAC frames (29.7 s) of a synthesised musical phrase that repeats every eight seconds. The samples are stored verbatim, so the audio decodes bit for bit to the matching WAV data. 3 bytes of a standard PADDING metadata block bring the file to the exact size.
Why are the FLAC samples about as large as the WAV samples?
To reach an exact byte count, the samples store their audio in "verbatim" subframes, the uncompressed form FLAC falls back on when prediction does not help. The files are fully valid, and decode to exactly the same samples as the WAV files.