Audio Clipper: Trim MP3, WAV, OGG, M4A, and FLAC in Your Browser

Trim audio files visually in the browser. Drag a region on the waveform and export the slice as WAV.

Pick an audio file to render the waveform and drag the selection handles.

About Audio Clipper

Load an MP3, WAV, OGG, M4A, or FLAC file and see its waveform rendered with wavesurfer.js. Drag the highlighted region to set start and end points, or type exact times into the numeric inputs. Preview the selection with playback, then export the slice as a 16-bit WAV file written from the decoded AudioBuffer. Everything happens locally with the Web Audio API.

Audio Clipper turns waveform editing into a one-page workflow. After picking a file, wavesurfer.js draws the full waveform and overlays a draggable region. Both edges resize, and a separate pair of numeric inputs stays synchronized with the region so you can dial in subsecond precision. The Play region button uses wavesurfer's internal player to loop only the highlighted slice, which is the fastest way to confirm a cut before exporting.

The export path bypasses re-encoding. The original file is decoded once with AudioContext.decodeAudioData, then copyToChannel copies the sample range between start*sampleRate and end*sampleRate into a fresh AudioBuffer. A small inline WAV encoder writes a standard 16-bit PCM RIFF header followed by interleaved samples. The result downloads as a .wav file with the original sample rate and channel count preserved.

Because the tool reads the file with the browser's audio decoder, format support matches whatever your browser can decode natively. Most desktops handle MP3, WAV, OGG, M4A, and FLAC. The output is always WAV to keep the encoder small and lossless.

How to use the Audio Clipper
  1. 1

    Load an audio file

    Pick an MP3, WAV, OGG, M4A, or FLAC file. The waveform renders directly from the decoded samples.

  2. 2

    Set the region

    Drag the highlighted area or edit the start and end numeric fields. The region and inputs stay in sync.

  3. 3

    Preview and export

    Click Play region to hear the slice, then Export trimmed audio to download a 16-bit WAV of the selection.

Common use cases

Cut a ringtone

Pull a 20-second hook out of a song without installing Audacity or signing up for an online editor.

Clip a podcast quote

Isolate a single answer from a long interview file before sending it to a transcription tool.

Prepare voiceover takes

Trim dead air off the front and back of a voice memo before importing into a video editor.

Extract a sample for music production

Grab a few bars from a rehearsal recording and save them as a clean WAV for your sampler.

Frequently asked questions
Does my audio leave the browser?

No. The file is decoded locally with AudioContext.decodeAudioData, sliced as an AudioBuffer, and written to WAV in memory. Nothing is uploaded.

Why is the output always WAV?

WAV needs only a tiny header writer in the browser, while MP3 or AAC encoding would require shipping a much larger codec. WAV is also lossless, so the export preserves the original sample data.

What file types can I open?

Anything the browser's audio decoder accepts: MP3, WAV, OGG, M4A, and FLAC work in current Chrome, Edge, Safari, and Firefox. If a file fails to decode the tool will show an error.

Can I make multiple cuts from one file?

Yes. After exporting one clip, drag the region to a new position or type new values into the start and end fields, then export again. The source file stays loaded.

Is there a length limit?

Practical limits depend on your device's memory. Multi-hour files work but use more RAM during decoding. For very long files, consider trimming the source first or splitting into segments.

converterweb