Trim audio on a waveform
Cut an audio file to an exact range with a waveform view, then download MP3, M4A, WAV, FLAC, OGG, Opus, or AAC. The Worker copies packets when the cut lands cleanly and re-encodes when a copy would drift, so the result always has a sane timeline.
Add audio or video files
Drop files here, or browse. Audio is never uploaded.
Drag the handles or type exact times. The selection must be at least 0.1 seconds.
Why local
The Worker decodes only peak bins for the waveform and uses the copy-first conversion engine for the cut. The file never leaves your device.
How it works
- Add an audio file or a video with an audio track.
- Drag the waveform handles or type start and end times. Check the selection with the local audio player.
- Choose an output format and quality, trim, then download the result.
Capabilities
- Waveform
- A 160-bin peak waveform is built in the Worker from the decoded primary audio track. The header shows the sample peak in dBFS so quiet files are obvious.
- Range
- Drag both handles or type exact seconds. The selection must be at least 0.1 seconds and is clamped to the file duration.
- Copy path
- A matching target codec is tried as a stream copy first: AAC to M4A or AAC, Opus to OGG or Opus, Vorbis to OGG, FLAC to FLAC, PCM-S16 to WAV, and MP3 to MP3. A clean cut depends on packet boundaries and timestamps; when a copy would drift or cannot represent the start, the file is re-encoded and the result says so.
- Output formats
- MP3, M4A, WAV, FLAC, OGG (Opus), Opus (.opus), and ADTS AAC. The result reports copy or re-encode, actual codec, duration, channels, sample rate, and size.
- Preview
- Play the source locally and scrub with the handles. There is no upload and no server-side preview render.
- No video
- Only the primary audio track is kept. Video pictures are discarded.
Limits
- One file per job, up to 2 GiB. There is no batch or ZIP.
- The input needs a decodable audio track. Extra audio, subtitle, and video tracks are dropped.
- Copy trims cut at encoded packet boundaries, so the actual duration can differ from the requested range by a few milliseconds.
- The waveform decodes the whole track, which can take time on long files. You can cancel while the job runs.
- This is a trimmer, not an editor: there are no fades, gain changes, EQ, or multi-clip timelines.
- Lossy outputs add another encoding generation. Choose a lossless target such as WAV or FLAC for further editing.
- Browser codec support varies; unsupported sources or encoders fail with a message.
- The file is never uploaded, so very long files are limited by available memory and CPU.
FAQ
Can I cut MP3 without re-encoding?
MP3 output currently re-encodes because MP3 encoder-delay timestamps cannot be muxed as a clean packet copy. For other formats, the tool tries a stream copy first and falls back to re-encoding when packet boundaries or timestamps would make the cut drift. The result card always reports which path ran.
Why is the cut a few milliseconds off?
Compressed audio is stored in short packets. A stream copy begins on a packet boundary, which is usually within about 20–26 ms for MP3. Re-encoding can trim closer but still includes encoder delay.
Can I make a ringtone?
You can trim any section, but this tool does not create iPhone M4R ringtones or add fade loops. Export M4A or MP3 and use your phone's ringtone workflow.
Can I trim audio from a video?
Yes. Add the video and only its primary audio track is used. The output is an audio file and the pictures are discarded.
Why is there no waveform?
The browser may not decode the codec, or the file is unreadable. You can still type start and end times and try the trim.
Is my file uploaded?
No. Waveform analysis, trimming, and encoding all run in the browser Worker.