Extract Audio from WebM to MP3 — Free Online Tool

Extract the audio track from a WebM file and convert it to MP3 by transcoding the Opus or Vorbis audio stream using the LAME encoder. Ideal for pulling audio from web-sourced videos, browser recordings, or HTML5 media files into the most universally compatible audio format.

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 typically contain audio encoded in either Opus or Vorbis — neither of which is natively playable as MP3. During this conversion, FFmpeg discards the video stream entirely (no video decoding happens) and decodes the Opus or Vorbis audio track, then re-encodes it using the LAME MP3 encoder at your chosen bitrate. This is a lossy-to-lossy transcode: the audio is decoded from its original compressed form and re-compressed as MP3, which introduces a small additional generation loss. The output is a standard MP3 file with no video data, significantly smaller than the original WebM if it contained video.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg command-line tool. In the browser version of this tool, the same logic runs via FFmpeg.wasm compiled to WebAssembly, so no files leave your device.
-i input.webm Specifies the input WebM file. FFmpeg reads the Matroska-based WebM container and identifies the available streams — typically a VP9 video track and an Opus or Vorbis audio track.
-vn Disables video output entirely, telling FFmpeg to ignore the VP9 (or VP8) video stream in the WebM file. This ensures the output is a pure audio MP3 with no video track and speeds up processing since video frames are never decoded.
-c:a libmp3lame Selects the LAME MP3 encoder to transcode the WebM's Opus or Vorbis audio into MP3 format. LAME is the industry-standard open-source MP3 encoder and produces the most widely compatible MP3 output across all devices and platforms.
-b:a 128k Sets the MP3 audio output bitrate to 128 kilobits per second, the default and most common MP3 bitrate. This provides a good balance between file size and audio quality for both speech and music. Increase to 192k or 320k for higher-fidelity output.
output.mp3 Defines the output filename and format. The .mp3 extension tells FFmpeg to write an MPEG Audio Layer III file containing only the re-encoded audio stream with ID3 tag metadata support.

Common Use Cases

  • Extract a music track or soundtrack from a WebM video downloaded from a web platform that delivers media in WebM format for HTML5 playback
  • Convert a browser-captured screen recording (which saves as WebM in Chrome and Firefox) into an MP3 to use the narration as a podcast episode or voiceover
  • Pull audio from a WebM lecture or conference recording to create an MP3 for offline listening on devices that don't support WebM playback
  • Convert a WebM audio file (used for web-streaming with Opus codec) to MP3 for compatibility with car stereos, older media players, or DJ software
  • Extract audio from an animated WebM clip or web advertisement to isolate a jingle or sound effect for use in a project
  • Prepare a WebM recording from a video call or browser-based tool (such as Loom or OBS web output) as an MP3 for transcription services that require MP3 input

Frequently Asked Questions

Yes, there will be some quality loss. WebM typically uses Opus or Vorbis, both of which are modern, efficient codecs that often sound better than MP3 at the same bitrate. Converting to MP3 requires decoding the original compressed audio and re-encoding it with the LAME encoder — a lossy-to-lossy transcode. At 128k bitrate, the result is generally acceptable for speech and most music, but audiophiles may notice a subtle degradation, especially if the original Opus stream was already at a low bitrate.
MP3 files can only contain MPEG Layer III audio, so if your WebM contains Opus or Vorbis audio (which is nearly always the case), a direct remux is impossible — the codecs are incompatible with the MP3 container. FFmpeg must fully decode the Opus or Vorbis stream and re-encode it as MP3 using libmp3lame. There is no lossless path from WebM audio to MP3.
The video stream is completely ignored and discarded. The -vn flag tells FFmpeg to skip all video processing, so VP9 (or VP8) video data is never decoded. This makes the conversion faster and produces a pure audio MP3 file with no video track.
Replace the 128k value in the -b:a 128k flag with your preferred bitrate. MP3 supports 64k, 96k, 128k, 160k, 192k, 224k, 256k, and 320k. Higher values produce better audio quality and larger files — 192k is a good choice for music, while 96k is usually sufficient for speech. For example: ffmpeg -i input.webm -vn -c:a libmp3lame -b:a 192k output.mp3
FFmpeg will attempt to copy compatible metadata from the WebM container to MP3's ID3 tag format, but WebM uses its own metadata schema and not all fields map cleanly. Common tags like title and artist typically survive the conversion, but chapter markers and multiple audio track labels present in the WebM will be lost since MP3 does not support those features. You may want to verify and manually edit ID3 tags in the output MP3 after conversion.
Yes. On Linux or macOS, you can use a shell loop: for f in *.webm; do ffmpeg -i "$f" -vn -c:a libmp3lame -b:a 128k "${f%.webm}.mp3"; done. On Windows Command Prompt, use: for %f in (*.webm) do ffmpeg -i "%f" -vn -c:a libmp3lame -b:a 128k "%~nf.mp3". The browser-based tool on this page processes one file at a time, so the FFmpeg command is especially useful for bulk conversions on your local machine.

Technical Notes

WebM's default audio codec is Opus, a modern codec standardized by the IETF that outperforms MP3 in quality at equivalent bitrates — particularly below 128k. Vorbis is the older WebM audio option and similarly outperforms MP3 at low bitrates. Because MP3 (MPEG-1 Audio Layer III via libmp3lame) is a legacy format from 1993, the transcode represents a step down in codec efficiency, though the practical audible difference at 128k or above is minimal for most listeners. MP3 does not support gapless playback natively without LAME-specific header extensions, which FFmpeg's libmp3lame encoder does include. The MP3 format also does not support multichannel audio beyond stereo — if your WebM source contains surround sound, FFmpeg will downmix it to stereo automatically. WebM's support for multiple audio tracks, subtitles, and chapters is irrelevant here since all of that is stripped in an audio-only MP3 extraction. The resulting MP3 file will be substantially smaller than the original WebM if the WebM contained video, and roughly comparable in size if the WebM was audio-only at a similar bitrate.

Related Tools