← Back to Tools
🎵

MP4 to MP3

Extract audio from videos instantly

Loading tool...

Quick start: extract audio from any video

  1. Select your video — Drag and drop MP4, MOV, WebM, AVI, MKV, or M4A. ffmpeg.wasm reads the container header first.
  2. Conversion runs locally — FFmpeg demuxes the video stream, re-encodes audio to 192 kbps MP3 via the built-in LAME encoder.
  3. Download the MP3 — Click Download when the progress bar hits 100%. Named after your source file.

How ffmpeg.wasm works in your browser

This tool runs ffmpeg.wasm — a full WebAssembly port of the FFmpeg multimedia framework — directly inside your browser tab. FFmpeg is the same open-source engine used by VLC, Handbrake, and YouTube's internal processing pipeline. The WASM build (~25 MB core + codec libraries) loads once on first use; everything after that runs on your CPU without touching the network.

The conversion pipeline

StepFFmpeg operationDetail
1. Loadffmpeg.wasm initialises in a Web Worker~25 MB WASM binary cached after first visit
2. DemuxContainer parser reads MP4/MOV/MKV structureDetects audio codec (AAC, MP3, Opus, PCM, etc.)
3. StripVideo stream discarded entirelyOnly audio packets are passed forward
4. DecodeAudio packets decoded to raw PCM samplesSample rate and channel layout preserved
5. EncodeLAME encoder writes 192 kbps CBR MP3Constant bitrate — predictable file size
6. ExportMP3 written to in-browser virtual FSTriggered as a browser download blob

All steps run inside a Web Worker — the main UI thread stays responsive while a 45-minute lecture converts in the background.

Supported containers and codecs

ContainerCommon audio codecsSupported
MP4AAC, MP3Yes
MOVAAC, PCMYes
WebMOpus, VorbisYes
MKVAAC, FLAC, MP3Yes
AVIMP3, PCMYes
M4AAAC (audio-only)Yes
FLVMP3, AACYes

RAM sizing guide

Because ffmpeg.wasm processes files in memory (not streaming from disk), available RAM is the practical limit:
Video file sizeRecommended deviceExpected result
Under 100 MBAny modern phone or laptopWorks smoothly
100–500 MBDesktop/laptop with 8 GB+ RAMWorks well
500 MB–1 GBDesktop with 16 GB+ RAMUsually works
Over 1 GBHigh-RAM desktop onlyMay fail on low-memory devices

On phones, keep files under 200–300 MB for reliable conversion.

Why ffmpeg.wasm vs a cloud converter

Most online video converters upload your file to a server, process it remotely, and serve back a download link. That means upload wait time proportional to file size, free-tier caps at 100–500 MB, and privacy exposure — the service has access to your video content.

With ffmpeg.wasm running locally, conversion speed is limited only by your CPU, not your internet connection. A 20-minute lecture that might take 3 minutes to upload converts to MP3 in ~15 seconds locally on a mid-range laptop.

Practical use cases

Podcast and lecture archiving: Record a Zoom call or screen capture, drop the video here, and extract the audio for transcription or podcast distribution.

Music and sound design: Extract audio from video clips for background music, sound effects, or sample material. 192 kbps retains all frequency detail needed for mixing.

Storage optimization: Video files are 5–20× larger than their audio tracks. If you only need the audio going forward, extract the MP3 and delete the heavy source file.

FAQs about MP4 to MP3

Everything you might be wondering — answered.

Does this upload my video file to a server?+
No. ffmpeg.wasm runs as a Web Worker inside your browser tab. The video data is read from local memory and processed entirely on your device. No bytes of your file are transmitted over the network.
What video formats are supported?+
Because the full FFmpeg demuxer library is compiled in, the tool supports MP4 (H.264, H.265), MOV, WebM, AVI, MKV, and FLV containers. Audio-only formats like M4A also work.
What bitrate is the output MP3?+
The default output is 192 kbps CBR MP3, which is transparent-quality for most content. This is hardcoded to keep the WASM binary size manageable — variable bitrate (VBR) encoding is planned for a future update.
My video is 1 GB. Will it work?+
It depends on your device's available RAM. ffmpeg.wasm processes the file in memory, so a 1 GB video needs roughly 1–1.5 GB of free browser RAM. On desktop machines with 8 GB+ of RAM, this typically works fine. On phones or low-memory devices, limit files to under 300 MB.