Convert WebM to OPUS

Converting WebM to OPUS is the shortest crossing on this site: a browser-made WebM almost always holds Opus already, and the output is Opus in an Ogg container. In intent it is a rewrap. In fact it is a re-encode, and the second section explains why and what to use instead when that matters.

  • Where it runs In your browser. The file is never uploaded.
  • Lossy Some detail is traded for size. OPUS cannot hold everything a WebM can.
  • File size limit Up to 100 MB per file, free, without an account.
  • Worth knowing Every soundtrack the browser can decode comes across, so a film with a second language or a commentary keeps both. A track in AC-3, E-AC-3, DTS or TrueHD is dropped without a warning.

Up to 100 files at once. Mixed formats are fine.

The codec already matches, which is the whole story

A WebM made by a browser — a screen recording, a voice message, a MediaRecorder capture — carries Opus audio almost without exception, because that is what WebM was designed around and what every browser can encode. If you have looked inside the file with a media inspector and found Opus there, you were not mistaken.

So this conversion is not solving a codec problem. It is producing a file called `.opus` that holds the codec the source already held, in an Ogg container instead of a Matroska one. Everything worth knowing on this page follows from that, starting with the fact that a job this simple still costs something.

And the audio is decoded and compressed again anyway

The underlying library can lift compressed frames from one container into another without a decoder ever running. This page does not take that path, because it asks the encoder for a quality band, and requesting a bitrate is precisely what disqualifies the direct copy.

The result is a genuine second generation of lossy compression on audio that did not need one. For a voice note, a meeting recording or an interview it is inaudible at any of the three settings. For music — a rehearsal capture, a loop destined for a game, anything that will be layered or processed later — it is measurable, and the next section is the answer.

Two free commands that copy the stream instead

FFmpeg does it in one line: `ffmpeg -i input.webm -c:a copy output.opus` writes the same Opus packets into an Ogg container in about the time it takes to copy the file, losing nothing at all. That is the correct tool when fidelity matters and a terminal is available.

MKVToolNix approaches it from the other side. A WebM is a Matroska file, so `mkvextract` can pull the Opus track straight out of it, which is worth knowing if you already have the package installed for other reasons. Both routes beat this page on quality and speed and lose to it on convenience — no install, nothing to learn, and it runs on a phone.

A .opus file and an .ogg file from here are the same file

Both targets on this site write Opus into an Ogg container. Choosing OPUS rather than OGG changes the name of what you download and nothing inside it, and a tool that reads one reads the other once the extension stops confusing it.

That is worth stating plainly rather than implying a distinction. The reason both exist is that destinations disagree: some file pickers list `.opus` and not `.ogg`, some archives and importers expect the reverse, and Xiph’s own naming guidance is followed inconsistently across the software that reads these files. Pick whichever your destination accepts and do not look for a difference in the bytes.

Who asks for the extension spelled opus

Speech tooling, mostly. Voice and messaging pipelines standardised on Opus because it was built for real-time conversation, and a good deal of that software names the codec in its documentation and its file filter. Speech-recognition wrappers and audio-processing scripts often do the same, checking the extension before they check the contents.

That is a different reader from the one converting for a game engine or an open archive, who wants an Ogg because a policy names the container. It is also a different reader from the MP3 and M4A pages, who is solving a playback problem. Here nothing is broken and nobody is stuck — a specification simply named a file type, and this produces one.

Where the second pass shows and where it does not

Opus is unusually forgiving of being encoded twice, for the same reason it is good in the first place: it was designed to degrade gracefully rather than to fall apart at the edges of its range. Speech at conversational rates survives the round trip with nothing a listener can identify.

What does not survive as cleanly is anything with sustained high-frequency content — cymbals, room reverb, applause, a recorded instrument. The high band is worth its size there, because the first encode already spent detail and a lean second pass has nothing in reserve. If the recording is a master rather than a copy, use the FFmpeg route and skip the question entirely.

How small a long recording becomes

This is the practical reason to keep Opus rather than convert to something older. Hours of conversation at the small band occupy a fraction of what the same material would as MP3, and the quality difference at those rates runs in Opus’s favour rather than against it.

The other saving is on the picture. If the WebM is a screen recording rather than a voice note, the video track is discarded outright, which on any normal capture is where nearly all of the bytes were. An hour of shared screen becomes an hour of speech at a size that fits anywhere, which for a meeting archive is often the entire point of the exercise.

Renaming a WebM to .opus does not work

It is a tempting shortcut and it fails immediately. WebM is a restricted form of Matroska; an Opus file is an Ogg file. Those are different container specifications with different headers and different framing, and no amount of similarity between the audio inside them changes what a parser reads at byte zero.

What software does with the renamed file varies from a clear error to a silent failure, which is worse. If a tool has rejected your `.webm`, it is rejecting the container, and a real conversion — either this one or the FFmpeg copy — is the only thing that helps.

Voice recordings converted in the browser that made them

The decode and the encode both run inside the tab, using the Opus support every browser ships because real-time calls made it mandatory. Nothing carrying the audio is transmitted, there is no account, and up to a hundred files can be dropped at once and downloaded together as a ZIP.

On this pair that matters more than the file sizes suggest. The WebM files that need an Opus extension are voice messages, recorded calls and meeting captures — people talking, often about things that were not meant to travel. A conversion with no server in it is the only version of this job that does not create a copy somewhere else.

How to get an Opus file out of a WebM

  1. If fidelity matters and you have a terminal, use `ffmpeg -i input.webm -c:a copy output.opus` — it copies the stream and loses nothing.
  2. Otherwise drop the WebM here, choose OPUS, and pick the band your material needs.
  3. If your destination lists .ogg rather than .opus, the OGG target writes the same file under that name.

WebM and OPUS: the same codec, a different container

WebM compared with OPUS
WebMOPUS
Full nameWebM VideoOpus Audio
File extension.webm.opus
Media typevideo/webmaudio/opus
CompressionLossy — file size is bought with qualityLossy — file size is bought with quality
First published20102012
Published byGoogleXiph.Org
SpecificationRFC 6716
LicensingOpen standardOpen standard
Standing todayCurrentCurrent
Audio channelsup to 255
Opens in a browserEvery browserCurrent browsers
Considered insteadMP4, MKVAAC, MP3

Opening the result

Current browsers read OPUS; older ones do not. It is the less portable of the two, so it is worth being sure the program at the other end accepts it before sending one.

VLC and FFmpeg read both WebM and OPUS, so there is a way to check the result against the original without a second tool.

What each format is for

OPUS comes from Xiph.Org and dates from 2012, specified as RFC 6716. VLC, FFmpeg and Audacity all read it.

WebM to OPUS: re-encoding, extensions and playback

Are my WebM files uploaded anywhere?

No. This conversion runs entirely inside your browser, so the file never leaves your device. You can confirm it yourself: open the network tab of your browser's developer tools and convert something. You will see the page load, plus the analytics and advertising the site is paid for with — and nothing carrying your file. The engine behind this particular pair is mediabunny, a wrapper around WebCodecs, which borrows your device's own hardware decoders; your browser fetches it once and caches it.

The WebM already contains Opus. Why is anything re-encoded?

Because this page asks its encoder for a quality band, and requesting a bitrate is exactly what rules out copying the compressed frames across untouched. The audio is decoded to samples and compressed again — a real second generation, inaudible on speech and measurable on music.

How do I get the Opus out without re-encoding it?

Two ways, both free and both instant. `ffmpeg -i input.webm -c:a copy output.opus` writes the same packets into an Ogg container. `mkvextract` from MKVToolNix does the same thing from the other direction, because a WebM is a Matroska file and the Opus track can simply be pulled out of it.

Is this different from converting to OGG?

Not in the file. Both targets write Opus inside an Ogg container, so what changes is the name. Pick by what your destination’s file picker accepts; if neither has an opinion, either is fine.

Can I just rename the .webm to .opus?

No. WebM is a Matroska file and Opus files are Ogg files — different containers with different structures, however similar the audio inside them is. Software that opens the renamed file will find a Matroska header where it expected an Ogg page and fail.

What will play an Opus file?

Every browser, VLC, FFmpeg-based tooling, Android and most Linux desktops. What will not, reliably, is Apple’s own software, most car head units and hi-fi streamers, and a long tail of older applications. It is a format for pipelines rather than for sending to people.

How small can a long recording get?

Very. Opus was designed for real-time speech and holds up at bitrates where older codecs stop being usable, so hours of conversation at the small band land in a size that surprises people the first time. Music is a different matter and wants the high band.

More about these formats