Audio Cutter & Trimmer

Cut and trim audio files with precision. Upload MP3, WAV, M4A, FLAC, OGG — select start and end points — download the trimmed audio. No upload to servers, 100% private.

:music:
Click to upload or drag & drop MP3, WAV, M4A, FLAC, OGG, AAC
File:-
Size:-
Duration:-
Selected Duration:0.0s
Original Size:-
Estimated Output:-
Processing...

Trim complete!

How to Cut Audio Online

  1. Upload your audio file by clicking or dragging it into the dropzone
  2. Set trim points by adjusting start and end times, or click on the waveform
  3. Preview the selected portion to make sure it is right
  4. Click "Cut" to process and download your trimmed audio

Features

Waveform Visualization

See your audio as a visual waveform. Click to set precise start and end points.

Real-time Preview

Preview the trimmed section before processing. Make sure it is exactly what you want.

100% Private

All processing happens in your browser. Your audio files never leave your device.

Multiple Formats

Support for MP3, WAV, M4A, FLAC, OGG, AAC and more. Export to your preferred format.

How Audio Cutting Works

This tool cuts audio files directly in your browser using the Web Audio API for decoding and playback, and the MediaRecorder API for re-encoding the selected region. When you load an audio file, it is decoded into an AudioBuffer (a raw PCM sample array), and the script generates a waveform by computing peak amplitudes across roughly 2,000 horizontal bins. You then drag two handles to mark the in-point and out-point of the region you want to keep; the script converts those visual positions back into exact sample offsets and runs a loop that copies only those samples into a fresh AudioBuffer.

The re-encoded result is produced by routing the trimmed AudioBuffer through an OfflineAudioContext (which renders faster than realtime), capturing the output through a MediaStreamDestination, and recording it with MediaRecorder using the user-selected MIME type (audio/webm with the Opus codec by default, or audio/mp4 / audio/wav on browsers that support those encoders). No audio data is sent to any server. The download link uses a Blob URL and your file never touches our infrastructure.

Frequently Asked Questions

Will the cut be sample-accurate?

Yes. Cuts are made at the AudioBuffer sample level, so the in-point and out-point are precise to within one PCM sample (typically 1/44100 of a second for CD-quality audio). The visual handles in the waveform may snap to the nearest pixel for ease of use, but the underlying sample offsets are exact.

Why are MP3 exports larger than my original MP3?

Browsers cannot encode MP3 directly because the format requires licensed codecs. We re-encode via Opus (in WebM) or WAV (uncompressed PCM). Opus at 128 kbps typically matches MP3 at 192 kbps in perceptual quality, and the file is roughly the same size. If you need a true MP3, export as WAV and run it through a desktop encoder like LAME or FFmpeg.

What is the maximum audio length I can edit?

The Web Audio API can decode files up to the browser's memory limit, which on a typical desktop is enough for tracks several hours long. For very large files (over 200 MB), decoding may take a few seconds and the waveform will only render the first portion; trimming still works on the full file but you will need to scrub to find your region.

Can I fade in or fade out at the cut points?

Not directly in this tool. The cut is a hard splice at the exact sample you choose. If you need a fade, export the trimmed clip and apply a fade-in / fade-out in a desktop audio editor such as Audacity, which is also free.

Are my audio files uploaded anywhere?

No. All decoding, trimming, and re-encoding happens locally in your browser using the Web Audio and MediaRecorder APIs. You can verify this by opening your browser DevTools Network tab and watching zero network requests fire during the cut operation.

Why is the waveform sometimes different colors?

The waveform uses color to indicate the selected region (between the two handles) versus the unselected regions. Selected samples appear in the accent color and unselected samples in a muted tone so you can clearly see what will be exported.

References and Authority Sources

Comments & Ratings

Be the first to comment.