Convert ALAC to OGG — Free Online Tool

Convert ALAC audio files (.m4a) to OGG Vorbis format directly in your browser — no uploads required. This conversion transcodes Apple's lossless codec into Vorbis, an open, patent-free audio format ideal for Linux applications, web players, and platforms outside the Apple ecosystem.

FFmpeg Command

Copy this command to run the same conversion locally with FFmpeg on your desktop. Download FFmpeg

Free — no uploads, no signups. Your files never leave your browser.

Estimated output:

Conversion Complete!

Download

How It Works

ALAC (Apple Lossless Audio Codec) stores audio with zero quality loss inside an MPEG-4 container (.m4a). During this conversion, FFmpeg fully decodes the lossless ALAC stream to raw PCM audio and then re-encodes it using the libvorbis encoder into an OGG container. Because Vorbis is a lossy codec, this is a one-way transcoding process — the original lossless data is compressed using Vorbis's perceptual encoding model at quality level 4 (roughly equivalent to 128–160 kbps VBR). The OGG container preserves chapter markers and metadata tags such as artist, album, and track title, though Apple-specific metadata fields may be dropped or remapped. The output file is typically significantly smaller than the source ALAC file.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg binary — the open-source multimedia processing engine that handles decoding the ALAC stream, transcoding to Vorbis, and writing the OGG container.
-i input.m4a Specifies the input file — an MPEG-4 container (.m4a) carrying an Apple Lossless (ALAC) audio stream. FFmpeg reads the container, identifies the ALAC codec, and fully decodes it to uncompressed PCM audio in memory before re-encoding.
-c:a libvorbis Selects the libvorbis encoder to produce OGG Vorbis audio output — an open, patent-free lossy codec developed by Xiph.Org. This replaces the lossless ALAC compression with Vorbis perceptual encoding, making the file compatible with Linux players, Android, and open-source platforms.
-q:a 4 Sets the Vorbis variable bitrate quality to level 4 on a 0–10 scale, targeting approximately 128–160 kbps. This is the default balance between file size reduction from the original lossless ALAC source and perceptually transparent audio quality for general listening.
output.ogg Defines the output filename and tells FFmpeg to write the encoded Vorbis audio into an OGG container — Xiph.Org's open container format that is the standard vessel for Vorbis, Opus, and FLAC audio streams.

Common Use Cases

  • Making Apple Music or iTunes library files compatible with Linux music players like Rhythmbox, Amarok, or VLC, which handle OGG Vorbis natively without additional codecs
  • Uploading audio to open-source or self-hosted platforms such as Funkwhale or Castopod that prefer or require the patent-free OGG Vorbis format
  • Reducing storage footprint of a lossless ALAC archive for everyday listening copies on Android devices, where OGG Vorbis has been natively supported since Android 2.3
  • Preparing audio tracks for use in open-source game engines like Godot or game development frameworks that officially recommend OGG Vorbis for in-game audio
  • Converting ALAC audiobook files ripped from Apple ecosystem sources into OGG for playback on non-Apple e-readers and media players that support chapter metadata in OGG containers
  • Distributing podcast episodes or music as open-format files to avoid Apple's proprietary codec dependency when sharing with collaborators on Linux or open-source workflows

Frequently Asked Questions

Yes — this conversion introduces a small, one-time quality loss. ALAC is lossless, meaning it is a perfect copy of the original audio. OGG Vorbis is a lossy codec, so it removes audio data that perceptual models consider inaudible. At the default quality level 4 (approximately 128–160 kbps VBR), the result is transparent or near-transparent to most listeners in typical listening conditions. However, the conversion is irreversible — you cannot recover the original lossless data from the OGG output, so keep your ALAC source files if lossless archival matters.
The command uses Vorbis quality level 4 (-q:a 4), which targets a variable bitrate of roughly 128–160 kbps. The Vorbis quality scale runs from 0 (lowest, ~64 kbps) to 10 (highest, ~500 kbps). Level 4 is considered a good general-purpose setting — noticeably better than low-bitrate streaming but with meaningful file size reduction compared to lossless ALAC. For critical listening or archival distribution, quality levels 6–8 are recommended; for voice-only content like podcasts, level 2–3 is usually sufficient.
Replace the value after -q:a in the command. For example, to use the highest Vorbis quality, run: ffmpeg -i input.m4a -c:a libvorbis -q:a 10 output.ogg. To target a lower-quality, smaller file for voice content, use -q:a 2. The -q:a flag controls Vorbis's internal quality scale (0–10), which maps to a variable bitrate range rather than a fixed bitrate, giving the encoder flexibility to allocate bits where the audio is most complex.
Standard metadata tags such as artist, album, title, track number, and genre are preserved during conversion because both the MPEG-4 container (used by ALAC) and the OGG container support these common fields, and FFmpeg maps them automatically. However, Apple-specific metadata — such as iTunes sort fields, podcast-specific atoms, or embedded album art stored in Apple's proprietary format — may not transfer cleanly or may be silently dropped. Always verify tags in your OGG output using a tag editor like MusicBrainz Picard or Kid3.
No — Apple's ecosystem does not natively support OGG Vorbis. iOS, macOS's built-in audio frameworks, and iTunes/Apple Music do not play OGG files without third-party apps. If you need to stay within Apple's ecosystem, converting ALAC to AAC (.m4a) would be a more appropriate choice. OGG Vorbis is best suited for Android, Linux, web-based HTML5 audio players, and open-source software environments.
The single-file command shown on this page processes one file at a time. To batch convert an entire folder of ALAC files on Linux or macOS, you can use a shell loop: for f in *.m4a; do ffmpeg -i "$f" -c:a libvorbis -q:a 4 "${f%.m4a}.ogg"; done. On Windows, a similar loop can be written in PowerShell. The browser-based tool on this page processes files individually, so for large batch jobs the desktop FFmpeg command is the more practical option.

Technical Notes

ALAC files are typically stored with the .m4a extension inside an MPEG-4 container, the same extension used by AAC audio — the codec difference is internal. FFmpeg correctly identifies the ALAC stream via the container's codec descriptor and decodes it without any special flags. The output OGG container supports multiple audio tracks and chapter markers, so chapter metadata from ALAC audiobook files should survive the conversion intact. One important limitation: ALAC supports bit depths of 16, 20, 24, and 32 bits, but the libvorbis encoder works internally at floating-point precision and outputs at effectively 16-bit perceptual quality — so any 24-bit dynamic range benefit from the source ALAC is not preserved in the OGG output. If lossless OGG is required (for example, to preserve 24-bit depth), the encoder can be swapped to FLAC inside OGG using -c:a flac, though this is a niche use case. The Vorbis codec is mature and well-supported but is gradually being superseded by Opus (-c:a libopus) for new use cases, which offers better quality at lower bitrates — particularly below 96 kbps.

Related Tools