AnyTool
Your files never leave your device. All processing happens locally in your browser.

How do I compress an MP3 to a target size online without uploading it?

Open AnyTool's Compress Audio, drop in your file, and either set an exact target (e.g. "fit in 10 MB" or a percentage) and the tool back-solves the bitrate, or pick the bitrate, sample rate and channels yourself. A live size-and-savings estimate updates instantly with a warning if a setting would grow the file, and you can A/B original vs compressed before exporting MP3, M4A, OGG, FLAC or WAV. Everything runs in your browser with a self-hosted ffmpeg engine — no upload, no daily cap, no CDN.

  • Target-MB / percentage mode that back-solves the bitrate, or manual control
  • Live predicted-size and savings readout with an anti-inflation guard
  • Email/WhatsApp/Discord size chips; MP3/M4A/OGG/FLAC/WAV output
  • 100% in your browser — no upload, no daily cap, no CDN

What is

Audio compression (file size)

Compressing audio reduces its file size by lowering the bitrate, sample rate or channel count, or by switching to a smaller codec such as MP3, AAC or OGG. Target-size mode back-solves the bitrate needed to hit a chosen size from the track duration. A client-side compressor re-encodes in the browser with ffmpeg, without uploading the file.

Audio Tools

Related terms

bitratetarget sizemp3sample rateffmpeg

How to Compress Audio

Reduce an audio file's size in your browser.

20 secWeb browser
  1. 1

    Add audio

    Drop in any audio file — it stays on your device.

  2. 2

    Set a target

    Enter a target MB or pick a bitrate; watch the live size estimate update.

  3. 3

    Compress

    Export as MP3, M4A, OGG, FLAC or WAV — nothing is uploaded.

Result: A smaller audio file

Frequently Asked Questions

No — compression runs entirely in your browser.

The file never leaves your device and there is no daily cap, unlike FreeConvert (queue + 1 GB), XConvert (500 MB, 10 files/day) or Media.io (10/day).

Yes — set a target MB or percentage and the bitrate is back-solved for you.

Target-size mode computes the bitrate from your target and the track length and shows the resolved kbps live, with size chips for Email (25 MB), WhatsApp (16 MB) and Discord (10 MB).

Yes — a live estimate shows the predicted size and savings instantly.

Every change updates a predicted size and savings percentage with no encoding, and a red warning lights up if a setting would make the file larger than the source.

Detailed Explanation

Methodology

How the Audio Compressor Works

AnyTool compresses audio entirely in the browser with a self-hosted single-threaded ffmpeg.wasm engine (bundled core, no CDN). On load it decodes the file with the Web Audio API for duration, sample rate and channels and probes the source codec and bitrate. In manual mode you pick the format, bitrate (CBR or VBR), sample rate and channels; in target-size mode you enter an MB target or a percentage and the bitrate is back-solved from the duration (kbps ≈ targetBytes × 8 ÷ seconds, with headroom and a 32–320 clamp). A live estimate recomputes the predicted size and savings on every change with no encoding, and warns in red if a setting would grow the file. Output is MP3 (libmp3lame), M4A (AAC, +faststart), OGG (libvorbis), FLAC or WAV.

  • Runs client-side — the audio is never uploaded
  • Self-hosted ffmpeg core (bundled) — no CDN
  • Target-MB / percentage mode that back-solves the bitrate
  • Live predicted-size + savings estimate with anti-inflation guard
  • Manual bitrate, sample-rate and channel control
  • Export MP3/M4A/OGG/FLAC/WAV
Privacy & Security

Privacy vs Cloud Compressors

XConvert (500 MB, 10 files/day), FreeConvert (queue + 1 GB), Media.io (10/day), 123apps and compresss.com all upload your files and cap or paywall the free tier. AnyTool compresses on the device, so files never leave the browser, with no daily cap, watermark or sign-up. The only true client-side rivals (PowerCompress, ezyZip) are preset-only and ad-laden, whereas AnyTool adds an exact target-size mode, full bitrate/sample-rate/channel control and a live, encode-free size estimate.

Audio compression: AnyTool vs typical tools
CapabilityAnyToolTypical tools
Data handlingIn your browserOften uploaded
Target-size modeYes (back-solved)Rare
Live size estimateYes (no encode)No
Quality controlsBitrate/sample-rate/channelsOften presets only
Daily capNoneCommon

AnyTool is a privacy-first client-side audio compressor — compression runs locally and nothing is uploaded.