M4A Audio MIME Type
audio/m4a means, why audio/mp4 is the registered media type for M4A files, which codecs they contain, and how Poly supports them. MIME type details for audio/m4a
In active use| MIME type | audio/m4a |
|---|---|
| Extensions | .m4a |
| First standardized | Not standardized |
| Created by | Apple (filename convention) |
| Browser support | Chrome (codec-dependent), Edge (codec-dependent), Firefox (platform-dependent), Opera (codec-dependent), Safari (codec-dependent) |
| Example applications | Apple Music, Logic Pro |
| Poly support | Yes. Poly recognizes .m4a filenames as audio/m4a and sends them through its audio pipeline. |
| Indexed by Poly | Yes. Decodable M4A files are searchable by filename, transcript text, and audio similarity; metadata and embedded cover art may also be extracted. |
| Preview in Poly | Yes. M4A files open in Poly's audio player, but playback still depends on the browser or operating system decoding the file's codec. |
| Poly agent | Yes. After transcription completes, the Poly agent can read and reason over the transcript; it does not receive the compressed audio bytes as text. |
Is audio/m4a the official MIME type for M4A?
audio/m4a is a widely used label for an audio-only MPEG-4 file with the .m4a extension, but it is not registered by IANA. The standards-track media type for an MP4 file containing audio and no visual presentation is audio/mp4. RFC 4337 makes that content-based distinction explicitly.1
That difference matters on the web. If you control an HTTP server, API response, or <source> element, send an M4A file as audio/mp4. Software may accept audio/m4a or the older audio/x-m4a, but those values are compatibility conventions rather than registered alternatives.
Poly deliberately recognizes audio/m4a as its canonical identifier for .m4a files. This page documents that behavior while keeping the Internet-facing recommendation clear.
.m4a and the HTTP Content-Type: audio/mp4. The filename tells people and desktop software that the file is audio-only; the header uses the registered media type.What is inside an M4A file?
M4A is an audio-oriented use of the MPEG-4 container, not an audio codec. Its box-based structure comes from the ISO Base Media File Format and MPEG-4 Part 14. The container holds timed audio samples, track information, duration, codec configuration, and optional descriptive metadata or cover art.2
The audio is most commonly encoded with one of two codecs:
| Codec | Compression | What conversion means |
|---|---|---|
| AAC | Lossy | Decoding and re-encoding can discard more information |
| Apple Lossless (ALAC) | Lossless | Decoding restores the original PCM samples |
Apple's own Logic Pro documentation offers AAC and ALAC as the two encoding choices for an M4A export.3 That is why an .m4a extension alone cannot tell you whether a recording is lossy or lossless.
An M4A file is also different from a raw .aac file. The latter commonly stores an AAC elementary stream in ADTS or another transport framing. An M4A wraps audio in an MP4 container and can carry metadata, timing, artwork, and codecs other than AAC.
How to identify an M4A file
Do not rely on a single fixed magic number. RFC 4337 registers no magic number for audio/mp4.1 ISO Base Media files instead contain typed boxes. A file-type box named ftyp normally appears near the beginning and declares a major brand plus compatible brands.2
In a common file, the first bytes look conceptually like this:
[4-byte box size] ftyp [major brand] [minor version] [compatible brands...]
The letters ftyp often appear at byte offset 4, but the size, brands, box ordering, and audio codec can differ. A robust identifier parses the boxes and confirms that the presentation is audio-only. Changing .mp4 to .m4a may be a reasonable filename clarification when the file already contains only compatible audio, but renaming never changes its codec or container.
How to open an M4A file
Apple Music and Logic Pro support M4A, and Apple's AVFoundation identifies the type with the .m4a extension.4 Other media players and editors commonly open it through their MP4 demuxer.
Modern browsers can usually play AAC in an MP4 container through the <audio> element. Actual playback still depends on the codec profile and the decoder supplied by the browser or operating system. MDN recommends declaring MP4 audio as audio/mp4 and notes that AAC support varies by browser and platform.5
Support in Poly
Poly maps .m4a directly to audio/m4a and classifies it as audio. It then uses the same audio path as other supported recordings:
- The file opens in Poly's waveform audio player. The player streams the original file to the browser, so codec support on that browser and operating system still matters.
- Decodable files can provide duration and audio metadata. Embedded cover art can become the thumbnail; files without artwork use the normal audio presentation.
- Poly transcribes supported audio to WebVTT. Transcript text is searchable, and a search result can seek playback to the matching moment.
- Audio files participate in similarity search in addition to filename and transcript search.
- The Poly agent and
poly file readconsume the completed transcript. If processing has not produced one yet, there is no textual audio content for them to read.
The important limit is that recognition is not validation. Poly's local ingestion path accepts the MIME classification without parsing the file, while later waveform, metadata, and transcription work needs a decoder that can actually read the container and codec. A corrupt, encrypted, or unusually encoded M4A can therefore upload successfully but fail richer processing.
Converting M4A safely
First inspect the codec. FFmpeg recognizes .m4a through its MOV/MP4 demuxer and provides a dedicated audio-only MPEG-4 muxing mode.6
ffprobe -hide_banner input.m4a
If the input already contains compatible AAC or ALAC and you only need a freshly written container, stream-copying avoids another lossy generation:
ffmpeg -i input.m4a -map 0:a:0 -c:a copy output.m4a
For broad playback compatibility, encode AAC-LC in an M4A container:
ffmpeg -i input.m4a -map 0:a:0 -c:a aac -b:a 192k output.m4a
For a lossless editing or archival copy, use FLAC or WAV. Converting an AAC M4A to either format stops further codec loss during later edits, but it cannot restore audio already discarded by AAC. Converting ALAC to FLAC can remain lossless.
M4A, MP4, AAC, and M4B compared
| Name | What it identifies | Typical media type | Common use |
|---|---|---|---|
| M4A | Audio-only MPEG-4 container convention | audio/mp4 | Music, recordings, podcasts |
| MP4 | General MPEG-4 container | video/mp4 or audio/mp4, based on contents | Audio, video, or both |
| AAC | Lossy audio codec or a standalone framed stream | audio/aac for the standalone stream | Compressed audio |
| ALAC | Lossless audio codec | Usually carried in audio/mp4 | Lossless music |
| M4B | MPEG-4 audio filename convention for book-like content | audio/mp4 | Audiobooks and podcasts with chapters/bookmarks |
The container and codec answer different questions. “M4A with AAC” is precise: M4A describes the file arrangement, while AAC describes how its audio samples are compressed. The Library of Congress records .m4a as an MP4-family extension and audio/mp4 as the applicable media type for audio-only files.7
Security and privacy considerations
Treat an unknown M4A like any other untrusted media file. RFC 4337 warns that malformed MPEG streams can overload decoder buffers or crash a receiver.1 Keep playback and conversion software updated, and avoid enabling features that follow external references in an untrusted container.
Metadata can also reveal more than the waveform itself. Artist, title, comments, artwork, creation dates, and encoder information may survive an export or lossless remux. Inspect and remove sensitive fields before publishing a private recording.
Footnotes
- Internet Engineering Task Force. RFC 4337: MIME Type Registration for MPEG-4. The RFC registers
audio/mp4, states that it may be used for audio-only MP4 files, lists no magic number, and discusses malformed-stream risks. ↩ ↩2 ↩3 - Library of Congress. ISO Base Media File Format. The format description explains the box structure,
ftypbrands, and MP4 standardization history. ↩ ↩2 - Apple. M4A File Options in Logic Pro for iPad. Apple documents AAC and ALAC encoding choices for M4A export. ↩
- Apple Developer Documentation. AVFileType.m4a. Apple identifies its M4A audio file type and
.m4aextension. ↩ - MDN Web Docs. Web Audio Codec Guide and Cross-Browser Audio Basics. MDN documents AAC platform dependencies and the
audio/mp4type for MP4 audio. ↩ - FFmpeg Project. FFmpeg Formats Documentation. The MOV/MP4 demuxer lists
.m4a, and theipodmuxer is its audio-only MPEG-4 mode. ↩ - Library of Congress. MPEG-4 File Format, Version 2. The format record describes
.m4ausage and identifiesaudio/mp4for audio-only MPEG-4 files. ↩