How to Trim Audio in Your Browser
Load your audio file
Drop an MP3, WAV, OGG, FLAC, AAC, or M4A file onto the upload area, or click to browse. The file is decoded locally with the Web Audio API and stays on your device, then drawn as a waveform so you can see where sounds start and stop.
Set the start and end points
Drag the start handle and the end handle along the waveform to frame the section you want to keep. The dimmed areas show what gets removed, and the live duration readout updates as you move each handle. Click anywhere on the timeline to move the playhead and check a position.
Preview, then trim and download
Press Play to hear only the selected region, and enable Loop to repeat it while you fine-tune the handles. When the clip sounds right, choose WAV or WebM as the output format, click Trim Audio, and download the result. The cut is computed in your browser from the decoded samples.
WAV vs WebM Output
This clipper can export your trimmed selection in two formats. WAV is produced by a built-in 16-bit PCM encoder and works everywhere, while WebM is recorded through the browser MediaRecorder API and is more compact. Use this table to pick the right one for your clip.
| Aspect | WAV | WebM |
|---|---|---|
| Compression | Uncompressed PCM (lossless) | Compressed audio |
| File size | Larger | Smaller |
| Quality | Matches the decoded source samples | Good quality at a smaller size |
| How it is made | Pure JavaScript encoder in your browser | MediaRecorder API in your browser |
| Browser support | Works in all modern browsers | Needs MediaRecorder (limited in older Safari) |
| Best for | Editing, archiving, importing into audio software | Sharing and web playback where size matters |
Which Output Should You Choose?
Editing a clip further
Pick WAV. The lossless PCM output imports cleanly into editors and other converters without stacking extra compression on top of your source audio.
Sharing or attaching
Pick WebM when a smaller file matters, such as sending a clip in chat or embedding it on a page that plays back in the browser.
Maximum compatibility
Choose WAV if you are unsure where the file will be opened. It plays in virtually every audio app and does not depend on MediaRecorder being available.
Older Safari or no MediaRecorder
Use WAV. If your browser cannot record WebM, the tool will report that WebM is unsupported, so WAV is the reliable fallback.
Common Problems and Fixes
The file will not load or decode
Confirm the file is one of the supported types: MP3, WAV, OGG, FLAC, AAC, or M4A. If decoding fails, the audio may be corrupt or use a codec your browser cannot decode. Try re-exporting the source or converting it to WAV first.
WebM output fails
WebM is created with the browser MediaRecorder API, which is missing in some older browsers such as older Safari. If you see a WebM not supported message, switch the output format to WAV and trim again.
Trim button reports an error
The end point must come after the start point. If you see a message about the end time, drag the handles so the selected region has length, then press Trim Audio again.
Long files feel slow or run out of memory
The whole file is decoded into memory in your browser, so very long recordings use more RAM and take longer. Close other heavy tabs, or split the work by trimming a large file into smaller sections one at a time.