How to convert mp3 to flac for lossless archival
- Step 1Open the MP3 to FLAC converter — Load the MP3 to FLAC tool. FFmpeg 8.1 streams in as WebAssembly on first use and is cached for subsequent files in the same session.
- Step 2Drop one MP3 file — This tool processes one file at a time (
acceptsMultiple: false). Drag a single.mp3onto the dropzone. For a whole folder, run files one after another — each stays local. - Step 3Pick a compression level — The only control is Compression level:
0 - fastest,5 - balanced,8 - default sweet spot,12 - smallest, slowest. For archival, 8 is the standard; 12 squeezes out a little more size at noticeably longer encode time. The choice affects file size and speed only — never the decoded audio. - Step 4Run the conversion — The browser decodes the MP3 to PCM and encodes FLAC locally. A 4-minute track finishes in a few seconds; very large or long files take proportionally longer because all the work is on your CPU.
- Step 5Verify tags and artwork carried across — Open the FLAC in a tag editor or player. Artist, album, title, date and embedded cover art should be present (carried as Vorbis comments + attached picture). If a source MP3 had no embedded art, none appears — the tool copies what exists, it does not invent it.
- Step 6Download and add to the archive — Save the
.flac, then file it with your checksum/catalog workflow. The FLAC is now the canonical lossless-format copy; you can keep or discard the MP3 depending on your retention policy.
Compression level — the only control on this tool
The four levels exposed in the UI. Every level produces a file that decodes to identical PCM — the trade is purely encode time vs. file size. Default is 8.
| Level | UI label | Encode speed | File size | When to use for archival |
|---|---|---|---|---|
| 0 | 0 - fastest | Fastest | Largest | Huge one-off batches where you'll re-compress later; quickest pass to get audio into the lossless container |
| 5 | 5 - balanced | Fast | Mid | A reasonable middle ground when encode time on a big library matters |
| 8 | 8 - default sweet spot | Moderate | Small | Recommended default for almost all archival work — near-best size at sensible speed |
| 12 | 12 - smallest, slowest | Slowest | Smallest | Final, space-constrained archive where you encode once and store forever |
What MP3 to FLAC actually changes (and what it doesn't)
Grounded in the FFmpeg pipeline this tool runs: decode MP3 to PCM, then flac encode with -map_metadata 0 and cover-art re-map.
| Property | MP3 source | FLAC output | Changed? |
|---|---|---|---|
| Audible quality | Lossy (already) | Identical to the MP3 | No — lossy artefacts are frozen in, not removed |
| Compression type | Perceptual (lossy) | Lossless (mathematical) | Yes — no further loss on future opens |
| Sample rate | e.g. 44.1 kHz | Same (no -ar applied) | No |
| Channels | e.g. stereo | Same (no -ac applied) | No |
| Tags | ID3v2 | Vorbis comments | Format mapped via -map_metadata 0 |
| Embedded art | APIC frame | FLAC PICTURE block | Re-attached if present |
| File size | Baseline | Often larger | Yes — decoded lossy audio compresses poorly under FLAC |
Audio tier limits (per file)
From the audio family limits. durationMin is a per-file duration cap, separate from file size. All processing is in-browser.
| Tier | Max file size | Max duration | Files per batch |
|---|---|---|---|
| Free | 50 MB | 30 min | 1 |
| Pro | 200 MB | 120 min | 10 |
| Pro-media | 100 GB | Unlimited | 100 |
| Developer | 100 GB | Unlimited | Unlimited |
Cookbook
Real archival scenarios with the exact before/after shape. The audio inside the FLAC always decodes identical to the MP3 — these examples show container, size, and metadata behaviour.
320 kbps album track into the lossless archive
A well-encoded 320 kbps MP3 is the only surviving copy of a track. Converting to FLAC at level 8 freezes it so editing/re-tagging in future never re-compresses the audio.
Input: track07.mp3 320 kbps CBR, 44.1 kHz stereo, 4:12, 9.6 MB Control: Compression level = 8 FFmpeg (conceptually): decode MP3 -> PCM s16 -> flac -compression_level 8 -map_metadata 0 (ID3 -> Vorbis comments) Output: track07.flac 44.1 kHz stereo, 4:12, ~11.8 MB Audio decodes bit-identical to the MP3 it came from. Larger file: decoded lossy audio is harder to FLAC-compress than a true recording would be.
Level 8 vs level 12 on the same file
When archive space is tight, level 12 saves a little more. The audio is identical either way — the difference is encode time and bytes.
Source: live-set.mp3 256 kbps, 58:40, 107 MB (Pro tier) Level 8 -> live-set.flac ~131 MB, encodes in T seconds Level 12 -> live-set.flac ~129 MB, encodes in ~1.6 x T Both decode to the SAME PCM. For most archives, 8 is the right call; reserve 12 for write-once, store-forever sets.
Tags and cover art surviving the move
An archive needs metadata, not just audio. -map_metadata 0 carries ID3 fields to Vorbis comments and the embedded picture is re-attached.
Input MP3 tags (ID3v2.3): TIT2 (Title) = "Nightfall" TPE1 (Artist) = "Aria Vance" TALB (Album) = "Coastlines" TDRC (Year) = 2019 APIC = cover.jpg (600x600) FLAC output (Vorbis comments + PICTURE block): TITLE = Nightfall ARTIST = Aria Vance ALBUM = Coastlines DATE = 2019 [embedded PICTURE 600x600] To edit fields afterwards, use the [ID3 / tag editor](/audio-tools/id3-editor).
Source MP3 with no embedded art
The tool copies what exists. A bare MP3 produces a tagged-but-artless FLAC — it never fabricates a cover.
Input: podcast-ep.mp3 (tags present, no APIC frame) Output: podcast-ep.flac (tags carried, no PICTURE block) Want art in the archive? Add it after conversion with the [ID3 / tag editor](/audio-tools/id3-editor), or pull a cover from another file with the [album-art extractor](/audio-tools/album-art-extractor).
Round-tripping: FLAC archive, MP3 for distribution
Keep the lossless-format FLAC as the canonical archive copy; generate MP3s on demand for sharing. Going FLAC back to MP3 is a separate tool.
Archive (canonical): album.flac (this tool) Distribution copy: album.mp3 (re-encode when needed) For the FLAC -> MP3 direction with a bitrate choice, use the [FLAC to MP3 converter](/audio-tools/flac-to-mp3). Note: an MP3 -> FLAC -> MP3 round-trip re-applies lossy encoding on the last step, so distribute from the original MP3 where you still have it.
Edge cases and what actually happens
Expecting FLAC to restore quality lost by MP3
By designFLAC is a lossless container, not a restorer. The data the MP3 codec discarded is gone; converting to FLAC freezes the current quality and prevents further loss, but it cannot recreate the original master. This is the single most common misconception — the tool is for format consistency and stopping generation loss, not for upscaling.
FLAC file is larger than the source MP3
ExpectedAlmost always, and it's normal. FLAC compresses real recorded audio well, but decoded MP3 samples have already been through a perceptual transform, leaving fewer exploitable patterns. A 9.6 MB / 320 kbps MP3 commonly lands around 11-13 MB as FLAC. Choosing level 12 shaves a little, but the FLAC will still typically exceed the lossy MP3.
Compression level does not change the audio
PreservedLevels 0, 5, 8 and 12 all decode to bit-identical PCM. The level only affects how hard the encoder searches for size savings, trading CPU time for bytes. If you A/B two levels expecting an audible difference, you won't hear one — and that's correct behaviour.
File exceeds the tier size or duration limit
RejectedAudio limits are per file: Free 50 MB / 30 min, Pro 200 MB / 120 min, Pro-media and Developer 100 GB / unlimited duration. The duration cap is separate from size — a long, low-bitrate file can pass the byte limit but fail the minutes limit on Free. Trim first with the audio trimmer or upgrade the tier.
Dropping a non-MP3 file (FLAC, WAV, M4A)
MismatchThis page's pipeline targets FLAC output and assumes an MP3 in. The input extension is read from the filename; a file that isn't an MP3 belongs on its matching tool — use WAV to FLAC for WAV sources, or FLAC to MP3 for the reverse direction.
VBR MP3 with an inaccurate duration header
PreservedVariable-bitrate MP3s store a Xing/Info header for duration. FFmpeg decodes the actual frames, so the FLAC length matches the real audio even if a player previously mis-reported the MP3's time. No samples are dropped or padded.
Gapless-album metadata (LAME tag / encoder delay)
Not preservedMP3 gapless playback relies on encoder-delay/padding info in the LAME header, which is MP3-specific and does not map to FLAC. The decoded audio includes the codec's priming samples. For seamless album playback, archive from a lossless original where possible rather than from gapless MP3s.
Tags present but embedded art missing in output
ExpectedCover art is only carried if the source MP3 actually has an embedded APIC frame. Many tracks store art as a separate folder.jpg instead. If the FLAC has no picture, the MP3 had none embedded — add one afterward with the ID3 / tag editor.
Browser tab closed mid-encode on a large file
Re-run requiredAll work happens in the tab; there is no server-side job to resume. Closing or refreshing during a long level-12 encode loses progress. Re-open the tool and run the file again — your original MP3 is untouched on disk.
Unusual sample rate (e.g. 48 kHz or 32 kHz MP3)
PreservedNo resampling is applied (no -ar), so a 48 kHz or 32 kHz MP3 becomes a FLAC at the same rate. FLAC supports these natively. If your archive standard demands a fixed rate, resample explicitly with the sample-rate converter before or after.
Frequently asked questions
Does converting MP3 to FLAC improve audio quality?
No. MP3 is lossy and the discarded data is gone for good. FLAC is a lossless container, so it freezes the MP3's current quality exactly — the FLAC decodes to the same audio the MP3 would. Use this for archival and format consistency, not to recover or upscale quality.
Why archive in FLAC if it can't restore the lost quality?
To stop further loss. Every MP3 edit-and-resave decodes then re-encodes, shedding a little more each round. Once the audio is inside lossless FLAC, future opens decode bit-identical — re-tagging or trimming never degrades it again. You also get one uniform format across a mixed library.
What does the compression level actually do?
It trades encode time for file size, never quality. Levels 0 (fastest), 5 (balanced), 8 (default sweet spot) and 12 (smallest, slowest) all decode to identical PCM. Level 8 is the recommended archival default; 12 saves a little more space at noticeably longer encode time.
Why is my FLAC bigger than the MP3 I started with?
That's normal. FLAC compresses real recordings well, but decoded MP3 audio has already been through a lossy transform and has fewer patterns to exploit. Expect the FLAC to be larger than the lossy MP3 — often by 20-40%. Level 12 trims a bit but rarely beats the MP3's size.
Are my tags and album art kept?
Yes, when present. The tool maps ID3 fields to FLAC Vorbis comments (-map_metadata 0) and re-attaches an embedded cover image. If the source MP3 had no embedded art, the FLAC won't either — add one afterward with the ID3 / tag editor.
Is the sample rate or channel layout changed?
No. The conversion applies no resampling and no channel remixing, so a 44.1 kHz stereo MP3 becomes a 44.1 kHz stereo FLAC. To deliberately change rate or channels, use the sample-rate converter or a channel tool separately.
Can I convert a whole folder at once?
This tool handles one file at a time. For batch work, run files sequentially in the same session (FFmpeg stays cached). Pro and higher tiers raise the per-batch file count for tools that accept multiple inputs, but MP3 to FLAC is single-file by design.
Are my files uploaded anywhere?
No. FFmpeg 8.1 runs as WebAssembly inside your browser tab. The MP3 is read from disk into memory, processed on your CPU, and the FLAC is offered as a download. Nothing is transmitted to a server — ideal for private or unreleased archive material.
What's the largest file I can convert?
Per file: Free 50 MB and up to 30 minutes, Pro 200 MB and up to 120 minutes, Pro-media and Developer 100 GB with unlimited duration. The duration cap is separate from the size cap, so a long low-bitrate file can hit the minutes limit before the byte limit on Free.
What bit depth does the FLAC use?
The encoder follows the decoded MP3 PCM (typically 16-bit), since no explicit sample format is forced. MP3 carries no bit-depth concept of its own — it decodes to PCM — so the FLAC simply stores those samples losslessly. There is no benefit to a higher bit depth here because the source data is already lossy.
I need MP3s again later — can I go back?
Yes, with the FLAC to MP3 converter, but be aware an MP3 to FLAC to MP3 round-trip re-applies lossy encoding on the final step. Where you still have the original MP3, distribute from that instead of re-encoding the FLAC.
Does gapless album playback survive the conversion?
Not reliably. Gapless info lives in MP3-specific LAME header fields that don't map to FLAC, and the decoded audio includes encoder priming samples. For seamless album playback in an archive, prefer encoding FLAC from a lossless source rather than from gapless MP3s.
Privacy first
Every JAD Audio tool runs entirely in your browser via FFmpeg (WebAssembly) and RNNoise. Your audio files never leave your device — verified by zero outbound network requests during processing.