2 MB M4A sample
An M4A file of exactly 2,097,152 bytes. It is a valid MPEG-4 audio file, generated by this site. Compare its checksum and test it with the parser used by your application. Use it wherever you need a 2 MB sample, test or dummy M4A file.
Download
sample-m4a-2mb.m4a
2 MB2,097,152 bytes
Download 2 MB M4ACreated in your browser in a few seconds, then checked against the SHA-256 checksum. The file is not uploaded anywhere. No sign-up.
- Type
- audio/mp4
- SHA-256
befc2284bc78a126c8d24314e00e427554c15f746154057d71452258663330c2- Delivery
- Created in your browser from static generator assets (how it works).
What is in this file
5,608 AAC frames (2 min 10 s) of a synthesised musical phrase that repeats every eight seconds, in one audio track. 292 bytes of a trailing "free" box bring the file to the exact size.
| Duration | 2 min 10 s |
|---|---|
| Audio codec | AAC-LC |
| Bit rate | 128 kbit/s |
| Sample rate | 44,100 Hz |
| Channels | Stereo |
| Container | MPEG-4 (brand "M4A ") |
| Fast start | Yes (moov before mdat) |
First bytes of the file
The first 64 bytes of sample-m4a-2mb.m4a as a hex dump: offset, bytes, then the same bytes as text. The M4A signature is 66 74 79 70 4D 34 41 20 at offset 4.
00000000 00 00 00 1c 66 74 79 70 4d 34 41 20 00 00 02 00 |....ftypM4A ....|
00000010 4d 34 41 20 6d 70 34 32 69 73 6f 6d 00 00 5b dc |M4A mp42isom..[.|
00000020 6d 6f 6f 76 00 00 00 6c 6d 76 68 64 00 00 00 00 |moov...lmvhd....|
00000030 e5 7b 69 80 e5 7b 69 80 00 00 03 e8 00 01 fc aa |.{i..{i.........|Preview
Creates the file in your browser and shows it here.
Where 2 MB matters
A 2,097,152-byte file: exactly the default upload limit of PHP, and twice the default of nginx and Spring Boot. These are the default limits a file of this size is useful for testing:
| System | Limit | Note |
|---|---|---|
| PHP | 2 MB per uploaded file by default (upload_max_filesize) | A file of exactly 2 MB is accepted; one byte more is refused. |
| nginx | 1 MB by default (client_max_body_size) | Rejected with 413 Request Entity Too Large. |
| Spring Boot multipart | 1 MB per file by default (max-file-size) | Rejected unless the property is raised. |
| Django | 2.5 MB in memory by default | 2 MB is held in memory; the 5 MB sample is streamed to a temporary file. |
| Vercel Functions | 4.5 MB request body | Accepted, including as base64 at about 2.8 MB. |
Use this file for
- Finding the first upload limit in a new stack
- Testing audio uploads from iPhones, which record voice memos as M4A
- Checking podcast and audiobook pipelines
Testing notes for M4A
- Three media types are in circulation: audio/mp4, audio/x-m4a and audio/m4a. Browsers send different ones for the same file.
- The container is the same as MP4 video, so content sniffers often report video/mp4. Telling them apart takes a look at the ftyp brand or at the tracks.
Technical details
| File name | sample-m4a-2mb.m4a |
|---|---|
| Format | M4A (MPEG-4 audio) |
| Extension | .m4a |
| MIME type | audio/mp4 |
| Size | 2,097,152 bytes (2 MB) |
| Kind | Binary |
| Signature | 66 74 79 70 4D 34 41 20 at offset 4 |
| SHA-256 | befc2284bc78a126c8d24314e00e427554c15f746154057d71452258663330c2 |
| Created | 2026-10-23 |
| Validation | See the listed size and SHA-256. Small downloads are checked in the browser; verify streamed downloads manually. A hash match does not prove parser compatibility. |
| Preview | Available on this page |
| Source | Generated in your browser by this site's generator; not copied from elsewhere |
| Licence | Free to use, modify and redistribute (terms) |
| Category | Audio |
Check the stated structure and checksum against your application requirements. 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 generator is designed to produce reproducible bytes. After saving, compare the checksum with the SHA-256 value above.
sha256sum sample-m4a-2mb.m4a # Linux
shasum -a 256 sample-m4a-2mb.m4a # macOSOn Windows, run Get-FileHash sample-m4a-2mb.m4a -Algorithm SHA256 in PowerShell. For scripts and pipelines, save the file once and keep your own copy.
Related files
Questions about this file
- Is this file exactly 2 MB?
- Yes. It is 2,097,152 bytes, which is 2 MB in the binary units that operating systems and server limits use (1 KB = 1,024 bytes).
- What is inside the 2 MB M4A file?
- 5,608 AAC frames (2 min 10 s) of a synthesised musical phrase that repeats every eight seconds, in one audio track. 292 bytes of a trailing "free" box bring the file to the exact size.
- Which codec do the M4A samples use?
- AAC-LC at 128 kbit/s, 44,100 Hz stereo, which is the combination every device and browser plays.