Convert OGG to M4A — Free Online Tool
Convert OGG (Vorbis/Opus) audio files to M4A with AAC encoding — the format used by Apple iTunes, iPhone, and most modern media players. This tool re-encodes your OGG audio stream into AAC inside an MPEG-4 container, giving you broad device compatibility while keeping file sizes compact.
to
FFmpeg Command
Copy this command to run the same conversion locally with FFmpeg on your desktop. Download FFmpeg
Drop your OGG file here
or click to browse
Free — no uploads, no signups. Your files never leave your browser.
Settings
Note: Browser-based encoding uses approximate quality targets. For precise CRF compression, copy the FFmpeg command above and run it on your desktop.
Estimated output:
Conversion Complete!
DownloadHow It Works
OGG is a container that typically holds audio encoded with Vorbis or Opus codecs — neither of which is natively supported by Apple devices or iTunes. During this conversion, FFmpeg decodes the Vorbis or Opus audio stream from the OGG container and re-encodes it as AAC (Advanced Audio Coding) inside an M4A (MPEG-4 Audio) container. Because there is no shared codec between the two formats in a typical workflow, this is a full transcode rather than a remux — meaning the audio is fully decoded and re-encoded, which takes more processing time than a simple container swap. The default bitrate of 128k provides a good balance between file size and perceptible audio quality for most music and spoken-word content. The -vn flag is included as a safeguard to explicitly strip any video or cover art streams, since M4A is an audio-only container.
What Each Flag Does
| Flag | What it does |
|---|---|
ffmpeg
|
Invokes the FFmpeg binary — the open-source multimedia processing engine that powers this conversion both in the browser (via FFmpeg.wasm) and on your local desktop when you run the command yourself. |
-i input.ogg
|
Specifies the input file — an OGG container, which typically holds audio encoded with Vorbis or Opus. FFmpeg will automatically detect which audio codec is inside the OGG file and decode it accordingly. |
-c:a aac
|
Sets the audio codec to AAC (Advanced Audio Coding), which is the standard codec inside M4A files and the format natively supported by Apple devices, iTunes, and most modern media players. |
-b:a 128k
|
Sets the AAC audio bitrate to 128 kilobits per second, a widely used default that balances file size and audio quality well for music, podcasts, and general listening. Increase to 192k or 256k for higher fidelity. |
-vn
|
Explicitly disables any video or image stream output, ensuring the resulting file is audio-only. This prevents FFmpeg from attempting to pass through embedded cover art or other non-audio data that could cause issues in the M4A container. |
output.m4a
|
Specifies the output filename with the .m4a extension, which tells FFmpeg to write the re-encoded AAC audio into an MPEG-4 Audio container — the file format expected by iTunes, Apple Music, and iOS devices. |
Common Use Cases
- Importing OGG music downloaded from open-source game assets or Bandcamp into iTunes or Apple Music, which does not support OGG playback
- Preparing OGG-encoded podcast episodes or audiobooks for distribution through Apple Podcasts, which requires AAC or MP3 in an M4A or MP4 container
- Converting OGG audio tracks ripped from Linux games or open-source software projects so they play natively on iPhone or iPad without a third-party app
- Transferring OGG music files from a Linux desktop to an iOS device via Finder or iTunes sync, where OGG files are rejected during the sync process
- Archiving OGG radio recordings or voice memos in M4A format for long-term storage in an Apple ecosystem with better metadata and chapter support
- Converting OGG audio produced by open-source recording tools (like Audacity) into M4A for submission to platforms that require AAC-compatible formats
Frequently Asked Questions
Because both OGG Vorbis and AAC are lossy codecs, converting between them is a lossy-to-lossy transcode, which means a small amount of additional quality degradation is unavoidable. The original Vorbis audio is fully decoded and then re-encoded as AAC at 128k. For most casual listening — music, podcasts, audiobooks — the difference is subtle and unlikely to be noticeable on typical speakers or earphones. If you have access to the original lossless source, it is always better to encode from that rather than converting between two lossy formats.
Apple's operating systems (iOS, macOS, tvOS) do not include native decoders for the Vorbis or Opus codecs used inside OGG containers. This is a deliberate platform choice — Apple's ecosystem is built around AAC, ALAC, and MP3. While third-party apps on iOS can play OGG files, the native Music app, iTunes, Finder sync, and AirPlay do not support the format. Converting to M4A with AAC encoding is the standard solution for integrating OGG audio into Apple's ecosystem.
Both OGG and M4A support chapter metadata, but they use entirely different chapter formats and internal structures. FFmpeg does not automatically translate OGG chapter markers into the iTunes-style chapter format used in M4A during this conversion. If chapter preservation is critical — for example, for audiobooks — you would need to manually re-add chapters after conversion using a tool like mp4chaps or the chapter editor in an app like Fission or Audacity.
The audio bitrate is controlled by the -b:a flag. In the default command, it is set to 128k (128 kbps), which is appropriate for most speech and casual music listening. To increase quality, replace 128k with a higher value such as 192k or 256k (e.g., -b:a 256k). For voice-only content like podcasts, you can reduce the bitrate to 96k or even 64k to save space with minimal perceptible quality loss. For example: ffmpeg -i input.ogg -c:a aac -b:a 192k -vn output.m4a
FFmpeg will attempt to map common Vorbis comment tags (the tagging format used in OGG files) to their iTunes-compatible equivalents in M4A during the conversion. Tags like TITLE, ARTIST, ALBUM, DATE, and TRACKNUMBER are generally preserved. However, OGG uses a flexible freeform tagging system (Vorbis comments) while M4A uses Apple's proprietary atom-based metadata, so some custom or non-standard tags may be dropped or renamed. It is worth checking your tags in iTunes or a tag editor like MusicBrainz Picard after conversion.
The command shown on this page processes one file at a time. To batch convert an entire folder of OGG files on your desktop, you can use a shell loop. On Linux or macOS, run: for f in *.ogg; do ffmpeg -i "$f" -c:a aac -b:a 128k -vn "${f%.ogg}.m4a"; done. On Windows Command Prompt, use: for %f in (*.ogg) do ffmpeg -i "%f" -c:a aac -b:a 128k -vn "%~nf.m4a". This is one of the main reasons the FFmpeg command is displayed on this page — for power users who need to process large collections of files beyond the browser tool's single-file workflow.
Technical Notes
OGG Vorbis audio typically uses a variable-quality encoding model (VBR via -q:a scale), whereas AAC in M4A is most commonly encoded at a fixed bitrate (-b:a). This means the output file size and bitrate behavior will be more predictable with M4A than with OGG. The -vn flag is essential in this command because MPEG-4 containers can technically hold video streams, and without it FFmpeg might attempt to pass through embedded cover art or other data that could cause muxing errors in a strictly audio-only M4A file. The native FFmpeg AAC encoder (used here) is a solid general-purpose encoder that produces compliant, widely-compatible output, though alternative encoders like libfdk_aac can produce slightly higher quality at the same bitrate if your FFmpeg build includes it. OGG files using Opus (rather than Vorbis) as the internal codec will be handled identically by this command — FFmpeg detects the codec and decodes it appropriately before re-encoding to AAC. Multiple audio tracks in an OGG file (a supported OGG feature) will not survive this conversion, as M4A supports only a single audio stream; FFmpeg will default to mapping the first audio track.