Audio Cutter
Published Updated
Set a start and end time against a waveform, to a tenth of a second, and save that stretch of an MP3, WAV, M4A, OGG or FLAC file as an MP3 at 128 kbps (64 kbps when the file's 8, 11.025 or 12 kHz rate is kept).
How exact the cut is
The selection is copied sample by sample: the start time is rounded down to the nearest sample and the end time rounded up. Precision is therefore set by the controls. The sliders step in 0.01 seconds, the number boxes in 0.1, and no clip may be shorter than 0.1 seconds.
What changes the length slightly is the MP3 format. A 10.000-second test cut, encoded with the tool's own lamejs encoder at 44.1 and 48 kHz, decoded to 10.031 and 10.032 seconds with Apple's afconvert. The sound began 12 to 13 milliseconds after the start of the file.
Limits and what happens at each
The checks run in this order when you add a file:
| Check | Limit | Message or result |
|---|---|---|
| File size | 524,288,000 bytes (524.29 MB) | Refused before anything is decoded |
| Length from the file's own data | 3 hours | Refused before decoding |
| Length after decoding | 3 hours | Refused, the decoded copy is discarded |
| Shortest clip | 0.1 seconds | The sliders will not go closer |
| Channels | Any number in | First two kept in the MP3 |
Memory is the real ceiling. The whole file is decoded into 32-bit samples, so 3 hours of stereo at 44.1 kHz holds about 3.8 GB, more than many phones can give one tab.
Cutting a clip from an audio file
Step 1
Load the audio
Pick an MP3, WAV, M4A, OGG or FLAC file. It is checked against the 524.29 MB and 3-hour limits, then decoded and drawn as a waveform.
Step 2
Set start and end
Drag the two handles across the waveform, or type seconds into the Start time and End time boxes. A player under the boxes plays the original, so you can find the spot by ear.
Step 3
Cut and download
Cut & Download MP3 encodes just the selected stretch. The clip plays on the page and saves as the original name plus -trimmed.mp3.
What it does not do
It takes one stretch out of a longer file, and that is all. Not included:
- Fades in or out. The clip starts and stops at full volume, so cut at a quiet spot to avoid a click.
- Several ranges at once, or removing a middle part in one step. Cut twice and join the clips with Merge Audio Files.
- Lossless export. Everything leaves as an MP3 with no tags, at 128 kbps for most sources.
- Reading Apple Lossless .m4a in Chrome. The MDN audio codec guide lists ALAC support in Safari only, and a Google Chrome 156 test file failed. AAC .m4a files decode fine.
The waveform is an overview of 600 bars, each drawn from evenly spaced samples of its stretch (no more than 399 of them), so short peaks can be missed. Use the player to check an edit point. To strip quiet stretches automatically, try Remove Silence from Audio.
Which files open, by engine
We ran the tool's own steps (decodeAudioData, the page's slice and the 128 kbps MP3 encoder) in Chrome 156, Chromium 153.0.8010.12 (the build that ships with Playwright, headless, not Google Chrome), Firefox 155.0 and Playwright's WebKit build (user agent Version/26.6, not the Safari app), on generated five-second tones made with a script. Nothing was played; we read lengths, channel counts and sizes. The result for each file type:
| File (5 s tone) | Chrome 156 | Chromium 153 | Firefox 155 | Playwright's WebKit |
|---|---|---|---|---|
| WAV (44.1 kHz stereo, 48 kHz mono, 22.05 kHz mono, 6 channels) | Opens | Opens | Opens | Opens |
| AAC in an .m4a file | Opens | Opens | Opens | Opens |
| FLAC | Opens | Opens | Opens | Opens |
| MP3 and Ogg Vorbis (made with the site's encoders) | Opens | Opens | Opens | Opens |
| Apple Lossless (ALAC) in an .m4a file | Fails, with the page's ALAC message | Fails, with the page's ALAC message | Fails, with the page's ALAC message | Opens |
| AIFF and CAF (made with afconvert) | Fails | Fails | Fails | Opens |
For the files that failed, the page shows its own message: for ALAC it says that the file holds Apple Lossless audio that this browser could not decode, and for AIFF and CAF it says that the browser could not decode the file and suggests another browser or a WAV or MP3 export. The file chooser of the page lists WAV, MP3, M4A, Ogg and FLAC, so AIFF and CAF files are not offered there; we tested them to see what a browser does with them.
What the MP3 looks like
Before decoding, the page reads the sample rate from the file's header (WAV, FLAC, MP3, Ogg and AAC .m4a) and decodes at that rate, so the MP3 keeps it when MP3 can store it. We checked this with the tool's own code in Chrome 156, Chromium 153, Firefox 155 and the WebKit build, on generated five-second tones, one run each. We read the first frame header of each MP3 and decoded it back.
| File (5 s tone) | MP3 written |
|---|---|
| WAV 44.1 kHz stereo, FLAC 44.1 kHz, Ogg Vorbis 44.1 kHz | 44,100 Hz, 128 kbps, 80,666 bytes |
| WAV 48 kHz mono | 48,000 Hz, 128 kbps, 80,640 bytes |
| WAV 22.05 kHz mono | 22,050 Hz, 128 kbps, 81,084 bytes |
| WAV 16 and 24 kHz stereo, 32 kHz stereo | Same rate as the file, 128 kbps (81,216, 81,024 and 80,640 bytes) |
| WAV 8 kHz and 11.025 kHz mono | Same rate as the file, 64 kbps (41,472 and 40,960 bytes) |
| WAV 88.2 kHz and 96 kHz stereo | 44,100 Hz and 48,000 Hz |
| MP3 at 44.1 kHz (also with a 100 KB tag in front) and at 22.05 kHz | Same rate as the file |
| AAC .m4a at 44.1 and 48 kHz | Same rate as the file |
| AAC .m4a at 22.05 kHz, HE-AAC .m4a, WebM with Opus | 48,000 Hz, the browser's own rate |
All four engines gave the same rate for every file. Firefox 155 decoded the AAC files a little long (5.056 to 5.133 seconds instead of 5.000), so its MP3s of them were 81,408 to 82,560 bytes. The 6-channel WAV, a 48 kHz file, came out as a stereo MP3 of 48,384 bytes for 3 seconds (the first two channels).
A cut from 2.00 s to 4.00 s of the 44.1 kHz stereo tone was 88,200 samples, 2.000 seconds, and gave 32,600 bytes that read back as 2.038 seconds. The shortest allowed clip, 0.1 seconds, gave 2,089 bytes and read back as 0.131 seconds, because the MP3 format adds padding to the end. A cut that starts a hundredth of a millisecond past a second kept 4,411 samples instead of 4,410: the end is rounded up to the next sample.
How long encoding takes
We cut the whole of a generated 44.1 kHz stereo WAV in one run per engine, with the MP3 written at 44.1 kHz. Encoding a 60-second file took 1.3 s in the WebKit build, 1.4 s in Chrome 156, 1.5 s in Chromium 153 and 2.3 s in Firefox 155. A 300-second file took 7.2 s in Chrome 156, 7.6 s in Chromium 153, 7.8 s in WebKit and 10.8 s in Firefox, plus 0.1 to 2.4 s to read and decode it first. That is about 26 to 45 times faster than playing. The limits of the page, 524,288,000 bytes and 3 hours, produced these messages in our test: a 3:00:01 audio was refused with a note that it is longer than the 3-hour limit, and a file one byte over the size limit with a note that it is larger than that limit.
Cutting audio: answers
Can I type an exact start time?
Yes. The Start time and End time boxes take seconds and show up to two decimals, so 1 minute 15.5 seconds is 75.5 and a slider position of 75.25 shows as 75.25. The sliders move in hundredths of a second, and the line above them shows the selection as minutes and seconds.
How do I cut a section out of the middle?
The cutter keeps one range, so do it in two passes: save from the start to where the unwanted part begins, then from where it ends to the end. Join the two MP3s with Merge Audio Files.
Does cutting an MP3 lower its quality?
A little. The selection is decoded and encoded again at 128 kbps, so even an MP3 that was already 128 kbps goes through a second lossy pass, and a 320 kbps file comes out at 128. The cut itself is sample-exact.
Why is my 10-second clip slightly longer than 10 seconds?
The MP3 comes out a hair longer than the selection. A 10.000 s selection encoded by this tool decoded to 10.031 s in Apple's decoder, with the sound starting about 12 to 13 ms in. For most uses that gap cannot be heard; for a gapless loop, use a lossless format.
Why does it say my file is too long?
Recordings over 3 hours and files over 524,288,000 bytes (524.29 MB) are refused. Length is read from the file before decoding where possible, and checked again after it.
Can I export WAV instead of MP3?
No. The only output is an MP3, stereo at most, at 128 kbps for most files (our 8 and 11.025 kHz test files came out at 64 kbps). Cutting a WAV here therefore turns it into a lossy file. To keep a WAV, cut it in an audio editor instead.
Why does my Apple Lossless .m4a not open?
In our test Chrome 156, Chromium 153 and Firefox 155 could not decode an ALAC file and the page said so, while Playwright's WebKit build opened it. Export the track as AAC or WAV, or try a WebKit-based browser such as Safari.
Does the MP3 keep the sample rate of my file?
Yes, when the file's header states a rate MP3 can store. WAV files at 8, 11.025, 16, 22.05, 24, 32, 44.1 and 48 kHz, FLAC and Ogg Vorbis files at 44.1 kHz, MP3 files at 44.1 and 22.05 kHz, and AAC .m4a files at 44.1 and 48 kHz kept their rate in all four browser engines, an 88.2 kHz WAV came out at 44.1 kHz and a 96 kHz WAV at 48 kHz. An AAC .m4a at 22.05 kHz, an HE-AAC file and a WebM were written at the browser's own rate, 48,000 Hz on our test Mac.
What happens with a surround sound file?
Only the first two channels are written. A 6-channel WAV gave a stereo MP3.
Why is a very short clip a little longer when I play it?
The MP3 format pads the end. From a 44.1 kHz file, a 0.1-second clip read back as 0.131 seconds, and a 2-second clip as 2.038 seconds.
Why did my 8 kHz recording come out at 64 kbps?
The encoder the page uses wrote 64 kbps instead of 128 for our 8 and 11.025 kHz test files (MPEG-2.5 frames). A 5-second 8 kHz mono WAV gave a 41,472-byte MP3 at 8,000 Hz, and an 11.025 kHz one 40,960 bytes.
Why does my .m4a still come out at 48 kHz?
The page keeps the file's rate only where the header leaves no doubt about the rate the sound decodes to. AAC at 24 kHz or less can be HE-AAC, whose full rate can be twice the rate in its AAC header: our HE-AAC test file stated 22,050 Hz there, while macOS afinfo listed it as 44,100 Hz. Such files, and WebM and Apple Lossless files, are decoded at the browser's own rate, 48,000 Hz in our test.
Related guide
MP3, OGG, WAV: when to convert or compress audio. The guide measures the click energy of a cut that starts at a waveform peak against one at a zero crossing, a difference of about 18 dB in the high band.