Sample rate conversion (SRC), or resampling, is the process of changing the sample rate of digital audio while keeping its pitch, speed and sound the same: for example converting a 48 kHz mix to 44.1 kHz for CD, or a 96 kHz recording to 48 kHz for video. The term also names the hardware chip or software that does it, a sample rate converter.

Good SRC is now effectively transparent, but it isn’t trivial. Converting between rates means calculating sample values that were never recorded, and that calculation depends on a low-pass filter whose quality decides whether the result is clean or full of aliasing, ringing and high-frequency loss. Knowing when conversion happens, and in what order, avoids most of the problems.

What is sample rate conversion?

A digital recording is a list of samples taken at regular intervals. Changing the rate means producing a new list with a different interval that describes the same band-limited waveform. The original samples define a smooth curve (that’s what a D/A converter reconstructs), so the new samples are points on that curve at the new times. Doing that accurately is mostly a filtering problem.

  • Upsampling (interpolation) raises the rate, for example 44.1 to 96 kHz. It can’t add any new high-frequency content; it just describes the same audio with more samples.
  • Downsampling (decimation) lowers the rate, for example 96 to 48 kHz. Anything above the new Nyquist frequency must be filtered out first, or it will alias.

SRC vs varispeed

If you simply play samples recorded at one rate at a different rate, nothing is converted: the audio speeds up or slows down and its pitch changes, like a tape machine running fast. A 44.1 kHz file played at 48 kHz runs 8.8% fast and sounds about 1.47 semitones sharp. Sample rate conversion is the opposite: the duration and pitch stay the same and only the number of samples per second changes.

History

The audio industry ended up with two families of sample rates for historical reasons. 44.1 kHz came from early digital recorders that stored audio on video tape: in PAL video, 294 usable lines per field × 50 fields per second × 3 samples per line = 44,100; in NTSC, 245 lines × 60 fields × 3 samples gives the same figure. The CD inherited that rate. Broadcast, film and video standardized on 48 kHz, which divides neatly into video frame rates and relates simply to the 32 kHz rate used in broadcast links.

With two incompatible rates, conversion became unavoidable. Early on it was sometimes done by going back to analog and re-recording at the other rate, adding a generation of conversion noise. Digital converters appeared in the 1980s, and the theory was gathered in Crochiere and Rabiner’s 1983 book Multirate Digital Signal Processing. In the early 1990s, Analog Devices introduced single-chip asynchronous sample rate converters such as the AD1890 (1993), which let devices with independent clocks exchange audio digitally.

Software SRC in early DAWs was often mediocre, limited by the processing power of the time. The Infinite Wave SRC comparisons, which publish spectrograms of a large number of converters and versions processing the same test signals, made those differences visible and helped push the quality of DAW converters up. Today most major DAWs and dedicated tools offer high-quality conversion.

How sample rate conversion works

Integer ratios

The simplest case is a whole-number ratio. To double the rate (48 to 96 kHz), insert a zero between every pair of samples and low-pass filter the result at the original Nyquist frequency; the filter fills in the new samples. To halve the rate (96 to 48 kHz), low-pass filter at the new Nyquist frequency first, then keep every second sample. Skipping the filter and just dropping samples would fold everything above 24 kHz back into the audio band.

Non-integer ratios: 48 kHz to 44.1 kHz

For any rational ratio, a converter can upsample by one integer L, filter, and downsample by another integer M. The ratio between 44,100 and 48,000 reduces to 147/160 (both divide by 300). In principle that means upsampling 48 kHz by 147 to an intermediate rate of 7.056 MHz, filtering, and keeping every 160th sample. Real converters never compute the full intermediate signal: a polyphase filter calculates only the output samples that are actually needed, which makes the process efficient.

ConversionReduced ratioType
88.2 kHz to 44.1 kHz1/2Integer
96 kHz to 48 kHz1/2Integer
48 kHz to 96 kHz2/1Integer
48 kHz to 44.1 kHz147/160Rational
96 kHz to 44.1 kHz147/320Rational
44.1 kHz to 48 kHz160/147Rational

Some converters instead use arbitrary-ratio methods that interpolate between filter coefficients. These are required when the ratio isn’t fixed, as in asynchronous SRC.

What makes a converter good

The quality of an SRC is almost entirely the quality of its low-pass filter:

  • Passband flatness: no ripple or droop in the audible range.
  • Cutoff and transition band: how close to Nyquist the filter starts to cut, and how quickly it reaches full attenuation. A filter that starts too low dulls the top end; one that ends too high lets some aliasing through.
  • Stopband attenuation: how strongly content above the new Nyquist frequency is suppressed. The best converters reach well beyond 120 dB.
  • Phase: linear-phase filters keep all frequencies time-aligned but ring symmetrically before and after transients (pre-ringing). Minimum-phase filters avoid pre-ringing but shift the phase of the highest frequencies. Many tools let you choose, or set an intermediate value.

The ringing of a steep filter sits right at the cutoff frequency, around 20 to 22 kHz when converting to 44.1 kHz, which is why its audibility is debated and mostly marginal. Very steep filters also need more taps and more processing, which is one reason offline converters can outperform real-time ones.

Synchronous vs asynchronous SRC

Synchronous SRC works with a fixed, known ratio: files in a DAW, or two digital devices locked to the same word clock. Asynchronous SRC (ASRC) is used when two devices run on independent clocks, such as a digital input from a CD player or broadcast feed into a console or interface running on its own clock. An ASRC continuously measures the actual ratio between the incoming and outgoing rates and adjusts its interpolation on the fly. Because the output follows the local clock, ASRC chips also reject much of the jitter of the incoming signal, which is why they appear on the digital inputs of many interfaces, consoles and DACs.

Sample rate conversion in practice

Avoid unnecessary conversions

The easiest SRC is the one you don’t do. Choose the session rate for the main destination: 48 kHz for video, broadcast and most podcast or game work, 44.1 or 48 kHz for music, and 88.2 or 96 kHz only when there’s a reason (some engineers prefer higher rates for plugins that don’t oversample, or the client requests it). Keep everything at that rate until the final deliverables.

Importing files at the wrong rate

When you import a file whose rate doesn’t match the session, most DAWs convert it automatically or offer to. If a file has been imported without conversion, or its header has been changed, it plays at the wrong speed and pitch: a 44.1 kHz loop in a 48 kHz session plays about 1.5 semitones sharp. Check the import preferences of your DAW, and watch for a converted copy being written to the project folder.

Delivering at more than one rate

If a music mix must go to both CD (44.1 kHz) and video (48 kHz), mix at one rate and convert the final master to the other with a high-quality converter, rather than re-rendering through a different chain. Mastering engineers often receive mixes at the mix’s native rate and handle conversion themselves as part of mastering.

Order of operations

  1. Finish processing (EQ, compression, limiting) at the session rate, in floating point.
  2. Convert the sample rate, in floating point.
  3. Reduce the bit depth with dither as the very last step.

SRC recalculates every sample. Doing it after dither destroys the dither and requantizes the signal without it. If a limiter set a precise peak ceiling, also check peaks after conversion: SRC can change sample peaks slightly, so many engineers leave a little extra margin or use true-peak limiting.

Real-time vs offline

Real-time conversion, in DAW playback engines or an operating system’s audio mixer, has to be cheap, so it may use shorter filters. Offline rendering can afford long, steep filters. For final deliverables, use the DAW’s best offline quality setting or a dedicated tool.

SRC tools

  • iZotope RX: includes the Resample module, with adjustable filter steepness, cutoff and pre-ringing, and batch processing.
  • Weiss Saracon: a dedicated offline converter for PCM and DSD, widely used in mastering and archiving.
  • Voxengo r8brain PRO and the free r8brain library: high-quality offline converters; Reaper offers r8brain among its resampling modes.
  • SoX: an open-source command-line audio tool with a high-quality resampler.

Most DAWs also have a high-quality offline setting in their export or bounce options. The Infinite Wave site is a good place to compare how a particular DAW or version performs.

Common mistakes and myths

“Integer ratios sound better”

It’s tempting to think 88.2 to 44.1 kHz must be cleaner than 96 to 44.1 kHz, because one is a simple 2:1 ratio. Any proper converter filters in both cases, and a good converter handles 147/320 just as cleanly as 1/2. The quality of the converter matters far more than the ratio.

“Upsampling adds detail”

Converting 44.1 kHz to 96 kHz doesn’t recover anything above 22.05 kHz. The file gets bigger; the audio stays the same.

“SRC adds warmth”

A transparent converter changes nothing audible. If a conversion sounds warmer or darker, the filter is cutting the top end, or the converter is poor.

Converting after dithering

Always convert first and dither last.

Converting back and forth

Every conversion applies a filter. One good conversion is inaudible; repeated conversions through mediocre converters add up. Plan the chain so each file is converted as few times as possible.

Changing a file’s header instead of converting

Some tools let you “set” a file’s rate without resampling. That changes the speed and pitch, which is sometimes useful (for pull-up and pull-down in film work, for example) but isn’t conversion.

ProcessWhat changesPitchDurationTypical use
Synchronous SRCSample rate, fixed ratioUnchangedUnchangedFile conversion, locked digital systems
Asynchronous SRCSample rate, continuously tracked ratioUnchangedUnchangedDigital inputs from devices with their own clocks
Varispeed / resample to new speedPlayback rateChangesChangesTape-style speed effects, film pull-up and pull-down
Time-stretchingDurationUnchangedChangesMatching loops to tempo
Pitch shiftingPitchChangesUnchangedTuning, harmonies, effects

Standards and references

  • AES5: the AES recommended practice for preferred sampling frequencies (48 kHz for professional use, with 44.1 kHz and the multiples of both).
  • AES11: synchronization of digital audio equipment, the reason synchronous systems need no ASRC.
  • AES17: measurement of digital audio equipment, including converters.
  • Crochiere and Rabiner, Multirate Digital Signal Processing (1983): the classic textbook on decimation, interpolation and polyphase filters.

On whether conversion to CD quality is audible, a 2007 paper in the Journal of the AES by E. Brad Meyer and David Moran reported that listeners could not reliably tell when a 16-bit, 44.1 kHz bottleneck was inserted into high-resolution playback.

FAQ

What is sample rate conversion?

Changing the sample rate of digital audio, such as 48 kHz to 44.1 kHz, without changing its pitch or duration.

Does sample rate conversion reduce quality?

With a good modern converter, not audibly. Poor converters can dull the top end or add aliasing.

Is it better to convert 88.2 kHz or 96 kHz to 44.1 kHz?

With a good converter it makes no practical difference. The converter’s quality matters more than the ratio.

Should I convert sample rate before or after dither?

Before. Dither must be the last step.

Why does my audio sound higher and faster in my DAW?

The file is playing at a higher rate than it was recorded at without being converted. A 44.1 kHz file played at 48 kHz is about 1.5 semitones sharp.

What is asynchronous sample rate conversion?

Real-time conversion between devices running on independent clocks, with the ratio measured continuously. It also rejects incoming jitter.

Does upsampling improve audio quality?

No. It can’t recreate content that wasn’t recorded, though plugins sometimes upsample internally to reduce aliasing in their own processing.

What sample rate should I record at to avoid conversion?

The rate of your main delivery: usually 48 kHz for video and 44.1 or 48 kHz for music.

What is the best sample rate converter?

Several are excellent, including iZotope RX, Weiss Saracon, r8brain and SoX. The Infinite Wave comparisons show measured results for many tools.

Can sample rate conversion cause clipping?

It can change sample peaks slightly. Leave a little margin or check peaks after converting.