Free tool

How do I compress an audio file to a set size?

Choose an audio file, or a video to take the sound from. Pick MP3, Opus or M4A, then type a target size in MB or choose a bitrate, and tick Mono for speech. The compressor works out the bitrate from the length and encodes on your device. MP3 can come out slightly under the target.

Last checked: 28 Nov 2026

Save as
Compress by

How to use it

  1. Choose an audio file, or a video to take the sound from.
  2. Pick MP3, Opus or M4A.
  3. Enter a target size in MB or choose a bitrate; tick Mono for speech.
  4. Press Compress, listen and download.

How it works

Your browser decodes the sound, the tool mixes it to the sample rate and channels the format needs, then encodes it. MP3 uses lamejs, an open-source MP3 encoder (LGPL licence, loaded only when you choose MP3). Opus and M4A use your browser's own audio encoder (WebCodecs) where it is available; Opus is saved in an Ogg file, AAC in an M4A file. For a target size the bitrate is worked out from the length; MP3 uses its standard bitrate steps, so the result can be slightly under the target.

✓

Nothing leaves your device. Your files and the details you type are processed by your own browser. Nothing is uploaded, there is no sign-up and no watermark.

MP3 encoding uses lamejs 1.2.1, used under the GNU LGPL 3.0 as a separate, unmodified file. Licence: GNU LGPL 3.0.

Questions

Which format is smallest?

Opus usually sounds best at low bitrates, especially for speech. MP3 plays on almost every device. M4A (AAC) suits Apple devices.

Why is M4A or Opus greyed out?

Your browser can't encode that format. Chrome on Linux and Firefox, for example, usually can't encode AAC. MP3 always works.

Does it work with videos?

Yes. Choose an MP4 or MOV and the sound is taken out and compressed.

Is my audio uploaded?

No. It is encoded in your browser.

Next step