Trim Audio
Cut a track down to the part you need — or take a stretch out of the middle — without the file leaving this tab.
What this tool does
Trim Audio decodes your file into raw samples — WAV through a pure-JavaScript RIFF reader, everything else through the browser's own audio decoder — and then copies out the range you named. Each cut lands on the sample nearest your timecode, so at 44.1 kHz the placement is accurate to about two hundredths of a millisecond. Keep the selection and Remove the selection are the same operation run in opposite directions: one copies the middle out, the other copies the head and the tail and joins them.
What you get back is a new file rather than a slice of the old one, and that distinction costs something. Trimming an MP3 means decoding it and encoding it again with the LAME encoder loaded by this page, which is a second lossy pass — inaudible at 256 or 320 kbps, but it accumulates if you keep re-cutting the same file. The cut also ignores MPEG frame boundaries, so this is not the frame-exact stream copy a command-line tool performs. Choosing WAV output skips the second encode entirely, at the price of a much larger file.
The output is WAV or MP3 and nothing else, because no browser exposes an AAC, FLAC or OGG encoder to a web page. Match the input where possible keeps an MP3 as an MP3 and writes everything else as WAV, so a FLAC or an M4A comes back bigger than it went in, at 16-bit unless you raise the bit depth. Reading is the wider half: anything your browser can play decodes here, including formats it has no way to write back.
Two practical limits are worth knowing first. There is no waveform to scrub — the start and end are typed as timecodes, so finding the right moment usually means playing the file elsewhere and noting the times. And the whole file sits in memory as 32-bit floats while it is edited, roughly 20 MB for every minute of 44.1 kHz stereo, which is nothing for a song and heavy for a two-hour recording, where the tab can run out of room before it reaches the encoder.
How to use it
- Choose the audio file. MP3, WAV, M4A, AAC, FLAC, OGG and Opus are accepted, decoded by whatever your browser supports. Add several and the same start and end are applied to each one in turn.
- Type the start and the end. Bare seconds such as 12.5, mm:ss such as 1:23, or hh:mm:ss such as 0:01:23.5. Leave End at blank to run to the end of the file; an end beyond the real length is pulled back to it.
- Decide what to keep. Keep the selection returns everything between the two points. Remove the selection deletes that stretch and joins what remains, and is refused when the range covers the whole file.
- Pick the output and run it. Match the input where possible, or force WAV or MP3, with a bitrate for MP3 and a bit depth for WAV. Soften the cut edges stays on by default and applies a 5 ms ramp so the join does not click.
Processing & privacy
Runs on your device. Your file is processed directly in this browser.
Common use cases
Making a ringtone
Take the thirty seconds of the chorus, keep the selection, and write it as MP3 at 192 kbps or higher so the second encode stays out of earshot.
Cutting the dead air off a recording
Voice notes and interviews open with fumbling and close with someone reaching for stop. Set an end and leave the start at 0, or the other way round.
Lifting an advert out of a downloaded show
Remove the selection deletes the stretch you name and joins the two halves, with the ramp hiding the seam where they meet.
Fitting a clip inside an upload cap
A minute of audio is a small fraction of an hour, so cutting to the part that matters is often enough on its own, before any thought of compression.
Questions
Is my audio uploaded?
Does trimming an MP3 lose quality?
Why did my FLAC come back as a WAV?
Can I cut a piece out of the middle?
What time formats are accepted?
Why was my range rejected?
What happens if I put the end before the start?
Can I trim several files at once?
How long a file will it handle?
Related tools
- Video to MP3 — Extract the audio track from a video.
- Convert Audio — Convert between MP3, WAV, AAC, FLAC and OGG.
- Compress Audio — Reduce audio file size by choosing a bitrate.
- Merge Audio — Join several audio files into one.
- Normalize Audio — Even out loudness across a file.
- Change Volume — Raise or lower the gain of a track.