2026-06-09
Converting WebM to MP3: Browser Recordings and Screen Captures
WebM is Chrome's default recording format for MediaRecorder API and screen captures. Here's how to convert it to the universally compatible MP3.
Where Do WebM Files Come From?
WebM files typically originate from:
- Chrome's screen recorder (
chrome://flags > Screen capture) - MediaRecorder API in web apps — many voice memo tools, online meeting recorders, and browser-based audio apps output WebM
- Firefox's built-in screenshot/recording tool
- OBS Studio (when configured for browser compatibility)
- Loom, Screencastify and similar extensions
The WebM Container
WebM is an open container format developed by Google based on the Matroska (MKV) spec. It typically contains:
- Video: VP8 or VP9 codec
- Audio: Vorbis or Opus codec
For audio-only WebM (from MediaRecorder), the file contains only an Opus or Vorbis audio stream. Opus is particularly common in modern browsers — it offers excellent quality at low bitrates.
Opus Audio: Should You Even Convert?
Opus at 96 kbps sounds better than MP3 at 128 kbps due to a more efficient codec. If your destination supports Opus (most modern apps and browsers do), consider keeping it as WebM.
Convert to MP3 when:
- The destination requires MP3 specifically (some podcast platforms, legacy devices)
- You're sharing with users on older hardware
- Compatibility is more important than optimal quality
Converting with FFmpeg
Our converter runs this FFmpeg command in your browser:
ffmpeg -i input.webm -b:a 192k output.mp3
FFmpeg automatically detects the Opus/Vorbis stream, decodes it, and re-encodes to MP3 using libmp3lame.
Tips for MediaRecorder Output
If you're recording audio in the browser yourself:
// Request Opus in WebM for best quality
const stream = await navigator.mediaDevices.getUserMedia({ audio: true });
const recorder = new MediaRecorder(stream, {
mimeType: 'audio/webm;codecs=opus'
});
Then convert the resulting WebM to MP3 here for universal compatibility.