Convert MP3 to OGG

Converting MP3 to OGG produces the royalty-free container that wikis, Linux distributions and open-source projects ask for, carrying an Opus stream. Both formats are lossy, so match the source bitrate rather than dropping below it. The encoding runs inside your browser, using an encoder it already has.

  • Where it runs In your browser. The file is never uploaded.
  • Lossy Some detail is traded for size. OGG cannot hold everything an MP3 can.
  • File size limit Up to 100 MB per file, free, without an account.
  • Worth knowing Both formats are compressed, so this is a second round of compression on audio that has already lost detail. Pick the highest quality band if the result is going to be edited or converted again.

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

The Ogg file produced here carries an Opus stream

Ogg is a container rather than a codec, and over its life it has held Vorbis, Opus, FLAC and Speex. For most of that time the practical meaning of ".ogg" was Vorbis, which is why a great many guidelines, tutorials and forum answers use the two words interchangeably.

What this page writes is Opus. It is the current Xiph.Org codec, it is better than Vorbis at every bitrate anyone would use, and every current decoder handles it. If the policy you are following names Vorbis by name rather than naming Ogg, read it carefully before submitting — that distinction occasionally matters to an automated check.

The patent rule behind the policy expired in 2017

Free-software projects avoided MP3 for a specific legal reason: the format was covered by patents, and distributing an encoder or a decoder meant licensing them. Ogg Vorbis was designed as the unencumbered alternative, and a generation of project policies, packaging guidelines and upload rules were written around that difference.

Those patents have since expired, and Fraunhofer ended its MP3 licensing programme in 2017. The legal ground for the rule is gone. Plenty of policies remain in force anyway — through inertia, through a preference for open specifications, or because nobody has revisited the wording — and following the rule you were given is still the right move. It is worth knowing that the reason is historical.

Reasons to prefer a free format that outlived the patents

Some of the argument survives its legal half. Opus and the Ogg container are specified in public RFCs — 6716 and 3533 — implemented by reference code anyone can read, and not controlled by a licensing body that could change its terms. For a project that intends to be readable in thirty years, that is a real property rather than a slogan.

The technical case has also inverted since the policies were written. In the 1990s choosing Ogg meant accepting a compatibility cost for an ideological benefit. Today Opus is straightforwardly the better codec at any bitrate a contributor would use, so the free format is also the one that sounds better at the same size.

Transcoding is the price of not having the original

This conversion decodes the MP3 and encodes it again with a different codec, so it is a second round of lossy compression on audio that has already been through one. That is unavoidable when the MP3 is what you have, and it is worth a moment of checking whether it is.

Recordings contributed to public archives frequently exist somewhere in better shape — a WAV from the session, a lossless copy from the person who made it, a higher-bitrate version on the original site. Converting from any of those gives a first-generation Opus file with nothing compounded, and the difference survives into every copy anyone makes afterwards.

Match the MP3’s bitrate rather than trying to beat it

Opus is efficient enough that a band at or slightly above the source bitrate makes the second encode essentially invisible. Going substantially higher is wasted, because the ceiling on quality was fixed when the MP3 was made and no setting here can lift it.

Going lower is the one genuinely damaging option, and it is tempting for a submission with a size limit. Two rounds of compression at a low target compound, and speech survives it far better than music does. If a size limit is forcing the issue, converting a stereo spoken recording to mono is usually a bigger saving than dropping the bitrate, and costs less.

What the Ogg container adds around the audio

Ogg splits a stream into pages, each carrying a position marker, which is what allows a player to seek without reading from the beginning and to report an accurate duration before playback starts. It also carries a block of named text fields for describing the file.

That puts it roughly on par with what a tagged MP3 already offered, so nothing is gained or lost in principle. The practical difference is that the Ogg fields are simple and consistently implemented, where ID3 accumulated three decades of versions and conventions that not every tool agrees on.

Support is settled on the desktop and patchy in the living room

For the destinations these files are usually going to — a wiki page, a repository, a documentation site, a desktop application — Ogg support is complete and has been for years. Every current browser decodes Opus natively, so an audio file on a web page plays for practically everyone.

Hardware is the exception and it is worth naming so that nobody is caught out later: car head units, some televisions, older portable players and various hi-fi streamers will not play it. That is a problem for someone converting a music library and no problem at all for a contributor uploading a file to a project.

Record where the audio came from

Files submitted to public projects outlive the context they were submitted in. A converted Ogg looks the same whether it came from a studio master or a low-bitrate download, and the next contributor to reuse it has no way to tell — except by the same spectrogram inspection that identifies any transcode.

So put the provenance somewhere durable: the upload form, the file description, a text field in the stream. It costs a sentence and it prevents a re-encoded MP3 from quietly becoming the archival copy of something that has a better source still in existence.

A hundred files a drop, with no encoder to download

Opus is native to every browser, so this conversion begins immediately with nothing fetched — unlike an MP3 target, which needs a WebAssembly LAME build downloaded first because no browser can encode MP3 at all.

A drop takes up to a hundred files at 100 MB each, which for MP3 sources is well over an hour of audio per file, and returns them together as a ZIP. Nothing is transmitted at any point, so a large batch costs processor time and no bandwidth.

How to convert an MP3 into an OGG file

  1. Drop your MP3 files onto this page, or click to choose them.
  2. Pick a band at or above the source bitrate; the audio is re-encoded as Opus in an Ogg container.
  3. Download the OGG, or take the set as a ZIP.

MP3 against OGG: an encumbered format against a free one

MP3 compared with OGG
MP3OGG
Full nameMPEG Audio Layer IIIOgg Audio
File extension.mp3.ogg, .oga
Media typeaudio/mpegaudio/ogg
CompressionLossy — file size is bought with qualityLossy — file size is bought with quality
First published19932000
Published byFraunhofer IISXiph.Org
SpecificationISO/IEC 11172-3RFC 3533
LicensingOpen standardOpen standard
Standing todayCurrentCurrent
Audio channelsup to 2
Opens in a browserEvery browserCurrent browsers
Considered insteadAAC, OPUS, FLACAAC, OPUS

What is lost

OGG has nowhere to put ID3 tags — artist, album, track number and cover art, so that goes no further than the MP3. Worth checking before the original is deleted, and worth knowing if the point was to strip 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.

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

What each format is for

MP3 is Fraunhofer IIS's format, published in 1993. The specification is ISO/IEC 11172-3, 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.

MP3 to OGG: the questions a submission raises

Is the Ogg file Vorbis or Opus?

Opus. Ogg is a container and has carried several codecs; the stream written here is Opus, which is the current Xiph.Org codec and the better one at every bitrate. If a submission policy names Vorbis specifically rather than "Ogg", check before uploading — some older guidelines were written when the two were synonymous.

Does converting MP3 to Ogg lose quality?

Yes, a little, because both are lossy and the audio is encoded twice. Choose a band at or above the MP3’s bitrate and the second encode adds very little; choose a lower one and two rounds of compression compound. Nothing about the conversion recovers what the MP3 already discarded.

Why does my project insist on Ogg?

Almost always because of software patents on MP3 — a rule most free-software projects adopted in the 1990s and 2000s. Those patents expired and Fraunhofer ended its MP3 licensing programme in 2017, so the original reason has lapsed even where the policy has not. Follow the policy you were given; the history is only worth knowing so the rule makes sense.

Will the tags survive?

An Ogg stream can carry named text fields, so title, artist and similar values have a destination. Verify one file rather than assuming, and expect anything unusual an ID3 tagger invented to be missing. If attribution matters for a submission, put it in the upload form as well as the file.

Where will an .ogg file not play?

Desktop players and browsers all handle it. Living-room and in-car hardware is where support thins out — car head units, older portable players and some televisions will show the file and decline it. For a wiki, a repository or a website that is irrelevant, which is usually exactly where these files are going.

Is the file uploaded to convert it?

No, and this pair fetches no encoder either. Every browser already ships an Opus encoder because voice calls on the web depend on it, so the conversion runs entirely on code that is already in the tab.

More about these formats