Sample rate converter
Find the exact relationship between two audio sample rates: the conversion ratio and the rational L/M resampling factors (upsample by L, downsample by M). You can also convert a sample count from the source rate to the target rate. It is aimed at audio engineers and developers setting up resampling pipelines.
How it works
The ratio is simply target ÷ source. To get the integer resampling factors, the
tool divides both rates by their greatest common divisor (GCD):
L = target ÷ gcd(source, target) M = source ÷ gcd(source, target)
Resampling then means inserting samples to upsample by L, then discarding to
downsample by M. A converted sample count is original × ratio.
Example
Converting 44,100 Hz to 48,000 Hz:
| Quantity | Value |
|---|---|
| Ratio (48000 ÷ 44100) | ≈ 1.0884 |
| GCD | 300 |
| L / M | 160 / 147 |
| 44,100 samples → | ~48,000 samples |
Everything is computed locally in your browser; no audio is processed or uploaded.