Convert OGG to ALAC — Free Online Tool
Convert OGG audio files (typically encoded with Vorbis or Opus) to ALAC, Apple's lossless audio format stored in an M4A container. This conversion transcodes your OGG audio into a format natively supported by iTunes, Apple Music, and all Apple devices — without any quality ceiling imposed by the output codec.
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 files typically contain lossy Vorbis or Opus audio streams, though they can also carry lossless FLAC. During this conversion, FFmpeg decodes the OGG audio stream fully to raw PCM audio in memory, then re-encodes it using Apple's ALAC (Apple Lossless Audio Codec) and packages the result in an MPEG-4 container (.m4a). Because ALAC is lossless, it captures the decoded PCM output with perfect fidelity — meaning the output is a bit-for-bit accurate representation of the decoded audio. However, if your OGG source used a lossy codec like Vorbis or Opus, the artifacts from that original lossy encoding are already present in the decoded PCM and will be preserved in the ALAC output. ALAC cannot recover information that was discarded during the original OGG encoding.
What Each Flag Does
| Flag | What it does |
|---|---|
ffmpeg
|
Invokes the FFmpeg command-line tool. In this browser-based tool, FFmpeg runs locally in your browser via WebAssembly (FFmpeg.wasm) — no data is sent to a server. |
-i input.ogg
|
Specifies the input file, which is your OGG container. FFmpeg will detect whether the contained audio stream is Vorbis, Opus, or FLAC and decode it accordingly before passing raw PCM to the ALAC encoder. |
-c:a alac
|
Instructs FFmpeg to encode the audio stream using Apple's ALAC (Apple Lossless Audio Codec). This produces lossless audio in the M4A container, natively compatible with iTunes, Apple Music, and all Apple devices. |
-c:a alac
|
This is a duplicate of the previous flag and is redundant — it has no additional effect on the output. FFmpeg applies the last-seen value for each option, so ALAC encoding is used regardless. When running this command locally, you can safely omit this second instance. |
output.m4a
|
Defines the output filename and container format. The .m4a extension tells FFmpeg to use the MPEG-4 audio container, which is the standard and Apple-recommended wrapper for ALAC audio files. |
Common Use Cases
- Importing a music library originally ripped or downloaded in OGG Vorbis format into iTunes or Apple Music, which does not natively play OGG files
- Preparing OGG-encoded audiobooks or podcasts for playback on an iPhone or iPad without relying on a third-party app
- Archiving decoded OGG audio in a lossless container to prevent any further generation loss in future re-encodes
- Syncing OGG game soundtrack files or sound packs to an Apple device through the Music app, which requires ALAC or AAC
- Converting OGG Vorbis recordings from open-source DAWs or Linux audio tools into a format compatible with GarageBand or Logic Pro on macOS
- Standardizing a mixed audio library to a single lossless Apple-compatible format so all files behave consistently across macOS Finder, Spotlight, and Apple's media stack
Frequently Asked Questions
No — if your OGG file uses a lossy codec like Vorbis or Opus, the quality ceiling is set at the moment of that original encoding. ALAC is a lossless output format, meaning it perfectly preserves the decoded PCM audio, but it cannot restore frequencies or details that Vorbis or Opus already discarded. The benefit of using ALAC as the output is that no additional quality loss is introduced, and future re-encodes from this ALAC file will not degrade the audio further.
OGG Vorbis and Opus are lossy formats that achieve small file sizes through perceptual compression — they discard audio data the ear is unlikely to notice. ALAC, by contrast, is lossless and must store a complete representation of the decoded PCM waveform. A typical OGG file at quality level 4 (roughly 128 kbps) might expand to 4–6x its original size when converted to ALAC, depending on the audio content and sample rate.
Basic metadata tags such as title, artist, album, and track number are generally preserved during this conversion, as both OGG and the M4A container support standard tagging. However, OGG chapter markers use a different structure than the iTunes-style chapter format in M4A, so chapter data may not transfer reliably — you may need to re-add chapter points in a tool like MP4Box or Subler if chapters are important.
No. The MPEG-4 container used by ALAC (.m4a) technically supports multiple audio tracks, but ALAC encoding in FFmpeg and Apple's own tools typically works with a single audio stream. OGG supports multiple audio tracks in one container, but if your OGG file has more than one audio stream, only the first (or default) audio track will be encoded into the ALAC output file.
You can batch convert OGG files to ALAC using a shell loop. On Linux or macOS, run: for f in *.ogg; do ffmpeg -i "$f" -c:a alac "${f%.ogg}.m4a"; done. On Windows Command Prompt, use: for %f in (*.ogg) do ffmpeg -i "%f" -c:a alac "%~nf.m4a". This browser-based tool processes one file at a time, but the displayed FFmpeg command is designed so you can run it locally for bulk operations.
The duplicated '-c:a alac' flag in this command is redundant — specifying it once is sufficient, and FFmpeg will use ALAC encoding regardless. The second instance has no additional effect and does not change the output. If you are running this command locally, you can safely remove one of the '-c:a alac' flags: ffmpeg -i input.ogg -c:a alac output.m4a.
Technical Notes
OGG is a container format rather than a codec, and this distinction matters for conversion quality. Files with the .ogg extension most commonly contain Vorbis audio (lossy) but may also carry Opus (lossy) or FLAC (lossless). FFmpeg auto-detects the contained codec and decodes accordingly. ALAC encodes at whatever bit depth and sample rate the decoded PCM provides — typically 16-bit/44.1 kHz for most consumer OGG files — and the resulting M4A file is compatible with Apple Music, iTunes 10.1+, iOS, macOS, and tvOS natively, without any third-party codec installation. One known limitation is that OGG Vorbis supports channel counts up to 255, while ALAC in an M4A container is practically limited to 8 channels; multichannel OGG files beyond 7.1 surround will not convert cleanly. Additionally, OGG's Vorbis comment metadata (used for tagging) is mapped to iTunes-style MP4 atoms during conversion, and while common fields like TITLE, ARTIST, and ALBUM transfer well, non-standard or custom Vorbis comment fields may be silently dropped. The ALAC codec itself is open source and documented under the Apache License, so this is not a proprietary black box — it is fully supported in FFmpeg's native codebase without external libraries.