Why Convert FLAC to AAC?
You have a music library in FLAC — the right choice for archiving. But you also have an iPhone, AirPods, an Apple Watch, and a HomePod. While modern Apple devices can play FLAC files directly, the Apple ecosystem is built around AAC. Apple Music streams in AAC. iTunes (now Apple Music on Mac) handles AAC natively. AirPods receive audio via AAC Bluetooth codec. The entire Apple audio pipeline is optimized for AAC.
Converting your FLAC library to AAC creates Apple-optimized copies that integrate seamlessly with the ecosystem, take up less space than FLAC, and sound excellent — AAC at 256 kbps is Apple's own "high quality" standard and is considered transparent by most listeners.
This tutorial covers the complete FLAC to AAC workflow: choosing the right encoder and bitrate, preserving metadata and album art, batch converting entire libraries, and understanding the quality implications of going from lossless to lossy.

Understanding the Conversion
What You Are Doing
FLAC is lossless — it preserves the exact original audio data. AAC is lossy — it permanently discards audio information that the encoder determines is inaudible. Converting FLAC to AAC is a one-way quality reduction. The resulting AAC file will be smaller but cannot be converted back to a genuine lossless file.
This is perfectly fine for listening purposes. The whole point is to create a smaller, more convenient copy for portable use while keeping your FLAC masters safe for archival and future conversion needs.
FLAC vs. AAC Comparison
| Feature | FLAC | AAC (M4A) |
|---|---|---|
| Compression | Lossless | Lossy |
| File Size (4-min song) | ~25-35 MB | ~7-9 MB (256 kbps) |
| Audio Quality | Perfect (bit-for-bit original) | Excellent at 256 kbps; transparent at 320 kbps |
| Apple Ecosystem | Supported (iOS 11+), not native | Native format, fully optimized |
| Bluetooth (AirPods) | Transcoded to AAC over Bluetooth | Passed through natively |
| Metadata | Vorbis comments | MP4 atoms (full iTunes metadata) |
| Album Art | Embedded (PICTURE block) | Embedded (covr atom) |
| Gapless Playback | Supported | Supported (iTunes-compatible) |
| Hi-Res Support | Up to 32-bit/655 kHz | Up to 24-bit/96 kHz (HE-AAC v2) |
Pro Tip: Never delete your FLAC masters after converting to AAC. FLAC files are your archival source — if a better codec emerges in five years, or if you want to convert to a different format (Opus, MP3, or whatever comes next), you want to encode from the lossless original. Lossy-to-lossy transcoding (AAC to MP3, for example) compounds quality degradation. Our lossless vs. lossy compression guide explains this in detail.
Choosing the Right AAC Encoder
Not all AAC encoders are created equal. The encoder you use has a significant impact on the quality of the output at any given bitrate.
Encoder Quality Rankings
| Encoder | Quality | Availability | Notes |
|---|---|---|---|
| Apple AAC (CoreAudio) | Excellent | macOS only | The reference AAC encoder; used by Apple Music |
| FDK-AAC (libfdk_aac) | Excellent | Cross-platform (FFmpeg) | Fraunhofer's reference implementation; best cross-platform option |
| FFmpeg AAC (native) | Good | Cross-platform (FFmpeg) | Built into FFmpeg; good quality but below FDK-AAC |
| FAAC | Fair | Cross-platform | Older encoder; not recommended for new work |
If you are on macOS, the Apple AAC encoder (accessible through afconvert or XLD) produces the highest quality AAC files. On Windows and Linux, FDK-AAC (available in custom FFmpeg builds) is the best option. FFmpeg's built-in AAC encoder is a reasonable fallback if FDK-AAC is not available.
Converting FLAC to AAC with FFmpeg
Basic Conversion
# Using FFmpeg's built-in AAC encoder
ffmpeg -i input.flac -c:a aac -b:a 256k output.m4a
# Using FDK-AAC (if available in your FFmpeg build)
ffmpeg -i input.flac -c:a libfdk_aac -b:a 256k output.m4a
# VBR mode with FDK-AAC (recommended for best quality-per-bit)
ffmpeg -i input.flac -c:a libfdk_aac -vbr 5 output.m4a
FDK-AAC VBR mode uses quality presets from 1 (lowest, ~32 kbps) to 5 (highest, ~256 kbps average). VBR 5 produces the highest quality and is recommended for music.
With Metadata Preservation
FFmpeg automatically copies compatible metadata from FLAC to M4A. To ensure all tags transfer:
# Copy all metadata including album art
ffmpeg -i input.flac -c:a aac -b:a 256k -map 0:a -map 0:v? -c:v copy -disposition:v attached_pic output.m4a
The -map 0:v? and -c:v copy -disposition:v attached_pic flags ensure embedded album art is copied from the FLAC file to the M4A output. The ? makes the video stream optional (so the command does not fail if there is no album art).
Apple's afconvert (macOS Only)
On macOS, Apple's built-in afconvert tool uses the Apple AAC encoder:
# Convert FLAC to AAC using Apple's encoder (macOS)
afconvert input.flac -o output.m4a -f m4af -d aac -b 256000 -q 127
# VBR mode (quality-based)
afconvert input.flac -o output.m4a -f m4af -d aac -s 3 -q 127
The -q 127 flag sets maximum quality, and -s 3 selects VBR encoding strategy.
Using XLD (macOS — Recommended)
XLD (X Lossless Decoder) is a free macOS application that uses Apple's CoreAudio encoder and provides an excellent GUI for batch FLAC to AAC conversion. It preserves all metadata, supports cue sheets, and handles multi-format batch operations. It is widely considered the best tool for this specific task on macOS.

Bitrate Selection
Recommended Bitrates for FLAC to AAC
For AAC, the sweet spot is lower than MP3 because AAC is a more efficient codec. It achieves better quality at equivalent bitrates:
- 128 kbps: Good quality for casual listening. Slight artifacts on complex material. Acceptable for portable devices with limited storage.
- 192 kbps: Very good quality. Artifacts are subtle and undetectable for most listeners on most content.
- 256 kbps: Apple's "high quality" standard (used in iTunes Store purchases). Transparent for the vast majority of listeners. This is the recommended default.
- 320 kbps: Maximum standard AAC bitrate. Marginally better than 256 kbps in theory, but the difference is inaudible in blind tests.
For a deep dive into how AAC compares to MP3 at various bitrates, read our AAC vs MP3 comparison.
# Different quality tiers
# Casual listening (good quality, small files)
ffmpeg -i input.flac -c:a aac -b:a 128k casual.m4a
# Standard quality (Apple's recommendation)
ffmpeg -i input.flac -c:a aac -b:a 256k standard.m4a
# Maximum quality
ffmpeg -i input.flac -c:a aac -b:a 320k maximum.m4a
Pro Tip: If you are using FDK-AAC, VBR mode 5 is generally preferred over CBR 256k. Variable bitrate allocation gives the encoder more flexibility — it uses fewer bits on simple passages and more bits on complex ones, producing better quality per average byte. For a detailed explanation of VBR vs CBR encoding strategies, see our how to convert WAV to MP3 guide, which covers these concepts in depth.
Batch Conversion
Converting an Entire FLAC Library
#!/bin/bash
# Batch convert all FLAC files to AAC, preserving directory structure
find /path/to/flac-library -name "*.flac" | while read flac; do
# Create matching output path
relative="${flac#/path/to/flac-library/}"
output="/path/to/aac-library/${relative%.flac}.m4a"
# Create output directory
mkdir -p "$(dirname "$output")"
# Convert with metadata and album art
ffmpeg -i "$flac" -c:a aac -b:a 256k \
-map 0:a -map 0:v? -c:v copy -disposition:v attached_pic \
"$output" -y 2>/dev/null
echo "Converted: $relative"
done
Parallel Batch Conversion
For large libraries, process multiple files simultaneously:
#!/bin/bash
# Parallel FLAC to AAC conversion (8 files at a time)
find /path/to/flac-library -name "*.flac" | xargs -P 8 -I {} bash -c '
flac="{}"
relative="${flac#/path/to/flac-library/}"
output="/path/to/aac-library/${relative%.flac}.m4a"
mkdir -p "$(dirname "$output")"
ffmpeg -i "$flac" -c:a aac -b:a 256k -map 0:a -map 0:v? -c:v copy -disposition:v attached_pic "$output" -y 2>/dev/null
echo "Done: $relative"
'
For a browser-based approach, our audio converter handles batch FLAC to AAC conversion with a drag-and-drop interface. Our batch processing guide covers additional techniques for large-scale operations.
Preserving Metadata and Album Art
Tag Mapping Between FLAC and M4A
FLAC uses Vorbis comments; M4A uses MP4 atoms. FFmpeg handles the mapping automatically for common fields:
| FLAC Tag (Vorbis Comment) | M4A Tag (MP4 Atom) | FFmpeg Handling |
|---|---|---|
| TITLE | nam | Automatic |
| ARTIST | ART | Automatic |
| ALBUM | alb | Automatic |
| ALBUMARTIST | aART | Automatic |
| DATE | day | Automatic |
| TRACKNUMBER | trkn | Automatic |
| DISCNUMBER | disk | Automatic |
| GENRE | gen | Automatic |
| COMPOSER | wrt | Automatic |
| LYRICS | lyr | May need explicit mapping |
| REPLAYGAIN_* | No standard equivalent | Lost in conversion |
Album Art Handling
# Verify album art is embedded in FLAC
ffprobe -v quiet -show_entries stream=codec_type,codec_name -of default=noprint_wrappers=1 input.flac
# If the FLAC has an embedded picture, it shows as a video stream:
# codec_type=video
# codec_name=mjpeg (or png)
# Convert with album art preservation
ffmpeg -i input.flac -c:a aac -b:a 256k -map 0:a -map 0:v -c:v copy -disposition:v:0 attached_pic output.m4a
Adding Album Art During Conversion
If your FLAC files do not have embedded album art but you have a separate cover image:
ffmpeg -i input.flac -i cover.jpg -map 0:a -map 1:v \
-c:a aac -b:a 256k -c:v copy \
-metadata:s:v title="Album cover" \
-metadata:s:v comment="Cover (front)" \
-disposition:v attached_pic \
output.m4a
Importing into Apple Music / iTunes
After converting your FLAC files to M4A (AAC), import them into Apple Music:
- Open Apple Music (or iTunes on older macOS / Windows)
- Go to File > Add to Library (or drag files/folders into the window)
- The M4A files will be recognized natively with all metadata and album art
Alternatively, if you prefer Apple to handle the encoding, you can import FLAC files directly (macOS only, since macOS supports FLAC natively) and have Apple Music convert them using its built-in encoder:
- Go to Apple Music > Settings > Files > Import Settings
- Set Import Using to "AAC Encoder" and Setting to "iTunes Plus" (256 kbps VBR)
- Select the FLAC files in your library
- Go to File > Convert > Create AAC Version
This method uses Apple's own encoder, which produces excellent results.

What About ALAC (Apple Lossless)?
If you want to keep lossless quality within the Apple ecosystem, ALAC (Apple Lossless Audio Codec) is the answer. ALAC is Apple's lossless codec — functionally equivalent to FLAC but stored in an M4A container that Apple devices and software handle natively.
# Convert FLAC to ALAC (lossless to lossless — no quality loss)
ffmpeg -i input.flac -c:a alac output.m4a
FLAC to ALAC is a lossless conversion — the decoded audio is bit-for-bit identical. The only changes are the container format and compression algorithm. File sizes are comparable (ALAC is typically slightly larger than FLAC).
Use ALAC if you want lossless quality on Apple devices. Use AAC if you want smaller files and are willing to accept the (minimal) quality trade-off. For most practical listening, AAC at 256 kbps is indistinguishable from ALAC/FLAC on Apple hardware. For more on this comparison, see our FLAC vs MP3 guide and best audio format for music.
Gapless Playback
Gapless playback matters for live albums, classical music, concept albums, and DJ mixes where tracks should flow seamlessly into each other without a gap.
AAC natively supports gapless playback through encoder delay metadata stored in the MP4 container. When converting FLAC to AAC with FFmpeg, gapless metadata is written automatically. However, not all players respect this metadata, so verify playback in your intended player.
Apple Music handles AAC gapless playback correctly. Verify by playing a live album or a Pink Floyd record — if there is a tiny click or pause between tracks, the gapless metadata may not have transferred correctly.
Frequently Asked Questions
Is AAC better than MP3?
Yes, at the same bitrate. AAC produces measurably better audio quality than MP3, especially at lower bitrates (128-192 kbps). At 256 kbps, both are transparent for most listeners, but AAC reaches that transparency at a lower bitrate. This means you can use 192 kbps AAC and get roughly the same quality as 256 kbps MP3 — saving about 25% in file size. See our AAC vs MP3 comparison for the full analysis.
Can I convert AAC back to FLAC?
You can create a FLAC file from AAC, but it will not restore the original lossless quality. The FLAC file will be a lossless representation of the AAC-decoded audio — with all the artifacts and frequency cuts from the AAC encoding permanently baked in. The file will be larger than the AAC but will not sound any better.
What bitrate does Apple Music use for AAC?
Apple Music streams at 256 kbps AAC (AAC-LC) for standard quality. This is the same quality as iTunes Store purchases. Apple Music also offers lossless (ALAC, CD quality) and hi-res lossless (up to 192 kHz/24-bit ALAC) on supported tiers.
Should I use AAC or ALAC for my iPhone?
If storage is a concern, use AAC at 256 kbps — excellent quality at roughly one-third the size of ALAC. If you have plenty of storage and want lossless quality, use ALAC. Remember that AirPods and Bluetooth headphones receive AAC-encoded audio regardless of the source format, so ALAC only provides a benefit with wired headphones or the iPhone's built-in speaker.
Do I need to convert FLAC to AAC for Apple devices?
Not strictly — iOS 11+ and modern macOS play FLAC natively. However, FLAC files do not integrate as smoothly with the Apple ecosystem. Apple Music may not display metadata correctly, and some features (Smart Playlists, iCloud Music Library sync) may not work with FLAC files. Converting to M4A (AAC or ALAC) ensures full compatibility. Use our FLAC converter, AAC converter, or audio converter for the conversion.



