Convert MP4 to OGG

Converting MP4 to OGG writes the video’s soundtrack into an Ogg container, which is what a game asset pipeline, a Linux packaging convention or an upload form usually means when it asks for that extension. What goes inside the container is Opus, and the first section explains when that distinction will matter to you.

  • Where it runs In your browser. The file is never uploaded.
  • Lossy Some detail is traded for size. OGG cannot hold everything an MP4 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.

Ogg is a container, and what this page puts in it is Opus

Ogg has been an open container since 2000, described by RFC 3533, and it has carried three different audio codecs over its life: Vorbis for most of that time, then Opus, and FLAC as well. The extension therefore tells you the box and nothing at all about the contents, which is unusual and is the source of most of the confusion around this format.

The file this page produces is an Ogg container holding Opus audio. For anything reading Ogg properly that is a better file than the Vorbis equivalent — Opus is a decade newer and better at the same size. For anything that assumed Ogg means Vorbis, it is a file that will be refused, and knowing which of those you are dealing with is worth two minutes.

Test one file before you convert a folder

The check is cheap and the alternative is expensive. Convert a single short clip, drop it into whatever asked for the .ogg, and see whether it loads. If it does, convert the rest. If it does not, the tool wanted Vorbis and no setting on this page will produce that.

This is worth insisting on because the failure is quiet in the worst way: some software accepts the file, reports no error, and then plays silence, because it parsed the container and found a codec it does not implement. A folder of assets that all behave that way is discovered late, usually by somebody else.

When something genuinely needs Vorbis instead

The honest answer is that this converter cannot make one. Writing Vorbis needs an encoder that this site does not ship, and pretending otherwise by relabelling an Opus file would produce something that fails in a more confusing way than a straight refusal.

Desktop audio software fills the gap without difficulty — Audacity reads the file this page produces and exports Vorbis, and any of the usual command-line tools will do it in one line. That is a reasonable route: extract here, convert there, and keep the intermediate as the thing you re-encode from if the requirement changes again.

Why a project asks for .ogg in the first place

Almost always licensing history. Ogg and its codecs were free of patent claims and free to implement at a time when MP3 and AAC were neither, which is why game engines, Linux distributions and open-source projects standardised on the extension and why the convention has outlived the reason for it.

The convention is worth respecting even where the reason has faded. An asset pipeline that expects .ogg will have build scripts, import settings and documentation built around it, and supplying an .m4a because it is technically better is the kind of small deviation that costs somebody an afternoon later.

Where an Ogg file will actually play

Current browsers all play it, Linux desktops treat it as native, and VLC, Audacity and foobar2000 open it without a word. That covers development machines, web pages and most of the places these files are made and used.

Outside that it is patchy and always has been. Apple software, consumer appliances, car stereos and most portable players have never supported Ogg, and an Opus payload rather than Vorbis narrows the field slightly further. If a human being is going to listen to this file on hardware you did not choose, send them an M4A or an MP3 instead.

What the conversion does to the sound

It compresses it a second time. The soundtrack in the MP4 was AAC, already lossy, and encoding it as Opus decodes that and throws away another portion. There is no way around it except not converting, and the honest place to say so is before the click.

The practical effect is small and depends on the material. Speech at the balanced band survives it without anything you could pick out in a listening test. Music, applause and anything with a lot of high-frequency energy is where a second pass shows, and the answer there is the high band rather than a different container.

Size, and why the video’s size is irrelevant to it

The picture is what makes a video file large, and the picture is discarded here. A two-gigabyte screen recording and a three-hundred-megabyte export of the same session produce nearly identical audio files, because the audio in both was the same handful of megabytes a minute.

Expect somewhere around a megabyte a minute at the balanced band, less at the small one. For short game assets — a footstep, a line of dialogue, a menu sound — the file sizes are trivial and the band worth choosing on quality alone.

The .ogg, .oga and .ogv extensions, and why nobody agrees

Xiph, who defined the container, eventually recommended splitting the extensions by content: .oga for audio, .ogv for video, .ogx for anything else, leaving .ogg to mean Vorbis audio specifically for the sake of everything already written. The recommendation arrived years after the format was in wide use, which is the usual reason a convention only half takes.

So in practice .ogg is what everything asks for and .oga is rarely seen, and a file with either extension may hold Vorbis or Opus. This page writes .ogg because that is what asset pipelines and upload forms actually name. If a specification you are working to says .oga, renaming the downloaded file is safe — the container and the codec are identical either way.

Converting a folder of source videos at once

Up to a hundred files in one batch on the free tier, each with its own progress, all downloadable together as a ZIP. Since the work happens on your own machine there is no queue and no per-file allowance to run out of halfway through.

For an asset pipeline that makes this usable as a real step rather than a one-off. The caution from the second section still stands: verify one converted file inside the actual project before running the batch, not after.

The video is not uploaded to have its audio extracted

The decode and encode run inside the browser tab using the codecs already on your machine, so nothing carrying the file is sent anywhere. You can watch the network tab during a conversion and see it for yourself.

For source material under a licence, an NDA or simply an unreleased build, that removes a question rather than answering one. There is no server copy to ask about, no retention period to read, and no account attached to what you converted.

How to make an Ogg file from an MP4 soundtrack

  1. Convert one short file first and load it into whatever asked for the .ogg.
  2. If it plays, drop the rest of the videos here — a hundred at a time is fine.
  3. If it does not, the tool wanted Vorbis; re-encode this file in desktop audio software.

MP4 and OGG: two containers with different ideas of what belongs inside

MP4 compared with OGG
MP4OGG
Full nameMPEG-4 VideoOgg Audio
File extension.mp4.ogg, .oga
Media typevideo/mp4audio/ogg
CompressionLossy — file size is bought with qualityLossy — file size is bought with quality
First published20012000
Published byMPEGXiph.Org
SpecificationISO/IEC 14496-14RFC 3533
LicensingOpen standardOpen standard
Standing todayCurrentCurrent
Opens in a browserEvery browserCurrent browsers
Considered insteadWebM, MKV, MOVMP3, AAC, OPUS

What survives

document properties can cross over — both MP4 and OGG have somewhere to store it.

Opening the result

Current browsers read OGG; 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.

OGG is a container rather than a single format. What actually plays is the codec inside it — usually Vorbis, Opus and FLAC — which is why two files with the same extension can behave differently on the same device.

VLC reads both MP4 and OGG, so there is a way to check the result against the original without a second tool.

What each format is for

MP4 is MPEG's format, published in 2001. The specification is ISO/IEC 14496-14, and it is worth reading if the file has to outlive the tool that wrote it.

OGG comes from Xiph.Org and dates from 2000, specified as RFC 3533. Audacity, VLC and foobar2000 all read it.

MP4 to OGG: Vorbis, Opus and compatibility

Are my MP4 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.

Is this Ogg Vorbis or Ogg Opus?

Opus. Ogg is a container and has held Vorbis, Opus and FLAC at various times; what this page writes is Opus inside it. That matters if the thing asking for an .ogg was written when Vorbis was the only realistic answer, so test one file before converting a folder.

What if my software refuses the file?

Then it wanted Vorbis specifically and is checking the codec rather than the container. There is no setting here that changes that; the conversion writes Opus. Encoding Vorbis needs a tool that ships a Vorbis encoder, which most desktop audio software does.

What is the difference between the .ogg and .opus files on this site?

Only the extension. Both are Opus audio in an Ogg container, produced by the same encoder. Choose .ogg when something asked for that name and .opus when the codec was your own decision.

Does the Ogg file play everywhere?

In current browsers, on Linux, and in VLC, Audacity and foobar2000, yes. Support outside that is patchy — Ogg has never been a format that consumer appliances or Apple software took seriously, and an Opus payload narrows it a little further.

Is the audio quality reduced?

Somewhat. The soundtrack in an MP4 is already lossy AAC and this compresses it again, so a second helping of detail goes. At the balanced setting on speech it is inaudible; on music choose the high setting.

Is anything uploaded?

No. The conversion runs in your browser using codecs your machine already has. There is no account and no daily count, and the free tier takes files up to 100 MB, up to a hundred at a time.

More about these formats