LAME MP3 Encoder is the free, open-source MP3 encoder that runs inside Audacity, foobar2000 and most CD rippers, and version 4.0 is its first major release since 2017, with security fixes rather than changes to how your files sound.
LAME 4.0 arrived on 11 July 2026, the first new major version of the MP3 encoder since 3.100 in 2017.
It is a security and housekeeping release rather than a sound-quality overhaul, so nothing in your existing music library needs re-encoding.
The package here is the Windows build of that release, and it is the same encoder that sits underneath most free audio software on the platform.
What Actually Changed in 4.0
The headline reason for the jump from 3.101 to 4.0 is boring but sensible. Every MP3 that LAME creates carries a small tag identifying the encoder, and that tag has a fixed nine-byte slot for the version string.
Once minor versions reached three digits with 3.100, the slot ran out of room and the trailing letter marking an alpha, beta or final build was silently dropped. Going to 4.0 makes that marker fit again, so an MP3 now says honestly which kind of build produced it.
The substance of the release is two security fixes. The more serious one closes a stack buffer overflow in lame_enc.dll, the older Blade-compatible library that many legacy applications load, where a configuration structure handed to it was accepted without a proper size check.
LAME now verifies the size of that structure and uses one consistent memory layout across Microsoft and MinGW builds. The second fix removes an integer underflow in the AIFF header reader that could send the encoder into an endless loop on a malformed file.
The rest is maintenance. LAME now compiles cleanly with current GCC and Clang versions, a bug that wrote wrong genre information when using --id3v2-utf8 together with --tg is fixed, and the shared library now exposes its UTF-8 tagging functions to other applications.
Do You Actually Need to Update?
If you encode your own files from your own CDs, the urgency is low and the audio will sound identical to what 3.100 gave you.
If you run an older application that loads lame_enc.dll and you feed it audio from elsewhere, updating is worth doing, because that is the component the overflow fix applies to. Developers shipping LAME inside their own software should move on principle.
What Is Inside the Download
LAME comes in two shapes and it helps to know which one you are looking for. lame.exe is the encoder you run yourself from a command prompt, and libmp3lame (exposed on Windows as lame_enc.dll in some packages) is the library other programs load so they can write MP3s without shipping their own encoder.
The LAME project itself only publishes source code, so every Windows package, including this one, is compiled by a third party. The build listed here is the SIMD-optimized compile, which uses the vector instructions in modern Intel, AMD and ARM processors to encode noticeably faster than a plain build.
It contains the 64-bit and 32-bit encoder executables rather than the library. If an application is specifically asking you for lame_enc.dll, the sections below are the easier route than hunting for a matching library build.
Getting MP3 Export Working in Audacity
Audacity 3.2 and every version since bundles LAME internally, so there is nothing to install and no library to point at. If your Audacity exports MP3s already, you are done.
Older versions, and some portable builds, still ask for the encoder on first export.
-
Save
lame_enc.dllanywhere you like on your drive, such as your Documents folder. - In Audacity, open Edit, then Preferences, then Libraries.
- Click Locate next to the MP3 Library entry and browse to the file.
- Export as MP3 to confirm it took. No restart is needed.
The step-by-step LAME install guide for Windows walks through the same path with screenshots if you would rather follow along.
Front-Ends for People Who Do Not Want a Command Prompt
Most people never touch lame.exe directly, and there is no reason to.
LameXP is the fullest option: it bundles LAME along with Opus and FLAC encoders, takes drag-and-drop batches, and exposes every LAME preset in a normal window.
X Audio Converter is the lighter choice when you just want to drop in a file, pick a bitrate and get an MP3 back.
If you already live in foobar2000, the foobar2000 Free Encoder Pack adds LAME to the player's own converter dialog alongside AAC, Opus and FLAC.
For a single file with nothing to install, the site's online audio converter handles conversions in the browser.
The Settings That Actually Matter
Bitrate is how much data per second the encoder spends on your audio, and higher usually means better sound and bigger files. LAME can either hold that number steady or let it move around as the music gets more complex.
For music, variable bitrate is almost always the right answer. -V 2 averages roughly 190 kbps and is the long-standing sweet spot, sounding indistinguishable from the source to most listeners on most equipment, while -V 0 pushes to around 245 kbps if you want headroom you probably cannot hear.
Fixed bitrate is for situations where predictable file size matters, such as broadcast and podcast delivery. -b 192 is a sensible music floor and -b 128 is fine for speech, below which voices start to sound rough.
One quirk worth remembering.
With fixed and average bitrate modes, asking for the slowest quality settings -q0 through -q3 can make the output worse rather than better, because of an old tuning left over from a psychoacoustic model no longer in use. Use -q4 there instead. Variable bitrate is unaffected, and the issue is still open in 4.0.
The best LAME settings guide and the WAV to MP3 quality guide go through the presets case by case.
Where LAME Fits in a Ripping Workflow
LAME encodes, it does not rip, so a CD collection needs one tool in front of it.
Exact Audio Copy is the accurate choice, reading discs repeatedly and verifying against a shared database before handing the audio to LAME. Audiograbber is simpler and lighter.
CDex still works but has been dormant since 2020 and is worth skipping for a maintained alternative. Once the files exist, Mp3tag fixes the artist, album and cover art so your player does not file everything under Unknown Artist.
Picking the Right Build for Your Machine
Most Windows desktops and laptops want the 64-bit executable, and the 32-bit one is only for genuinely old systems.
Windows on ARM devices such as Surface and Snapdragon laptops run better on LAME for Windows ARM64, which skips the emulation layer entirely. Mac users, including Apple Silicon, want LAME for Mac OS instead.
When Another Format Makes More Sense
MP3 earns its place through sheer compatibility. Car stereos, old portable players, cheap Bluetooth speakers and every phone ever made will play it, which is why it is still the safe format for anything leaving your own computer.
Where compatibility is not the constraint, Opus sounds clearly better at low bitrates and is the better pick for voice, podcasts and streaming.
For archiving, FLAC keeps every bit of the original at roughly half the size of a WAV, and the FLAC versus MP3 comparison covers the trade-off in plain terms.
If you need one tool that handles every format at once rather than a dedicated encoder, the FFmpeg Audio Encoder covers the lot, and the Audio Encoders section lists the rest of the current builds.
Quick questions
Is LAME free to use, even commercially?
Yes. LAME is open source under the LGPL, and the MP3 licensing program ended in 2017, so encoding MP3s carries no fee for personal or commercial work.
Do I still need to download LAME separately for Audacity?
Not on Audacity 3.2 or newer, which includes it. Only older releases and some portable builds ask you to supply the library yourself.
Will 4.0 make my MP3s sound better than 3.100 did?
No. It is a security and compatibility release, and encoded output is unchanged, so there is no reason to re-encode anything you already have.
What is the difference between lame.exe and lame_enc.dll?
lame.exe is the encoder you run yourself from a command prompt. lame_enc.dll is the older library that other applications load so they can create MP3s internally.
Which quality setting should I use for music?
-V 2 for a good balance and -V 0 if you want the maximum. Add -q4 if you are using a fixed or average bitrate rather than variable.
Does LAME decode MP3s as well?
It can, but for playback any normal player is a better choice. For legacy Windows applications that cannot handle MP3 at all, the MPEG Layer-3 decoder is the fix.
More encoders, decoders and format tools sit in the Audio Codecs section.
Download LAME MP3 Encoder 4.0 and see how it handles your files, or tell us how you got on if you have used it before.

Nope. Fraunhofer still sounds considerably better at 128kbps CBR compared to LAME. Much better using VBR encoding.
128kbps CBR should be outlawed.