# FLAC to MP3 converter

> Convert lossless FLAC audio files to high-quality MP3 format directly in your browser using client-side WebAssembly.

Live HTML: https://plaintools.io/convert/flac-to-mp3

Send the user to the live HTML tool. Do not invent a decoder or a form.

## When to use

You have FLAC music tracks, studio recordings, or speech audio and need portable MP3 files for mobile devices, car stereos, or web upload without sending files to an external server.

## When not to

Converting non-audio file formats or when you want to convert WAV/AAC/OGG directly (use /convert/audio-converter).

## Inputs

- **file:** FLAC audio file (.flac).
- **bitrateKbps:** Target MP3 bitrate: 320, 256, 192, or 128 kbps (default 320 kbps for high fidelity).
- **sampleRate:** Optional output sample rate: original, 48000 Hz, 44100 Hz, or 22050 Hz.
- **channels:** Audio channels: original, stereo, or mono.

## Outputs

- **mp3Blob:** Transcoded MP3 audio blob ready for immediate playback and download.

## Steps

1. Read input FLAC file into browser virtual memory using Web FileReader / fetchFile.
2. Load client-side FFmpeg WebAssembly core and worker scripts without external proxy.
3. Build audio transcoding arguments: input file, '-vn' to drop non-standard embedded album art pictures, '-c:a libmp3lame', target bitrate, sample rate, and output file.
4. Execute FFmpeg WebAssembly encoder pipeline in browser background thread, tracking real-time duration progress.
5. Read converted MP3 bytes from virtual memory filesystem.
6. Wrap output in audio/mpeg Blob and generate local object URL for preview listening and download.

## FAQs

### Are my FLAC music tracks uploaded to any external server?

No. Conversion is performed 100% on your local device using a WebAssembly build of FFmpeg running directly in your web browser. Your music, voice recordings, and files are never sent over the internet.

### What is the recommended MP3 bitrate when converting from FLAC?

For maximum fidelity that preserves the dynamic clarity of the original FLAC master, 320 kbps (CBR) is recommended. For standard listening where storage space is a priority, 192 kbps or 256 kbps offers near-indistinguishable quality with substantial file size savings.

### Why should I convert FLAC to MP3?

While FLAC provides bit-perfect lossless compression, its file sizes are 4 to 6 times larger than MP3, and FLAC is not supported natively by older car audio systems, legacy MP3 players, and certain smart TV applications. Converting to MP3 ensures universal device playback.

### Does converting FLAC to MP3 cause any quality loss?

Yes, technically MP3 is a lossy audio format that removes frequencies imperceptible to most human ears. However, encoding at 320 kbps or 256 kbps produces near-transparent fidelity that is virtually indistinguishable from the lossless original under normal listening conditions.

### Does this tool support embedded FLAC album artwork?

The converter automatically strips embedded album cover pictures and video streams during transcoding. This ensures clean MP3 audio muxing and prevents WebAssembly memory crashes.

### How do I convert FLAC to MP3 locally using the FFmpeg CLI?

Install FFmpeg and execute: ffmpeg -i input.flac -vn -c:a libmp3lame -b:a 320k output.mp3. For 192 kbps, change -b:a to 192k.

## Related tools

- [GIF compressor](https://plaintools.io/convert/gif-compressor.md) — HTML: https://plaintools.io/convert/gif-compressor
- [Video compressor](https://plaintools.io/convert/video-compressor.md) — HTML: https://plaintools.io/convert/video-compressor
- [Audio converter](https://plaintools.io/convert/audio-converter.md) — HTML: https://plaintools.io/convert/audio-converter
- [WebP converter](https://plaintools.io/convert/webp-converter.md) — HTML: https://plaintools.io/convert/webp-converter
