Why Do This in Your Browser?
Audio trimming is the most common audio task and the one cloud sites monetize most aggressively. The mp3 cutter category alone has dozens of sites with the same UI: upload, set in/out, download. Every single one runs the trim server-side and bills the bandwidth back to you in ads or upgrade nags.
FFmpeg.wasm trims with the `-ss` and `-to` flags, just like desktop FFmpeg. When the cut points land near keyframes, the trim is a stream-copy (instant, bit-exact). When precision matters more than speed, the tool transcodes the cut frame-accurately. Either way, the source never leaves your device.
How It Works
Drop an audio file. The tool decodes the waveform via Web Audio API and renders an interactive waveform display. Type the in and out points in seconds, or play the file (space bar or Play) and press I and O at the moments you want: each sets the point from the current playback position. The waveform is for reference; it has no drag handles.
Export modes: 'Fast trim (stream-copy)' uses FFmpeg's `-c copy` for instant bit-exact cuts, with cut points snapping to the nearest keyframe — typically within ±100ms of the chosen point. 'Precise trim' transcodes to give you exact cuts at the millisecond level, slower but frame-accurate. Default is precise.
Tip: For format conversion alongside trimming, the Audio Converter tool handles container/codec changes. To compress the trimmed output, the Audio Compressor tool exposes bitrate controls. For auto-detecting silence rather than manually setting in/out points, the Audio Silence Remover trims leading/trailing dead air and can compress mid-clip gaps. To slow a long interview for transcription before trimming, the Audio Tempo Changer drops speed without affecting pitch. Once you have trimmed the 30-to-60-second highlight, the Audiogram Generator turns that clip into an animated waveform video for social.
Common Use Cases
Worked example: Fast vs Precise on four formats
On October 12, 2026 we ran the tool's exact FFmpeg commands on desktop FFmpeg 6.1, trimming 2.5 to 5.0 seconds out of the same 10-second test sweep saved as MP3 (320 kbps), M4A (AAC 256 kbps), WAV and FLAC. Lengths are what the file actually plays.
| Source | Fast (stream copy) | Precise (re-encode) |
|---|---|---|
| MP3 320 kbps | 2.52 s, still 320 kbps | 2.53 s, 320 kbps (128 kbps before Oct 12, 2026) |
| M4A 256 kbps | 2.52 s, still 256 kbps | 2.50 s, about 222 kbps, the source’s rate (about 133 kbps before) |
| WAV | 2.51 s, PCM | 2.50 s, PCM |
| FLAC | 2.50 s, lossless: FLAC is now re-encoded in Fast mode too (before: 2.61 s of audio in a file that reported 10.0 s) | 2.50 s, lossless |
- Precise keeps your bitrate. The tool now reads the source’s codec and bitrate from FFmpeg before cutting and re-encodes at that rate (MP3 up to 320 kbps), and WAV keeps its sample format, so a 24-bit WAV stays 24-bit (it came out 16-bit before October 12, 2026). Re-encoding a lossy file is still a second generation of compression, so for MP3 and M4A use Fast when frame accuracy is enough.
- Fast is lossless but lands near your points, not on them. It cuts at whole frames (about 26 ms for MP3, 23 ms for AAC, around 90 ms for FLAC blocks), so it may include a few extra milliseconds. Leave a little silence around the part you want if that matters.
- FLAC is always re-encoded, losslessly. A stream copy keeps the original’s total-sample count in the FLAC STREAMINFO header (RFC 9639), so the old Fast mode produced a 2.6 s file that reported 10 s. FLAC compression is lossless, so the tool now re-encodes FLAC in both modes: exact length, identical audio.
- WAV is the easy case: both modes are exact to within a few milliseconds and lossless.
Sources
Checked on .
See also: The Audio Waveform Generator renders a static SVG/PNG waveform image from any audio file — useful as a podcast cover or thumbnail.