Extract Audio from MP4 to MP3 — Free Online Tool

Extract the audio track from an MP4 video file and save it as an MP3 using the LAME encoder. This tool strips the video stream entirely, re-encoding only the AAC or other audio codec found in the MP4 into universally compatible MP3 format — ideal for pulling music, speech, or any audio from video files.

FFmpeg Command

Copy this command to run the same conversion locally with FFmpeg on your desktop. Download FFmpeg

Free — no uploads, no signups. Your files never leave your browser.

Estimated output:

Conversion Complete!

Download

How It Works

MP4 files typically store audio using the AAC codec, which is not natively compatible with MP3 players and many audio-only workflows. This conversion discards the video stream entirely (no video decoding or encoding occurs) and re-encodes the audio track using the libmp3lame encoder to produce an MP3 file at 128kbps by default. Because AAC and MP3 are both lossy formats using different compression algorithms, this is a lossy-to-lossy transcode — the audio is fully decoded from AAC and then re-compressed as MP3, so some generational quality loss is inherent. The output is a standalone MP3 file containing only audio, with no video data, subtitles, chapters, or secondary audio tracks from the original MP4.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg command-line tool. This is the same underlying engine that runs in your browser via WebAssembly — copying this command lets you run the identical conversion locally on your desktop for files over 1GB or for batch processing.
-i input.mp4 Specifies the input file as an MP4 container. FFmpeg will read and demux its streams — which typically include an H.264 video track and an AAC audio track — before applying the output options.
-vn Stands for 'video none' — this flag tells FFmpeg to exclude all video streams from the output entirely. Because the target format is MP3 (audio only), no video decoding happens at all, which makes the conversion very fast regardless of video resolution or length.
-c:a libmp3lame Selects the LAME MP3 encoder for the audio stream. Since the MP4's audio is typically AAC — a different lossy codec — FFmpeg must fully decode the AAC audio and re-encode it as MP3 using this encoder. libmp3lame is the standard encoder for producing MP3 files with broad device and platform compatibility.
-b:a 128k Sets the MP3 audio bitrate to 128 kilobits per second, which is the conventional baseline for perceptually acceptable stereo audio. You can raise this to 192k or 320k for higher fidelity, or lower it to 96k or 64k for smaller file sizes when quality is less critical.
output.mp3 Defines the output file name and format. The .mp3 extension tells FFmpeg to use the MP3 muxer, producing a standalone audio file with no video, no chapters, and no subtitle data — just the encoded audio stream and any mapped ID3 metadata.

Common Use Cases

  • Rip the audio from a recorded lecture or webinar MP4 to listen to it as a podcast during your commute
  • Extract a music performance or live concert video's audio track to add to your MP3 music library
  • Pull dialogue or commentary from a screen recording to use as a standalone voiceover file in a video editor
  • Convert a downloaded MP4 music video to MP3 so it plays on older car stereos or portable MP3 players that don't support video
  • Extract interview audio from a video file to submit to a podcast host or transcription service that requires MP3 input
  • Isolate the audio from a short film or demo reel to create an audio-only preview for a portfolio submission

Frequently Asked Questions

Yes, some quality loss is unavoidable. Most MP4 files store audio as AAC, and converting to MP3 means fully decoding the AAC audio and re-encoding it using a different lossy algorithm (MPEG Layer III via LAME). This generational loss is usually subtle at 128kbps or higher, but it is technically a quality degradation compared to the source. If preserving audio fidelity is critical, consider extracting to a lossless format like WAV or FLAC instead of MP3.
FFmpeg will attempt to map metadata from the MP4 container to ID3 tags in the MP3 file, and common fields like title and artist often carry over. However, MP4 metadata fields don't always map perfectly to ID3v2 tags, and some custom or extended metadata may be dropped. You may want to verify and edit the ID3 tags in the output MP3 using a dedicated tag editor after conversion.
By default, FFmpeg selects the first (primary) audio track from the MP4 for extraction. MP3 is a single-track format with no support for multiple audio streams, so secondary tracks — such as alternate language dubs or commentary tracks — are discarded. If you need a specific non-default audio track, you can add a stream selector like -map 0:a:1 to the FFmpeg command to pick the second audio track explicitly.
Replace the -b:a 128k value in the command with your desired bitrate. For example, use -b:a 192k for better quality or -b:a 320k for the highest standard MP3 bitrate. The full command would be: ffmpeg -i input.mp4 -vn -c:a libmp3lame -b:a 320k output.mp3. Keep in mind that if the source AAC audio was encoded at a low bitrate, increasing the MP3 bitrate won't recover lost detail — it will only increase file size.
Yes, on Linux or macOS you can loop over files with a shell command: for f in *.mp4; do ffmpeg -i "$f" -vn -c:a libmp3lame -b:a 128k "${f%.mp4}.mp3"; done. On Windows Command Prompt, use: for %f in (*.mp4) do ffmpeg -i "%f" -vn -c:a libmp3lame -b:a 128k "%~nf.mp3". This applies the same extraction settings to every MP4 in the directory, which is particularly useful for processing large video archives.
The dramatic file size reduction comes from two factors: the video stream — which accounts for the vast majority of data in a typical MP4 — is completely removed, and the audio is encoded at 128kbps, which is a relatively compact bitrate for MP3. For a standard MP4 with 1080p video, the video stream alone might represent 90–99% of the file size, so stripping it and keeping only compressed audio yields a very small output file.

Technical Notes

The libmp3lame encoder used in this conversion is the reference-quality open-source LAME implementation, which produces MP3 files broadly compatible with virtually every device, browser, media player, and streaming platform that supports audio playback. MP3 supports stereo and mono channel layouts; if the source MP4 contains surround sound (e.g., 5.1 channel AAC), libmp3lame will downmix to stereo by default. The MP3 format does not support chapters or subtitle tracks, so any chapter markers or subtitle streams embedded in the MP4 are dropped silently. At 128kbps, the output is suitable for speech and general listening but may show compression artifacts on complex music; 192kbps or higher is recommended for music archiving. Note that because both source (AAC) and output (MP3) are lossy, this pipeline is not suitable for archival purposes — if you need a lossless extraction, use a WAV or FLAC output format instead. The -vn flag ensures zero video processing overhead, making this conversion extremely fast regardless of the original video's resolution or length.

Related Tools