How to Convert M4A to FLAC

Convert M4A to FLAC online for free, for audiophile players and music servers. Fast, secure, no signup required.

Turn an M4A audio file into a lossless FLAC in your browser. No upload, no sign-up, no watermark.

How to Convert M4A to FLAC

Convert M4A to FLAC for audiophile players and music servers

Last updated:

ConvertM4A to FLAC
Depends onAAC or ALAC source
FLAC isLossless and portable
WhereIn your browser

Converting M4A to FLAC sounds like a straight upgrade to a lossless format, but there is an important detail most guides skip: an M4A can hold two very different kinds of audio, and which one you have decides whether this conversion actually preserves studio quality or just repackages an already-compressed file. Getting this straight before you start keeps your expectations honest.

FLAC is the go-to format for people who want a lossless music library that plays everywhere. This guide explains the AAC-versus-ALAC distinction, how each format actually stores sound, what FLAC gives you in return, and how to run the conversion in your browser without uploading your music.

The catch: two kinds of M4A

An M4A file is really an MP4 container that holds either AAC, the lossy codec behind most iTunes and streaming downloads, or ALAC (Apple Lossless). Because FLAC is a lossless format, the source codec changes everything:

Your M4A holdsConverting to FLACResult
ALAC (Apple Lossless)Lossless to losslessEvery sample preserved, just a portable codec
AAC (the usual download)Lossy source, lossless containerFaithfully stored, but no quality is recovered

So convert ALAC to FLAC for genuine archival quality. Convert AAC to FLAC only when you specifically need a FLAC file, not expecting it to sound better than the AAC did. FLAC is lossless from that point forward; it cannot restore detail that AAC already discarded.

The short version

FLAC never adds quality. It preserves whatever the M4A already contained. Lossless in means lossless out; lossy in stays lossy in a lossless wrapper.

Why M4A is a container, not a codec

The single most useful thing to understand about M4A is that the .m4a extension names a container, not the audio inside it. That container is the MP4 file format defined by the MPEG-4 standards, the same wrapper used for MP4 video, but carrying only an audio stream.[1] A container's job is to package one or more media streams together with metadata such as track titles, artist names, and cover art, and to describe how the data is timed and laid out. It says nothing by itself about how the sound was compressed.

Inside that MP4 wrapper, the audio is almost always AAC (Advanced Audio Coding), the efficient lossy codec that Apple adopted for iTunes and that the MPEG-4 family standardized.[2] The alternative payload, ALAC (Apple Lossless Audio Codec), uses the same container but a lossless codec that keeps every sample. Because the file extension is identical either way, the only reliable way to know what you have is to check the file details in a player, which is why this conversion demands that check first. Apple's own downloads, streaming caches, and most third-party rips ship as AAC; ALAC generally appears only when someone deliberately ripped a CD or exported a master in Apple Lossless.

This is why the word "convert" is slightly misleading here. In a lossless-to-lossless conversion, the audio samples themselves are preserved perfectly and only the wrapper and coding scheme change. In a lossy-to-lossless conversion, the samples were already permanently altered before you ever opened the file, and no later format can undo that. The container tells you nothing about which situation you are in, so it pays to treat every M4A as a question rather than an answer until you have confirmed the codec.

How AAC throws sound away

To understand why an AAC-sourced FLAC cannot sound better than its source, it helps to know exactly what AAC removed. Like MP3 before it, AAC is a perceptual codec: it does not try to store the waveform faithfully, it tries to store only the parts of the waveform a listener can actually perceive. It breaks the audio into short overlapping windows, transforms each window from a time signal into a frequency spectrum with a modified discrete cosine transform, and then applies a psychoacoustic model of human hearing to decide how precisely each frequency band needs to be stored.[4]

That model exploits two well-studied quirks of the ear. The first is the absolute threshold of hearing: very quiet sounds, especially at frequency extremes, fall below what anyone can detect and can simply be dropped. The second is auditory masking, where a loud tone hides quieter tones near it in frequency and time, so those masked sounds can be encoded coarsely or not at all. AAC spends its bit budget on what remains audible and rounds off the rest through quantization. The information discarded in that rounding is gone for good; it is not stored anywhere in the file. When you later convert to FLAC, the encoder faithfully preserves the reconstructed, already-thinned waveform, but it has nothing to work from except what AAC chose to keep.

How FLAC achieves lossless compression

FLAC, the Free Lossless Audio Codec, shrinks audio without discarding a single sample, which sounds contradictory until you see how it works.[3] Rather than throwing information away like AAC, FLAC uses linear prediction: for each short block of audio it fits a mathematical model that predicts each sample from the ones before it, then stores only the small error between the prediction and the true value. Because music is highly predictable from moment to moment, those errors are much smaller than the original samples, and FLAC packs them efficiently with a technique called Rice coding.[4]

The result is a file that typically lands around half the size of an uncompressed WAV yet decodes back to a bit-perfect copy of the original. This is the defining difference from AAC: FLAC's compression is fully reversible, so a FLAC made from a true lossless source is indistinguishable from that source. FLAC also builds in per-frame checksums, so a decoder can verify that the audio it reads is exactly what was encoded, a feature archivists value.

Why choose FLAC at all

FLAC is the standard for lossless music because it is open, royalty-free, and supported by nearly every hi-fi player, media server, and portable audio player, whereas ALAC support is narrower outside Apple's ecosystem. It compresses to roughly half the size of an uncompressed WAV with zero quality loss, embeds rich metadata and cover art, and supports gapless playback. For a library you want to keep and play on any device, FLAC is the most portable lossless choice.

Tip

Not sure which codec your file uses? Check the file details in your player. ALAC is labelled "Apple Lossless" and its files are noticeably larger than an AAC of the same track.

How the conversion works under the hood

A converter moves an M4A to FLAC in two distinct stages, and knowing them clarifies why the source codec is decisive. First it demultiplexes and decodes the M4A: it reads the MP4 container, locates the audio track, and runs the AAC or ALAC decoder to reconstruct the raw pulse-code-modulated samples, an ordinary stream of numbers representing the waveform at, say, 44,100 samples per second in two channels. At this point everything the format is ever going to give you already exists as plain samples; nothing about the destination can add to it.

Second it re-encodes those samples into FLAC. The FLAC encoder splits the stream into blocks, models each block with linear prediction, and stores the small residual errors compactly. Because this second stage is fully lossless, the samples that come out of it are bit-for-bit identical to the samples the decoder produced. The whole quality question therefore lives entirely in the first stage: if the decoder was fed ALAC, the samples it produced were the original studio samples, and FLAC preserves them perfectly; if it was fed AAC, the samples were AAC's best perceptual reconstruction, and FLAC preserves that instead. The FLAC step is honest either way, which is exactly why it cannot rescue a lossy source.

Convert M4A to FLAC, step by step

  1. Open the converter and add your M4A

    Open the FileFormer audio converter and drop your M4A in. It runs on your device, so your music is never uploaded.

  2. Choose FLAC as the output

    Set the target to FLAC. The converter re-encodes the audio losslessly and carries your tags and cover art across.

  3. Convert

    The audio is stored in FLAC exactly as it was in the M4A. If the source was ALAC, that is a perfect copy; if it was AAC, it is a faithful one.

  4. Download and add to your library

    Save the FLAC and drop it into your music player or media server. Confirm the metadata came through as expected.

Compression level and metadata settings

FLAC exposes a handful of controls, and it is worth knowing that none of them touch quality. The most visible is the compression level, usually a number from 0 to 8. This slider does not trade quality for size the way a lossy quality dial does, because FLAC is lossless at every level. Instead it trades encoding time for a slightly smaller file: a higher level tells the encoder to spend more effort searching for better prediction models, which can shave a few percent off the size at the cost of a longer encode. The decoded audio is byte-for-byte identical regardless of the level you pick, so the choice is purely about how long you are willing to wait against how many megabytes you want to save.

SettingWhat it changesWhat it does not change
Compression level 0Fastest encode, slightly larger fileSound quality (identical)
Compression level 5 (default)Balanced speed and sizeSound quality (identical)
Compression level 8Smallest file, slowest encodeSound quality (identical)
Metadata and cover artCarries tags across to the FLACThe audio samples

The other controls concern metadata. FLAC stores tags in structured Vorbis comment blocks and can embed cover art, so a good converter carries your artist, album, track number, and artwork across from the M4A automatically. If you keep a tidy library, confirm these survived the conversion, since a mismatch here is the most common annoyance people hit, and it has nothing to do with the audio itself.

Real-world scenarios and the right choice

Whether this conversion is worth doing depends almost entirely on what your M4A actually contains and what you plan to do with the result.

Your situationBest moveWhy
ALAC rip you want in an open formatConvert to FLACTruly lossless in, truly lossless out, and FLAC plays far more widely than ALAC
Ordinary AAC download for archivingKeep the M4AFLAC would balloon the size without adding any fidelity
AAC file a specific tool demands as FLACConvert, but set expectationsYou get a valid FLAC, just not better sound
Music for a phone or carConvert to MP3 or keep AACCompact and universally playable; FLAC is overkill
Editing or masteringDecode to WAVUncompressed samples are simplest for editors to process

When FLAC is not worth it

If your M4A is an ordinary AAC download, converting to FLAC will multiply the file size several times over while sounding identical, because you cannot recover what AAC removed. In that case, keeping the M4A, or converting to another compact format such as MP3, makes more sense for phones and everyday listening. Reserve FLAC for true lossless sources, like ALAC files or CD rips, where the extra size buys you genuine archival fidelity.

FLAC versus ALAC, WAV, and MP3

FLAC is not the only lossless option, and choosing well means understanding its real rivals. ALAC is technically almost equivalent: it is also lossless and compresses to a similar size, but it originated in Apple's ecosystem and, while the codec is now open, tooling and hardware support outside Apple devices remains thinner than FLAC's. If your library must play on a mix of phones, hi-fi streamers, and media servers, FLAC is the safer lossless container precisely because support for it is close to universal.

WAV is lossless too, but in a blunter way: it stores raw uncompressed samples with no prediction, so a WAV is typically about twice the size of the equivalent FLAC while sounding identical. WAV is the right choice as a working file for an editor, where you want the simplest possible data and do not care about size, but it is a poor choice for a library because it wastes space and carries metadata awkwardly. MP3 and AAC sit at the other extreme: lossy, small, and universally playable, they are the right answer whenever portability and size matter more than perfect fidelity. The honest summary is that FLAC wins for a lossless archive you want to keep forever and play anywhere, WAV wins as a scratch file for editing, and a lossy format wins for everyday listening on the move.

Convert to FLAC now

Store your audio losslessly with tags intact, right in your browser, with nothing uploaded.

Open the audio converter

Key takeaways

  • An M4A holds either AAC (lossy) or ALAC (lossless), and that decides what FLAC preserves.
  • FLAC never adds quality; it faithfully stores whatever was already there.
  • Convert ALAC to FLAC for real archival fidelity; converting AAC just changes the container.
  • FLAC is open and widely supported, which ALAC is not outside Apple devices.

References

  1. MPEG-4 File Format, Version 2 - Library of Congress
  2. MPEG-4 File Format, V.2, with Advanced Audio Coding - Library of Congress
  3. FLAC (Free Lossless Audio Codec) - Library of Congress
  4. FLAC (Free Lossless Audio Codec), Version 1.1.2 - Library of Congress