S ≈ 1000 × R × t / 8
Start your audio project
Drop an audio file here or choose an option below.
Recording…
00:00
Was this tool useful?
How does this tool work?
Compress an audio file by choosing an output format and bitrate to reduce file size. The tool re-encodes media locally with FFmpeg/WASM without uploading the audio content to Bethemesh.
Choose MP3, M4A, OGG or Opus, then a bitrate from 32 to 320 kbps. FFmpeg/WASM re-encodes the track with the corresponding codec. A lower bitrate usually means a smaller file but also more audible loss; re-encoding an already compressed file can never restore information that was removed earlier. The initial setting is MP3 at 128 kbit/s. Compression here means reducing encoded data, not adjusting a dynamics compressor’s threshold, ratio or attack. The engine accepts 32–320 kbit/s and rounds decimal bitrate requests to an integer. Some codec and source sample-rate combinations may still be unsupported. Re-encoding an already small file can make it bigger. Compare actual bytes and listen to the result instead of assuming that a compression action always saves space. For Opus, processing uses the native CELT encoder at the requested bitrate. It avoids a libopus memory failure in the current core and does not offer SILK speech mode.
How to use this tool
Import the file
Choose a supported audio file.
Choose format and bitrate
Select the target codec and a bitrate suited to the intended use.
Compare the result
Download the compressed copy and keep the original when quality must remain recoverable.
Audio compressor — Calculation reference
- S
- Estimated bytes, excluding tags and container
- R
- Bitrate in decimal kbit/s
- t
- Duration in seconds
Use cases
Shrink a podcast
Reduce an episode’s file size before publishing or transferring it without changing its duration.
Prepare a mobile copy
Create a lighter version for a device or limited connection.
Standardize a batch
Apply the same format and bitrate to multiple files in Workspace.
Examples
Five minutes at 128 kbit/s
128,000 × 300 ÷ 8. Container overhead, tags and variable bitrate can change the actual size.
Input
300 s, requested bitrate 128 kbit/sResult
About 4,800,000 bytes, or 4.8 decimal MBThe same programme at 64 kbit/s
The estimate halves. This does not mean half the audible quality or guaranteed support for every codec/source combination.
Input
300 s, requested bitrate 64 kbit/sResult
About 2,400,000 bytesTips and best practices
- Avoid repeated re-encoding between lossy formats because every pass can degrade the signal further.
- For lossless storage, use FLAC through the general converter instead of MP3, M4A, OGG or Opus compression.
- Speech often tolerates a lower bitrate than dense music, but the right value still depends on the source and listening context.
Sources and references
- FFmpeg project, FFmpeg Formats Documentation (opens in a new tab)Page in English
- J.-M. Valin, K. Vos, T. Terriberry, RFC 6716 — Definition of the Opus Audio Codec (opens in a new tab), RFC Editor, 2012Page in English
- FFmpeg project, FFmpeg Codecs Documentation (opens in a new tab)Page in English
- IETF, RFC 9639 — Free Lossless Audio Codec (FLAC) (opens in a new tab), 2024Page in English
- Xiph.Org Foundation, Vorbis I specification (opens in a new tab), 2020Page in English
Frequently asked questions
Does compression always reduce quality?
The formats offered here use lossy compression, so aggressively lowering the bitrate can remove more audio information.
Can I compress a file that is already MP3?
Yes, but it is decoded and re-encoded, which can reduce size at the cost of another generation of quality loss.
Is the file uploaded?
No. Media stays in the browser; only the FFmpeg/WASM runtime is loaded on demand.
Why is the compressed file larger than my original?
A target bitrate above the source bitrate can increase size without recovering lost detail. Compare the downloaded size and audible quality.
Does this compressor reduce differences between quiet and loud words?
No. It selects an encoding format and bitrate. Use loudness normalization for overall perceived level; this tool has no dynamics-compressor controls.
Related tools
Keep going with these tools
Tools similar or complementary to this one.
Similar tools
Convert audio files locally to MP3, WAV, FLAC, OGG, M4A or Opus.
Normalize the perceived loudness of an audio file to a LUFS target.
Keep only the useful part of an audio file.
Read next
Audio compression: bitrate, format and quality
Learn how bitrate, lossy and lossless compression affect audio quality and file size, and choose sensible settings for distribution.
MP3, WAV, FLAC, OGG, Opus and M4A: which audio format should you choose?
Compare common audio formats, compatibility, compression and typical uses to choose the right working, archive or distribution format.
Normalize audio volume: peak, RMS and LUFS
Understand peak level, RMS and LUFS, when normalization is useful, and how to make several audio files sound more consistent.
Create an audio workflow with Workspace and pipelines
Combine trimming, channels, sample rate, normalization, compression and export into a clear, reusable audio processing pipeline.