Browser-based audio tool · tempo 0.5× to 2× · pitch ±12 semitones · WAV or MP3

Change Audio Speed and Pitch

Change how fast a recording plays without changing its pitch, change the pitch without changing the speed, or both. Tempo uses waveform-similarity time stretching and pitch adds band-limited resampling, all computed in this tab.

Audio file

Up to 1 GB, and at most 60 minutes of 48 kHz stereo once decoded.

Drop an audio file here or click to choose

.mp3, .wav, .m4a, .aac, .flac, .ogg, .opus

Tempo, pitch and export

File type

16-bit PCM at the working sample rate.

Change Audio Speed and Pitch

Operator: Abdulla Al Fahad. How tools are built and checked

Speed and pitch are tied together in the simplest way of changing either: play a recording faster and it rises in pitch. Separating them takes real signal processing. This tool does that in two stages, a time stretch that changes the tempo without moving the pitch, and a resample that changes the pitch, and it combines them so you can ask for any tempo from 0.5x to 2x together with any pitch change up to 12 semitones and 50 cents.

It works on audio files rather than on video. For the sound of a video you slow down, the Video Speed Changer has a pitch switch, and the BPM and Key Detector measures tempo and key but does not change them; this tool is the one that actually moves them.

Key features

  • Tempo from 0.5x to 2x without changing pitch
  • Pitch of plus or minus 12 semitones with a 50 cent fine tune, without changing the tempo
  • Both together, in one pass over the audio
  • A 15 second preview from any point, with a play original button for comparison
  • The resulting length and frequency factor shown as you move the controls
  • WAV or MP3 export with progress and cancel

WSOLA time stretching, resampling for pitch and where each breaks down

Input is any audio the browser can decode, up to 1 GB, and at most 60 minutes of 48 kHz stereo once decoded. The file is decoded at its own sample rate when MP3 supports it, so nothing is resampled until the pitch stage. Output is a 16-bit WAV, or an MP3 from the LAME encoder at 64 to 320 kbps.

Tempo is a factor from 0.5 to 2 in steps of 0.01, with presets at 0.5, 0.75, 0.9, 1, 1.1, 1.25, 1.5 and 2. The result's length is the original divided by the tempo: a 3 minute track at 1.25x lasts 144 seconds. Pitch is whole semitones from -12 to +12 plus a fine adjustment from -50 to +50 cents, and each frequency is multiplied by 2 to the power of (semitones + cents/100) over 12.

Stereo is kept: both channels are stretched with the same offsets, found on the mono mix, so the stereo image does not wander. The preview takes 15 seconds from a point you choose with a slider, processes only that slice and plays it, with a button for the original of the same 15 seconds.

How it works

The tempo stage is waveform-similarity overlap-add. The audio is cut into frames of 30 milliseconds (1324 samples at 44.1 kHz), each shaped by a Hann window and overlapped by half in the output. Where a frame is taken from follows the speed, but within a window of a quarter frame either side the position is chosen where the audio best continues the waveform of the previous frame, measured by a normalised cross-correlation. This keeps the periodic waves lined up, which is why the result sounds clean where simple overlap-and-add would give a phasing effect. The search first looks at every third offset and then refines around the best one.

The pitch stage is a resample. To raise pitch by a ratio r, the audio is first stretched by r to make it r times longer, then read r times faster, which restores the length and multiplies every frequency by r. The reading uses a windowed-sinc interpolator with 12 lobes each side, and when r is above 1 the filter is widened to cut off at the new Nyquist frequency so high frequencies cannot fold back as aliasing.

The two stages are combined by multiplying: the stretch speed is the tempo divided by r and the resample ratio is r, so a tempo of 1.25 with +7 semitones (r = 1.4983) stretches by 0.8342 and then resamples by 1.4983, giving a length of the original over 1.25.

Common use cases

  • Slowing a fast guitar or piano passage to 0.7x to learn it, at the pitch it was recorded in
  • Raising a backing track by 2 semitones to suit a singer's range without changing the tempo
  • Speeding a spoken lecture to 1.5x for review while keeping the voice natural
  • Nudging a track by 20 cents to match another that was recorded slightly sharp

How to use this tool

  1. Drop in an audio file and wait for it to decode.
  2. Move the tempo slider or click a preset, and set the pitch in semitones and cents.
  3. Choose where the preview starts and click Preview 15 s with changes.
  4. Press Play original to compare the same stretch unprocessed.
  5. Choose WAV or MP3 and click Process and export; watch the progress bar.
  6. Play the result and download it.

Example

A 6 second 440 Hz tone, tempo 1.25x and +7 semitones

Tempo      1.25
Pitch      +7 semitones (ratio 2^(7/12) = 1.4983)
Source     6.0 s, 440 Hz

What comes out

Stretch speed       1.25 / 1.4983 = 0.834
Resample ratio      1.4983
Length              6.0 / 1.25 = 4.8 s
Frequency           440 x 1.4983 = 659.3 Hz (measured about 659.5 Hz)

Tips for best results

  • For speech, stay between 0.75x and 1.5x. Beyond that, consonants begin to smear and sustained vowels flutter.
  • Percussive music, with sharp hits, handles slowing better than speeding up. When you speed it up beyond 1.5x, hits can be dropped or doubled, so check the preview on a bar with drums.
  • To tune a recording to another by ear, use cents. A shift of 50 cents is a quarter tone, and 10 cents is about a 0.6 percent change in frequency, which is about what a mistuned instrument is out by.
  • Preview from a busy section, not the intro. A thin intro hides the artefacts that dense mixes show.

Common pitfalls

A large combined change makes the internal stretch very large. For example +12 semitones with 0.5x tempo means stretching by 0.25, and the page warns that it will sound watery. Process in two steps if you need such a change.

The tempo change is one constant factor for the whole file. It does not fix a recording whose tempo drifts, and it does not line up beats with another track.

Formants are not preserved. A voice raised by 6 semitones sounds like a smaller, higher voice, not the same person singing higher.

Processing happens on the main thread in chunks. A very long file, such as an hour of audio, takes a while and the tab stays usable but slower.

Common errors and how to fix them

This browser could not decode the file.
Convert it to MP3, WAV, M4A or FLAC first. The message names the codec it found.
This combination stretches the audio by a large factor internally.
Reduce the tempo change or the pitch change.
MP3 cannot hold that sample rate.
Choose WAV, or use a source at one of the rates MP3 supports.

Why 30 milliseconds

A frame needs to be long enough to contain at least a couple of periods of the lowest note you care about, or the correlation search has nothing to lock onto, and short enough that a change of note or a drum hit is not smeared across it. 30 milliseconds holds two periods of a 70 Hz note, which covers low male speech and bass guitar; shorter frames follow fast changes better but start to fail on bass.

The search runs a quarter frame, about 7.5 milliseconds, either side of the ideal position, a 15 millisecond span that contains a full period of any note above about 67 Hz, which is enough for the alignment to find a matching point in most material.

Frequently asked questions

Is pitch changed by speed alone?

Only if you use the pitch control. Changing tempo alone leaves every frequency where it was.

Can I match the tempo of two tracks?

You can by calculating the ratio of their BPM and typing it as the tempo, within 0.5x to 2x. The BPM and Key Detector on this site will give you the two figures.