MP3 File
Definition
MP3 is MPEG-1 and MPEG-2 Audio Layer III, standardised in 1993 and free of patent restrictions since 2017. The extension is .mp3 and the MIME type is audio/mpeg, which catches people out — audio/mp3 is not the registered type. Files use lossy compression at a chosen bitrate, either constant, typically 128, 192 or 320 kbps, or variable, where the encoder spends bits where the music needs them. The arithmetic is easy to carry around: 128 kbps is about 1 MB per minute of stereo audio, 192 kbps about 1.4 MB. Metadata lives in ID3 tags, with ID3v2 at the start of the file and the older 128-byte ID3v1 block at the end, and a player reads title, artist and cover art from there.
Why It Matters
Bitrate is the only decision that matters much, and speech and music want very different answers. A 45-minute interview at 192 kbps in stereo is around 62 MB; the same recording at 96 kbps in mono is around 31 MB and sounds no worse, because a single voice has neither stereo image nor much high-frequency content to preserve. Halving the file halves what every listener downloads and what counts against a bandwidth limit, which matters once an episode is fetched a few thousand times. Opus in a WebM container would be smaller again at the same quality, but MP3 remains the file anyone can download, email, drop into a car stereo or open on a ten-year-old laptop, and that is usually worth the extra megabytes.
How It Works
The encoder splits the signal into frequency bands and applies a psychoacoustic model, discarding what is masked by louder sounds nearby and rolling off the top of the spectrum — around 16 kHz at lower bitrates. The result is a stream of independent frames, each with its own header, which is why an MP3 can be cut or joined crudely and still play. For speech, ffmpeg -i interview.wav -c:a libmp3lame -b:a 96k -ac 1 interview.mp3 is a sensible recipe; for music, -q:a 2 gives variable bitrate averaging around 190 kbps. A browser audio element with controls will play the file straight from its URL provided the host answers Range requests, which is what lets a listener drag the playhead into the middle of an hour-long recording. Sending Content-Disposition as attachment instead forces a download rather than playback.
Real-World Example
A 38-minute interview is published on 99helpers at podcast-ep12.99helpers.site/episode.mp3. The WAV master was 390 MB; encoded at 96 kbps mono it is 26 MB, small enough that a listener on a phone starts hearing it within a second. A transcript sits on the same page as plain HTML, which makes the episode searchable, quotable and usable by anyone who would rather read it — and costs about 40 KB.
Common Mistakes
- ✕Uploading the WAV master because it sounds better — a 390 MB download is not better for anyone on the other end
- ✕Encoding speech in stereo at music bitrates — it doubles the file and adds nothing a listener can hear
- ✕Serving the file with the type audio/mp3 — the registered type is audio/mpeg, and some players refuse the other one
- ✕Publishing audio with no transcript — the content is invisible to search engines and unusable to deaf visitors
Related Terms
MP4 File
An MP4 file is a container holding compressed video and audio together, most often H.264 video with AAC audio. It is the safest video file to put on a web page.
Lossy Compression
Lossy compression shrinks a file by permanently throwing information away. What comes back out is an approximation of the original, chosen so that the missing part is hard to notice.
Transcript
A transcript is the full text of an audio or video recording, written out as a document rather than tied to the timeline. For audio-only content it is the text alternative; for video, a descriptive transcript also covers what is shown on screen.
Content-Disposition
Content-Disposition is an HTTP response header that tells the browser whether to show a file in the window or save it to disk, and what name to suggest when it saves. It is how one URL can either open a PDF in a tab or start a download.
Bandwidth Limit
A bandwidth limit is the total volume of data a host will send out on your behalf in a billing period, usually a month. It counts what leaves, not what is stored, so a tiny file can exhaust it and a huge one may never touch it.
Put a file online in seconds
Drop in a document, an image, a page or a whole static website and share the link — free, with no build step and no server to set up.
Host a file free →