Convert AVI to MP3 — Free Online Tool
Extract and convert the audio track from an AVI file into a universally compatible MP3 using the LAME encoder. This tool strips the video stream entirely and re-encodes the audio — whether it was originally stored as MP3, AAC, or Vorbis in the AVI container — into a standalone MP3 file at 128k bitrate by default.
to
FFmpeg Command
Copy this command to run the same conversion locally with FFmpeg on your desktop. Download FFmpeg
Drop your AVI file here
or click to browse
Free — no uploads, no signups. Your files never leave your browser.
Settings
Note: Browser-based encoding uses approximate quality targets. For precise CRF compression, copy the FFmpeg command above and run it on your desktop.
Estimated output:
Conversion Complete!
DownloadHow It Works
AVI files store interleaved audio and video data in separate streams within Microsoft's legacy RIFF-based container. During this conversion, FFmpeg discards the video stream entirely and extracts only the audio stream. Because MP3 is an audio-only format, no video data is carried over. The extracted audio — which inside the AVI may have been encoded as MP3 (libmp3lame), AAC, or Vorbis — is then re-encoded using the LAME encoder (libmp3lame) to produce a proper standalone MP3 file. Even if the source audio was already MP3-encoded inside the AVI, FFmpeg re-encodes it rather than copying the raw stream, because AVI's MP3 framing and header structure is not the same as a standalone .mp3 file. This means there is always one generation of lossy re-encoding involved.
What Each Flag Does
| Flag | What it does |
|---|---|
ffmpeg
|
Invokes the FFmpeg multimedia processing tool. This is the same underlying engine that runs in your browser via WebAssembly (FFmpeg.wasm) when you use the online tool. |
-i input.avi
|
Specifies the input file — in this case an AVI container that holds interleaved audio and video streams in Microsoft's legacy RIFF-based format. Replace 'input.avi' with the actual path to your file when running locally. |
-c:a libmp3lame
|
Instructs FFmpeg to encode the audio stream using the LAME MP3 encoder (libmp3lame), which produces the standard MPEG Audio Layer III output required for a proper standalone .mp3 file. No video codec is specified because MP3 is audio-only and the video stream from the AVI is automatically dropped. |
-b:a 128k
|
Sets the MP3 audio bitrate to 128 kilobits per second using constant bitrate (CBR) mode. This is the default balance point between file size and audio quality — suitable for voice and general-purpose audio, though 192k or 320k is recommended if the AVI source contains music or high-fidelity audio. |
output.mp3
|
Defines the output filename and format. The .mp3 extension tells FFmpeg to write a standalone MPEG Audio Layer III file containing only the re-encoded audio stream extracted from the AVI, with no video data. |
Common Use Cases
- Rip the soundtrack or background music from an old AVI video clip to use as a standalone audio file in a media player or playlist
- Extract dialogue or narration from a legacy AVI screen recording or presentation to repurpose as a podcast episode or audio transcript source
- Pull the audio from an AVI-format home video archive so it can be played on a device or platform that does not support the AVI container
- Reduce file size drastically by discarding the video stream from a large AVI file when only the audio content is needed for editing or archiving
- Convert AVI audio tracks to MP3 for uploading to platforms like SoundCloud or embedding in websites that expect standard MP3 audio
- Extract audio from old AVI game cutscenes or software tutorials for use as reference material without needing a video player
Frequently Asked Questions
Yes, some quality loss is unavoidable. Even if the audio inside the AVI was already encoded as MP3, FFmpeg must re-encode it rather than doing a direct stream copy, because standalone MP3 files require proper MPEG audio framing that differs from how MP3 audio is embedded in an AVI container. This means you are always doing at least one generation of lossy re-encoding. To minimize quality loss, use the highest bitrate option (320k) when the source audio is high-quality, and avoid repeatedly converting between lossy formats.
If the AVI file contains AAC or Vorbis audio (which is technically non-standard for AVI but does occur), FFmpeg will decode that audio stream fully and then re-encode it using the LAME encoder to produce MP3 output. There is no direct passthrough from AAC or Vorbis to MP3 — it always goes through a full decode-then-encode cycle. The quality of the result depends on the original bitrate of the source audio and the MP3 bitrate you select for the output.
AVI files store metadata differently from MP3, using RIFF INFO chunks rather than ID3 tags. FFmpeg will attempt to map common metadata fields like title, artist, and date from the AVI's INFO chunks into ID3v2 tags in the output MP3, but results vary depending on how the original AVI was authored. Fields that do not have a direct AVI-to-ID3 mapping may be dropped. If accurate metadata in the MP3 is important, you may want to tag the output file manually using a tool like Mp3tag after conversion.
Replace the '128k' value in the '-b:a 128k' flag with your desired bitrate. For example, use '-b:a 320k' for the highest standard MP3 quality, or '-b:a 192k' for a good balance between file size and quality. The command would look like: ffmpeg -i input.avi -c:a libmp3lame -b:a 320k output.mp3. Higher bitrates produce larger files but preserve more audio detail, which matters most when the source AVI contains music or high-fidelity audio.
Yes, on the command line you can use a shell loop to process multiple files. On Linux or macOS, run: for f in *.avi; do ffmpeg -i "$f" -c:a libmp3lame -b:a 128k "${f%.avi}.mp3"; done. On Windows PowerShell, use: Get-ChildItem *.avi | ForEach-Object { ffmpeg -i $_.FullName -c:a libmp3lame -b:a 128k ($_.BaseName + '.mp3') }. This processes each AVI in the current directory and saves a corresponding MP3 with the same base filename. The browser-based tool processes files one at a time.
AVI files contain both a video stream and an audio stream, and the video data typically accounts for the vast majority of the file size — often 90% or more. When converting to MP3, the video stream is completely discarded and only the audio is kept. A 1GB AVI video might produce an MP3 of just 30–80MB depending on duration and the chosen audio bitrate. This dramatic size reduction is purely because MP3 is audio-only and does not carry any video data.
Technical Notes
The AVI container uses the RIFF (Resource Interchange File Format) structure and has been a legacy format since the 1990s. It does not natively support modern audio codecs like AAC or Vorbis according to the original specification, though many encoders have written such audio into AVI files anyway, leading to broad inconsistency in the wild. When FFmpeg processes an AVI for audio extraction, it reads the audio stream regardless of codec (MP3/libmp3lame, AAC, or Vorbis as supported by this tool) and re-encodes it to MP3 via libmp3lame. AVI also supports multiple audio tracks, but this conversion extracts only the default (first) audio track into the MP3 output — additional audio tracks are silently discarded since MP3 is a single-stream format. The output MP3 uses CBR (constant bitrate) encoding as controlled by the -b:a flag, which gives predictable file sizes. If VBR output is preferred for better quality-to-size ratio, you can modify the local FFmpeg command to use '-q:a 2' instead of '-b:a 128k' for approximately 190kbps average VBR quality.