Convert MPG to MP3 — Free Online Tool
Extract and convert the audio track from an MPG video file into a standalone MP3 using the LAME encoder. This is ideal for pulling audio from MPEG-1/2 video sources — such as VCD rips or broadcast recordings — where the original audio is stored as MP2 and needs to be transcoded into the universally compatible MP3 format.
to
FFmpeg Command
Copy this command to run the same conversion locally with FFmpeg on your desktop. Download FFmpeg
Drop your MPG 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
MPG files typically store audio as MP2 (MPEG Audio Layer II), a predecessor to MP3 that is less widely supported by modern media players and devices. During this conversion, FFmpeg discards the video stream entirely and decodes the MP2 audio track from the MPEG-1 or MPEG-2 container. That decoded audio is then re-encoded using the libmp3lame encoder to produce an MP3 file. Because MP2 and MP3 are different codecs — not just different containers — re-encoding is required, which introduces a small amount of additional generation loss on top of the original lossy compression. The output is a pure audio file with no video data, significantly smaller than the original MPG.
What Each Flag Does
| Flag | What it does |
|---|---|
ffmpeg
|
Invokes the FFmpeg tool, which handles the demuxing of the MPG container, decoding of the MP2 audio stream, and re-encoding to MP3 entirely within your browser via WebAssembly. |
-i input.mpg
|
Specifies the input MPG file. FFmpeg reads the MPEG-1 or MPEG-2 program stream, identifies the video and audio tracks inside, and prepares the MP2 audio track for decoding. |
-c:a libmp3lame
|
Selects the LAME MP3 encoder for the audio stream. Since the source audio is MP2 and the target is MP3 — two different codecs — re-encoding through libmp3lame is mandatory to produce a valid MP3 output. |
-b:a 128k
|
Sets the MP3 output bitrate to 128 kilobits per second, a common baseline for general listening. You can increase this to 192k or 320k if you need higher fidelity, particularly for music extracted from broadcast-quality MPG recordings. |
output.mp3
|
Defines the output filename and format. The .mp3 extension signals FFmpeg to write a standard MPEG Audio Layer III file containing only the re-encoded audio track with no video data. |
Common Use Cases
- Extracting the audio commentary or narration from a digitized VHS or VCD recording stored as an MPG file
- Pulling a music performance or concert recording from an MPEG-2 broadcast capture for playback on a portable MP3 player
- Converting old DVD-ripped MPG files to MP3 so the audio can be imported into a DAW or podcast editing workflow
- Archiving the audio track from legacy MPEG-1 training or educational videos where only the audio content is needed going forward
- Preparing audio from broadcast MPG recordings for upload to platforms like Spotify or SoundCloud that require standard audio formats
- Stripping the audio from a surveillance or security camera MPG clip for transcription or audio analysis purposes
Frequently Asked Questions
Yes, some quality loss is unavoidable. MPG files typically store audio as MP2, which is already a lossy format, and transcoding that to MP3 with libmp3lame introduces a second generation of lossy compression. At the default 128k bitrate the result is generally acceptable for speech and casual listening, but for music or high-fidelity content you should increase the bitrate to 192k or 320k to minimize perceptible degradation.
MPG containers following the MPEG-1 and MPEG-2 standards were designed with MP2 (MPEG Audio Layer II) as the native audio codec. MP2 predates MP3 and was the broadcast and VCD/DVD standard of its era. This is why legacy VCD rips, digitized VHS tapes, and broadcast recordings in MPG format almost always contain MP2 audio rather than MP3.
Change the value after the -b:a flag to a higher bitrate. For example, replace '128k' with '192k', '256k', or '320k' for better quality: ffmpeg -i input.mpg -c:a libmp3lame -b:a 320k output.mp3. Keep in mind that since the source MP2 audio is already lossy, there is a ceiling to how much quality can be recovered regardless of the target bitrate.
Yes. On Linux or macOS you can use a shell loop: for f in *.mpg; do ffmpeg -i "$f" -c:a libmp3lame -b:a 128k "${f%.mpg}.mp3"; done. On Windows Command Prompt use: for %f in (*.mpg) do ffmpeg -i "%f" -c:a libmp3lame -b:a 128k "%~nf.mp3". This processes each MPG in the current directory and outputs a matching MP3 file.
MPG containers have very limited metadata support compared to MP3's ID3 tag system, so most MPG files carry little to no embedded metadata. FFmpeg will attempt to copy any available metadata to ID3 tags in the output MP3, but in practice you will likely need to manually add ID3 tags such as artist, title, and album using a tag editor like Mp3tag after conversion.
No. Because MP3 is a pure audio format with no video container capability, the video stream is automatically dropped during this conversion. Only the audio track is decoded and re-encoded into the output MP3. If you need to retain the video, you should convert to a video format like MP4 instead.
Technical Notes
MPG is a multiplexed container format governed by the MPEG-1 (ISO/IEC 11172) and MPEG-2 (ISO/IEC 13818) standards, commonly encountered in VCD archives, digitized broadcast recordings, and legacy DVD rips. The audio stream inside MPG is almost universally encoded as MP2 at bitrates between 128k and 384k. Because MP2 and MP3 are architecturally distinct codecs — despite sharing MPEG audio lineage — they cannot be remuxed; full decode-and-re-encode through libmp3lame is required. This means the output MP3 is a second-generation lossy file. The MP3 format supports ID3v2 metadata tags, but since MPEG-2 program streams carry minimal metadata, the output MP3 will typically have blank tag fields. MPG files do not support chapters, subtitles, or multiple audio tracks in any meaningful way that would affect this conversion. File size after conversion will be dramatically smaller than the source MPG because all video data is discarded and only the audio remains.