MP3 Looper
Loop any region of an audio file in the tab, with sample-accurate loop points, and download that one region as a WAV. No upload and no crossfade.
What this page makes
Decodes a file, loops the start and end you set with the source's own loop points, and writes that one region to WAV.
How to use it
Choose a file. The end point starts at the shorter of 4 seconds and the whole file. Set the start and end in seconds and press Play loop; Stop ends it. Download region WAV writes one pass of that region.
Worked example: 8.000 s to 12.000 s of a 30.000 s file at 44.1 kHz becomes a 4.000 s loop of 176400 frames, played from the decoded buffer.
Method
The decoded AudioBuffer is played by an AudioBufferSourceNode with loop = true and loopStart and loopEnd set from your seconds. The join is sample-accurate and is not crossfaded. Download slices the same region and encodes it as 16-bit PCM WAV.
What it refuses
An end at or before the start, a region shorter than 50 ms, or a region beyond the file's duration is refused with the value named; the page does not silently move the loop points.
Where it runs
The file is decoded and looped in this tab: nothing is uploaded and no loop is stored. The browser requirement is stated on the page: Decoding needs decodeAudioData and looping needs AudioBufferSourceNode.loopStart and loopEnd from the Web Audio API.
The rest of the family
The other audio and recurrence pages are listed under Calculators: tone and binaural generation, the virtual piano, pitch shifting, looping and reversal, the stated noise filter chain, mid/side cancellation, microphone recording and the closed-form recurrence solver.
Decodes a file, loops the start and end you set with the source's own loop points, and writes that one region to WAV.
The decoded AudioBuffer is played by an AudioBufferSourceNode with loop = true and loopStart and loopEnd set from your seconds. The join is sample-accurate and is not crossfaded. Download slices the same region and encodes it as 16-bit PCM WAV. The file is decoded and looped in this tab: nothing is uploaded and no loop is stored.
Worked example: 8.000 s to 12.000 s of a 30.000 s file at 44.1 kHz becomes a 4.000 s loop of 176400 frames, played from the decoded buffer.
The readout prints the region's frame count at the file's own sample rate before anything is played.
How to use the mp3 looper
Choose a file. The end point starts at the shorter of 4 seconds and the whole file. Set the start and end in seconds and press Play loop; Stop ends it. Download region WAV writes one pass of that region.
The file is decoded and looped in this tab: nothing is uploaded and no loop is stored.
- Domain: One decodable audio file, one region of at least 50 ms, WAV output.
What the page proves
Decodes a file, loops the start and end you set with the source's own loop points, and writes that one region to WAV.
The decoded AudioBuffer is played by an AudioBufferSourceNode with loop = true and loopStart and loopEnd set from your seconds. The join is sample-accurate and is not crossfaded. Download slices the same region and encodes it as 16-bit PCM WAV.
- Browser requirement: Decoding needs decodeAudioData and looping needs AudioBufferSourceNode.loopStart and loopEnd from the Web Audio API.
- The page states its domain: One decodable audio file, one region of at least 50 ms, WAV output.
What it refuses, and what it leaves out
An end at or before the start, a region shorter than 50 ms, or a region beyond the file's duration is refused with the value named; the page does not silently move the loop points.
- Not the right page for: a gapless DJ-style loop, which needs matched ends or a crossfade
- Not the right page for: tempo-matched looping, which this page does not do
- Not the right page for: MP3 output
- Reported as a named state: a region shorter than 50 ms is refused
- Reported as a named state: an end before the start is refused
- Reported as a named state: a loop may click if the waveform does not match at the join
What to Expect
Best for
- practising over a four-bar phrase
- checking a drum break's loop point
- cutting one region out of a longer file
Not ideal for
- a gapless DJ-style loop, which needs matched ends or a crossfade
- tempo-matched looping, which this page does not do
- MP3 output
What this tool keeps
- the exact start and end you typed, and every decoded sample
What may need cleanup
- nothing: Stop ends playback and the region is recomputed on the next press
Common errors
- a region shorter than 50 ms is refused
- an end before the start is refused
- a loop may click if the waveform does not match at the join
Example use cases
- loop a four-bar guitar phrase
- find a break's downbeat by moving the start
- export one region as WAV
Sample input
8.000 s to 12.000 s of a 30.000 s file at 44.1 kHz
Sample output
a 4.000 s loop of 176400 frames, played from the decoded buffer
Who this is for
- musicians practising over a phrase
- anyone cutting one region out of a file
Frequently asked questions
Is my data sent anywhere?
The file is decoded and looped in this tab: nothing is uploaded and no loop is stored.
Which browser API does this page need?
Decoding needs decodeAudioData and looping needs AudioBufferSourceNode.loopStart and loopEnd from the Web Audio API.
What can I download?
Download region WAV writes one pass of the loop region as 16-bit PCM.
Is the loop gapless?
The loop points are sample-accurate and the browser restarts at the same frame, but there is no crossfade. If the waveform does not match at the join, you hear a click, and the page says so instead of hiding it.
Does it upload my file?
No. decodeAudioData reads it in the tab and the buffer stays in memory. There is no request and no storage.
Can I export the loop as MP3?
No. The download is WAV because browsers expose no MP3 encoder. One pass of the region is written, not a repeated render.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.