Audio Sample Rate Converter

Resample audio to 44100 / 48000 / 22050 Hz in your browser

Ad placeholder (leaderboard)

Convert audio between sample rates locally

A sample-rate converter changes how many samples per second an audio file uses — for example from a 48000 Hz video master to 44100 Hz for CD, or down to 22050 Hz to shrink a voice recording. This tool does it entirely in your browser and gives you a ready-to-use WAV.

How it works

The input is decoded to raw PCM, then played through an OfflineAudioContext that is constructed at the target sample rate. Because the offline context renders at that rate, the browser’s high-quality resampler produces the converted samples for you. The new length is computed as ceil(duration × targetRate) so the full audio is captured.

The rendered buffer is then written to a 16-bit PCM WAV: a standard 44-byte RIFF/WAVE header followed by interleaved, clamped little-endian samples. The result is offered as a download via an object URL.

Tips and notes

  • Use 44100 Hz for music distribution (CD, most streaming) and 48000 Hz for anything paired with video.
  • Downsampling is lossy in the sense that high frequencies above the new Nyquist limit are removed; upsampling cannot add detail that was not there.
  • The output WAV is uncompressed, so files are larger than the source MP3 — re-encode to MP3/AAC afterward if size matters.
  • Everything is local, so very long files use significant memory; convert in sections if the browser slows down.
Ad placeholder (rectangle)