Updated: 10 November 2026 · Applies to: LAME 3.100 on Debian 13, Ubuntu 24.04, AlmaLinux 9.8 and 10.2, Rocky Linux 9, Fedora 44; LAME for Windows

LAME is a free MP3 encoder: it turns WAV (and raw PCM) audio into MP3 files, and radio, streaming and media tools use it to create MP3 streams. On Linux, install it from your distribution's own repositories as root:

apt install lame

That is for Debian and Ubuntu. On AlmaLinux, Rocky Linux and Fedora use dnf install lame. You no longer need EPEL or RPM Fusion for it: we found LAME in the standard AppStream repository of AlmaLinux 9 and 10 and Rocky Linux 9, and in the main Fedora repository.

Install LAME on Debian and Ubuntu

  1. Refresh the package lists and install the package:
    apt update
    apt install lame
  2. On Ubuntu the package comes from the universe component (noble/universe on 24.04). If apt says "Unable to locate package lame", universe is switched off. On Ubuntu Server enable it with:
    add-apt-repository universe
    apt update

Debian 13 installed 3.100-6+b3 and Ubuntu 24.04 installed 3.100-6build1.

Install LAME on AlmaLinux, Rocky Linux and Fedora

dnf install lame

To see which repository provides it on your server:

dnf repoquery --qf "%{name}-%{version}-%{release} %{repoid}" lame

Output on AlmaLinux 9.8:

lame-3.100-12.el9 appstream

AlmaLinux 10.2 showed lame-3.100-19.el10 appstream and Fedora 44 lame-3.100-21.fc44 fedora. Older guides (including an earlier version of this article) told you to add RPM Fusion first. That is not needed on these releases. If your server has RPM Fusion for other reasons, for example for the full FFmpeg, it does no harm.

Check the installed version

lame --version

Output (the same on every distribution we tested):

LAME 64bits version 3.100 (http://lame.sf.net)

According to the LAME project, version 4.0 was released in July 2026. Distribution packages still ship 3.100 at the time of writing. Stay with the packaged version on a server: it receives security updates with the rest of the system.

Convert a WAV file to MP3

Constant bitrate (CBR), 128 kbps, a common choice for streams:

lame -b 128 input.wav output.mp3

The first lines of the output:

LAME 3.100 64bits (http://lame.sf.net)
Using polyphase lowpass filter, transition band: 16538 Hz - 17071 Hz
Encoding input.wav to output.mp3
Encoding as 44.1 kHz j-stereo MPEG-1 Layer III (11x) 128 kbps qval=3

Other useful options:

  • lame -V 2 input.wav output.mp3: variable bitrate (VBR) at high quality, usually a smaller file than CBR for music. The scale runs from -V 0 (highest quality) to -V 9 (smallest file).
  • lame -b 320 input.wav output.mp3: the highest standard bitrate for 44.1 and 48 kHz audio.
  • lame --quiet ...: no progress output, useful in scripts and cron jobs.
  • lame --decode input.mp3 output.wav: turn an MP3 back into WAV.

In our lab test a five-second 44.1 kHz stereo WAV file (882,044 bytes) became 81,083 bytes at -b 128 and 35,755 bytes at -V 2. That was a simple test tone, so real music will give different sizes.

To convert every WAV file in the current folder:

for f in *.wav; do lame --quiet -V 2 "$f" "${f%.wav}.mp3"; done

LAME on Windows (lame.exe)

The LAME project publishes source code only. According to its website, ready-made Windows builds of lame.exe come from external sites listed on the project's Links page. To use one:

  1. Download a Windows build from one of the sites listed by the LAME project and extract the ZIP file to a folder, for example C:\lame.
  2. Open Command Prompt in that folder and check the build:
    cd C:\lame
    lame.exe --version
  3. Encode a file with the same options as on Linux:
    lame.exe -b 128 input.wav output.mp3

Related guides

If you would rather not run the encoder yourself, Ucartz internet radio hosting includes Shoutcast or Icecast with AutoDJ.

Official documentation: lame(1) manual page.

Related services

KVM VPS hosting

NVMe SSD and full root access, with Free Basic Managed Support.

Unmanaged dedicated servers

full root access and free IPMI KVM, with Free Basic Managed Support.

Managed dedicated servers

our engineers look after the server for you, from $135 a month.

Was this answer helpful?

Still stuck? Open a ticket