Convert OGG to M4A

Converting OGG to M4A moves audio out of a format Apple has never supported and into the one its software is built around. The Vorbis or Opus inside the Ogg is decoded and re-encoded as AAC in an MP4 container, which costs a second round of compression and buys a file that plays on an iPhone, imports into Apple Music and shows its artwork.

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

Apple came to Ogg late, and only in Safari

This is not a bug or a missing codec pack you can install. Ogg was released by Xiph.Org in 2000 with Vorbis alongside it, explicitly as a patent-free alternative at a time when MP3 licensing cost money, and the container was documented as RFC 3533 in May 2003. The open-source world adopted both immediately. Apple did not: Safari 18.4 added playback of Ogg carrying Vorbis or Opus, and that is where the support stops.

So an `.ogg` file on an iPhone is inert outside the browser. It will sit in the Files app, it will not import into Music, it cannot be dropped into iMovie or Keynote, and AirDropping it achieves nothing. The registry records Ogg's browser support as patchy and that is the polite version. Converting is not a workaround; it is the only path that does not involve installing a third-party player on every device that needs to hear the file.

What M4A is, and why Apple software wants it

M4A is Apple's name for an MP4 file holding a single audio track, in use since 2004, and it is what every Apple audio path expects. The MP4 header states the exact duration, indexes where every sample begins so seeking is instant, records the channel layout and sample rate, and provides a metadata block for the title, artist, album and cover image.

That is why an M4A behaves so much better on an Apple device than any other option. It imports into Music, syncs to a phone, plays in the Files app, drops into iMovie, Keynote and GarageBand, and shows its artwork everywhere. None of it is magic — it is the same container structure MP4 video uses, and Apple built its whole media stack around it.

Two lossy encodes, and why AAC is the cheaper one

This conversion decodes lossy audio and compresses it again, which always costs something: the second encoder does not know which parts of the signal are original and which are artefacts of the first pass, so it spends bits on both. That is unavoidable and it is worth pricing rather than hiding.

What you can control is which codec pays for it. AAC was standardised in 1997 as MP3's designed successor and does meaningfully more with the same bitrate — a 128 kbps AAC is broadly comparable to a 192 kbps MP3. Converting Vorbis into AAC therefore loses less than converting it into MP3 at the same file size. If the destination is Apple, you get the better codec and the native container in one step, which is the whole argument for this pair over the MP3 one.

Check the codec inside the Ogg before choosing a setting

Ogg carries three codecs according to the registry — Vorbis, Opus and FLAC — and the extension does not tell you which. Vorbis is what game asset folders and older Linux exports hold. Opus turns up in newer material and browser recordings. FLAC inside Ogg is uncommon and appears in archival and reference material.

The difference matters for one decision. From Vorbis or Opus, this is a second lossy pass and Balanced at 128 kbps is defensible. From FLAC, it is the first compression the recording has ever had, and High quality at 192 kbps is the only sensible choice — you would be economising on a master. Size gives it away before you open anything: four minutes of FLAC-in-Ogg is twenty to thirty megabytes against three to five for Vorbis.

The three AAC bands and what they weigh

AAC is offered a fixed set of bitrates here: Small file writes 96 kbps, Balanced writes 128 and High quality writes 192. A four-minute track lands near 2.9 MB, 3.8 MB and 5.8 MB respectively, which is comfortably smaller than the equivalent MP3 at similar perceived quality.

For narration, game voice lines, lecture audio or a Wikimedia pronunciation clip, Small file is genuinely sufficient. For music, Balanced. For anything that started as FLAC-in-Ogg, or that will be edited after conversion, High quality — 192 kbps recovers nothing but leaves the encoder enough room that it contributes almost nothing of its own to the damage.

Vorbis comments become MP4 metadata

Ogg stores tags as Vorbis-style comments: an open list of uppercase key-value pairs — TITLE, ARTIST, ALBUM, ALBUMARTIST, TRACKNUMBER, TRACKTOTAL, DISCNUMBER, GENRE, DATE, COMMENT, LYRICS. All of the recognised fields map onto the MP4 metadata block and arrive intact in Apple Music.

Cover art moves as well: an image stored in the Ogg as a METADATA_BLOCK_PICTURE comment is rewritten as MP4 artwork, which is what the Music app, the Files app and a car display all read. What does not survive is the long tail of custom keys that a particular game engine or tool invented for its own purposes — those have no MP4 equivalent and are dropped rather than written where nothing will read them.

Game audio, loops and the padding AAC adds

Much of what arrives as `.ogg` is game audio, and looping assets deserve a warning. Vorbis loops cleanly and engines commonly read loop points from the Ogg's comment fields; AAC encoders add priming samples at the start and padding at the end because the encoder works in blocks and a recording rarely ends on one.

An M4A does record how many samples to skip, so a player trims them and gapless playback works in Apple Music — that part is genuinely preserved, and it is one place M4A beats MP3 outright. What is not preserved is the loop metadata itself, since the field names are engine-specific and have no MP4 equivalent. If the audio is a game loop, keep the Ogg for the engine and use the M4A only for listening.

When the browser cannot decode the Ogg

The decoding uses the codecs on the machine you are sitting at, which means whether a given Ogg opens depends on your browser rather than on this page. Opus is universal because every browser needed it for calls. Vorbis is widely but not uniformly available, and FLAC inside Ogg is narrower still.

Where the codec is absent, the conversion stops and says that nothing in the file could be converted and that it may use a codec this browser cannot read, rather than producing an empty M4A and reporting success. There is a second, separate limitation on the encoding side: Firefox has no AAC encoder, so a WebAssembly build is loaded on demand there. If a conversion refuses to start, trying it in a different browser is a five-second test worth running before blaming the file.

Getting a batch onto a phone

Drop a whole folder: each Ogg converts independently and the M4A files return as one ZIP, with a 100 MB per-file ceiling and a hundred files to a batch, since everything runs on your own processor. Practical batches are fifty to a hundred at a time, because AAC encoding is real work and a browser tab grinding through a full hundred at once is unpleasant.

Once converted, the files import into Music the way any purchased track does and sync to a phone from there. Nothing was uploaded to get them there — the decode uses your device's own codec and the muxing happens in the tab — and if you want to verify rather than trust that, open the network tab of your developer tools while a conversion runs and look for a request carrying the file. There is not one.

How to convert an OGG file to M4A

  1. Drop your OGG onto this page, or click to choose one. A folder at once is fine.
  2. Pick a quality band — High quality writes 192 kbps and is right if the Ogg held FLAC.
  3. Download the M4A and import it into Music, or drop it straight onto a phone.

OGG against M4A: an open container against the Apple one

OGG compared with M4A
OGGM4A
Full nameOgg AudioMPEG-4 Audio
File extension.ogg, .oga.m4a
Media typeaudio/oggaudio/mp4
CompressionLossy — file size is bought with qualityLossy — file size is bought with quality
First published20002004
Published byXiph.OrgApple
SpecificationRFC 3533
LicensingOpen standardPublished, not standardised
Standing todayCurrentCurrent
Audio channelsup to 48
Opens in a browserCurrent browsersEvery browser
Considered insteadMP3, AAC, OPUSMP3, FLAC

What survives

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

Opening the result

M4A opens in every current browser. OGG has narrower browser support than that. If the file is going onto a web page or into a form, that is usually the whole reason for the conversion.

M4A is a container rather than a single format. What actually plays is the codec inside it — usually AAC and ALAC — which is why two files with the same extension can behave differently on the same device.

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

What each format is for

OGG is Xiph.Org's format, published in 2000. The specification is RFC 3533, and it is worth reading if the file has to outlive the tool that wrote it.

M4A comes from Apple and dates from 2004. iTunes, VLC and FFmpeg all read it.

OGG to M4A: getting Ogg audio onto Apple devices

Why can my iPhone not play OGG files?

Apple has never shipped Ogg support in iOS, iPadOS, macOS or Safari, and there is no setting or update that adds it. The registry marks Ogg's support as patchy for exactly this reason. It is a licensing-free format that Apple chose not to adopt, and the options have always been to install a third-party player or to convert. M4A is the conversion that requires nothing from anybody.

Why M4A rather than MP3?

Because M4A holds AAC, which is a much better codec than MP3 — designed in 1997 as its successor, and doing noticeably more with the same number of bits. Since you are paying for a second lossy encode either way, paying it into the better codec costs you less. Choose MP3 only when the destination is old hardware that lists MP3 specifically; for anything made by Apple in the last twenty years, M4A is the native answer.

Does converting OGG to M4A lose quality?

Yes, a second time. The Ogg already held lossy audio — Vorbis or Opus — and the AAC encoder discards a further helping using different rules. At the High quality setting, which writes 192 kbps, that is very hard to hear on any material this pair is normally used for. The exception is an Ogg that holds FLAC, where this is the first lossy encode the recording has ever had and High quality is not optional.

What is actually inside my .ogg file?

Ogg is a container and the registry lists three codecs for it: Vorbis, Opus and FLAC. Vorbis is what game assets and older Linux exports almost always hold. Opus appears in newer material. FLAC inside Ogg is uncommon but real, and if that is what you have, the M4A is your first compression rather than your second. VLC names the codec in two clicks under Tools then Codec Information.

Will it show up properly in Apple Music with artwork?

Yes. An M4A is an MP4 file with a real metadata block, so the title, artist, album, track number, genre and date come across from the Ogg's Vorbis comments, and cover art stored as a METADATA_BLOCK_PICTURE comment is rewritten as artwork the Music app displays. That is a straight upgrade over Ogg on an Apple device, where the file previously showed nothing at all.

Does the file get uploaded?

No. Your browser decodes the Ogg with the codec it already has and the M4A is muxed in the tab, with the AAC encoder running natively where the browser provides one and as a WebAssembly package where it does not, since Firefox ships no AAC encoder. Nothing carrying the audio is sent anywhere, and the network tab of your developer tools will show you that while a conversion runs.

More about these formats