Convert WebM to MP3 — Free Online Tool

Convert WebM files to MP3 by extracting the Opus or Vorbis audio track and re-encoding it using the LAME MP3 encoder. The resulting MP3 works universally across every device, media player, and platform — ideal when you need broad compatibility without the WebM container.

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

WebM files store audio using either the Opus or Vorbis codec inside a Matroska-based container. Neither of these codecs can be placed directly into an MP3 file, so this conversion performs a full audio transcode: the Opus or Vorbis stream is decoded to raw PCM audio, then re-encoded using the LAME encoder (libmp3lame) into the MPEG Audio Layer III format at your chosen bitrate. Any video track in the WebM file is discarded entirely, since MP3 is a pure audio format. This double-encoding step (decode then re-encode) means some audio quality is lost compared to the original, which is expected when converting between two lossy formats.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg command-line tool. In this browser-based tool, the same binary runs locally via WebAssembly (FFmpeg.wasm), so no file ever leaves your device.
-i input.webm Specifies the input file — your WebM source containing a VP9 video track and an Opus or Vorbis audio track. FFmpeg reads both streams but only the audio will be used in the output.
-c:a libmp3lame Selects the LAME encoder to transcode the WebM's Opus or Vorbis audio into MP3 format. This is required because MP3 only supports MPEG Audio Layer III audio, which is incompatible with either codec found in WebM files.
-b:a 128k Sets the MP3 output bitrate to 128 kilobits per second, a standard default that produces a good balance between file size and audio quality. Increase to 192k or 320k for better fidelity, or decrease to 96k or 64k to reduce file size for speech-only content.
output.mp3 Defines the output filename and tells FFmpeg to write an MP3 file. The .mp3 extension signals the format, causing FFmpeg to automatically discard the video stream from the source WebM since MP3 cannot contain video data.

Common Use Cases

  • Extract the audio from a WebM screen recording or browser-captured video to create a podcast episode or audio-only archive
  • Convert a music video downloaded in WebM format to MP3 so it plays in car stereos, older media players, or devices that don't support WebM
  • Strip the audio from a WebM lecture or conference recording to create an MP3 you can listen to offline on any device
  • Prepare audio content for upload to platforms like SoundCloud or older podcast hosts that require MP3 and do not accept Opus or WebM
  • Convert a collection of WebM audio files ripped from YouTube or web sources into MP3 for use in a DJ set or audio editing project that requires MP3 input
  • Reduce file size of a WebM video by discarding the video track entirely and producing a compact MP3 audio file for sharing via email or messaging apps

Frequently Asked Questions

There will be some quality loss because this conversion transcodes between two lossy formats — Opus or Vorbis in the WebM is decoded and then re-encoded as MP3. Opus in particular is technically superior to MP3 at the same bitrate, so the MP3 output will not be quite as efficient. At 128k bitrate the result is generally transparent for casual listening, but audiophiles may notice subtle degradation. If you need the highest possible quality, use 192k or 320k bitrate in the output settings.
No. The MP3 container format only supports MPEG Audio Layer III encoded audio, which is what the LAME encoder produces. Opus and Vorbis, the codecs commonly found in WebM files, are entirely incompatible with the MP3 format. This is why a full transcode is required — the audio must be decoded and completely re-encoded, not simply remuxed.
The video track is dropped entirely. MP3 is a pure audio format with no container support for video streams, so FFmpeg automatically discards any VP9 or VP8 video data when writing to an MP3 output file. Only the first audio track from the WebM is encoded into the MP3. If your WebM has no audio track at all, the command will produce an error or an empty file.
Basic metadata such as title, artist, and album fields may be carried over if they exist in the WebM file, because FFmpeg attempts to map compatible metadata to MP3's ID3 tag system. However, WebM metadata fields do not map perfectly to ID3, so some tags may be lost or renamed. Chapter markers, subtitle tracks, and multiple audio track information from the WebM will not be preserved, as MP3 supports none of these features.
Replace the value after -b:a with your desired bitrate. For example, use '-b:a 320k' for the highest standard MP3 quality or '-b:a 96k' for a smaller file with acceptable quality for speech. The full command would become: ffmpeg -i input.webm -c:a libmp3lame -b:a 320k output.mp3. MP3 supports bitrates from 64k up to 320k, and 128k is the common default that balances file size and quality for music.
Yes. On Linux or macOS you can use a shell loop: for f in *.webm; do ffmpeg -i "$f" -c:a libmp3lame -b:a 128k "${f%.webm}.mp3"; done. On Windows Command Prompt use: for %f in (*.webm) do ffmpeg -i "%f" -c:a libmp3lame -b:a 128k "%~nf.mp3". This applies the same conversion settings to every WebM file in the current directory, naming each output MP3 after its source file.

Technical Notes

WebM's default audio codec, Opus, is a modern codec that outperforms MP3 in compression efficiency — meaning a 128k Opus stream typically sounds better than a 128k MP3 stream. Converting to MP3 therefore involves a quality ceiling imposed by the output format, not just the bitrate. The LAME encoder (libmp3lame) is the de facto standard for MP3 encoding and produces compliant, widely compatible output. MP3 supports a maximum of two audio channels (stereo); if the WebM source contains surround audio, FFmpeg will downmix it to stereo automatically. The MP3 format does not support transparency, chapters, subtitles, or multiple audio tracks — all of these WebM features are discarded. File size for a typical MP3 at 128k is approximately 1 MB per minute of audio, which is significantly smaller than a WebM video file of equivalent duration. If the source WebM uses Vorbis rather than Opus as its audio codec, the transcode process is identical — both are decoded to PCM before being handed to the LAME encoder.

Related Tools