Trim Audio
Trim audio by typing a start and an end second: one audio file up to 50 MB is cut inside your browser and never uploaded. The piece is re-encoded — MP3 and M4A always at 192 kbps — so it can come out larger than the original. Save it and listen in your own player, because it can't be played on the page.
How to use
- Choose one audio file: Drop an audio file onto the box or click to pick it — one file per run, up to 50 MB. Drop several at once and the whole batch is refused with a count, so add a single file. While a file is selected the drop box is gone: remove it with ✕ before choosing another.
- Type the start and the end: Start and End are in seconds and take decimals, so 12.5 means twelve and a half seconds in. The end must be larger than the start. You can also play the file in the preview player and press Use current time to drop the playhead's position into either box.
- Pick an output format: Follow the source format (recommended) keeps MP3, M4A, WAV, OGG and FLAC sources in their own format. The default checks a recognised filename extension first, then the browser-reported MIME type. It uses MP3 only when neither identifies one of the five output formats. Choose MP3, M4A, WAV, OGG or FLAC yourself to override that.
- Trim and save the piece: Press Trim audio. The first run shows "Getting the engine ready…" while about 31 MB of processing engine is fetched, then a percentage. Read the result notes, then press Download — Save to device on a phone — to get your file name with -trimmed added.
How to trim audio by typing a start and an end second
Trim audio online by entering start and end times in seconds. Choose one audio file up to 50 MB and export MP3, M4A, WAV, OGG or FLAC locally in your browser. Every cut is re-encoded; MP3 and M4A use 192 kbps.
There is no waveform to drag: Start and End are two numeric boxes in seconds that accept decimals, which is the quickest way to cut an MP3 by start and end time when you already know the timestamps from a transcript, a podcast show note or a player's own clock. They begin at 0 and 5, step in tenths, and the end has to be larger than the start.
If you don't know the numbers yet, the file you picked gets a small player above the boxes. Play it, stop where the piece should begin, and press Use current time next to Start; do the same at the other end for End. The playhead's position is rounded to one decimal, so you can nudge it afterwards by typing.
Everything runs on your own device, which is how you trim audio without uploading it. The engine is ffmpeg.wasm — FFmpeg compiled to WebAssembly — and it is fetched with the page rather than run on a server. There is no server step in the code at all: the list of tools allowed to fall back to a server is empty and the fallback function only raises an error, so a file your device can't finish ends in a message instead of an upload. Closing the tab clears the page's working data.
Two practical consequences. The first run downloads about 31 MB of engine, and that download starts as soon as you choose a file, so it overlaps with the time you spend typing the two numbers. And the page needs multi-threaded processing — SharedArrayBuffer, which browsers only grant to a cross-origin isolated page — because the trim has to encode. That check happens the moment you press the button, before anything is downloaded.
The cut itself is sample-accurate rather than snapped to a frame boundary, because the start is handled on the output side: FFmpeg decodes from the beginning and discards what comes before your start second. The trade is at the other end of that sentence — a start deep inside a long recording means more to decode before the piece begins, so a late start can take longer than an early one. How long depends on your file, the output format and the device, and we have no measured browser timings to quote.
Only audio files can be picked here, so a video's sound has to come out first: Extract Audio from Video copies the track out without re-encoding it.
Which format you get, and why the piece is re-encoded
MP3 → libmp3lame, 192 kbps M4A → AAC, 192 kbps WAV → PCM 16-bit OGG → Vorbis, quality 5 FLAC → FLAC (lossless)
Every run re-encodes. There is no "same format, so copy it through" shortcut in the code: the arguments are the same whether your source is MP3, AAC, Opus, FLAC, PCM or Vorbis, and the encoder settings above are fixed — the page has no bitrate, sample-rate, channel or quality control. So this is a trimmer, not a lossless splitter: a lossy source trimmed to a lossy format loses a little more quality. WAV uses 16-bit PCM, so higher-precision audio is reduced to 16 bits. Neither WAV nor FLAC restores detail already lost in the source.
Because the bitrate is fixed at 192 kbps for MP3 and M4A, the piece can be larger than the file it came from. That surprises people, and it is simple arithmetic: a constant-bitrate MP3 spends the same number of bits per second regardless of what the source spent, so trimming a 64 or 128 kbps recording writes more data per second than it reads. With a 4-second, 64 kbps sample of 32,391 bytes, asking for seconds 0 to 5 produced a 98,472-byte MP3 — measured on a desktop with FFmpeg 9.0.2 using the same arguments this page builds, not in the browser, so treat it as the direction rather than a figure to expect. If the aim is a lighter file, there is no bitrate here to lower: the size of the piece follows the span you kept and the format you chose.
Format follows the source unless you say otherwise, and that is the setting worth understanding. Follow the source format recognises MP3, M4A, WAV, OGG and FLAC and writes the piece in the same one, which is how you trim a WAV file without converting it to MP3 by accident. The filename extension takes priority. If it is not recognised, the browser-reported MIME type is checked; MP3 is used only if neither check identifies MP3, M4A, WAV, OGG or FLAC. Picking a format from the menu ignores the source entirely.
For the same length, WAV and FLAC are much heavier: WAV stores every sample uncompressed as 16-bit PCM and FLAC compresses without discarding anything. In the desktop measurement above, the same seconds 0 to 5 came to 357,198 bytes as WAV and 218,761 bytes as FLAC against 98,472 bytes as MP3. That is a comparison at equal length, not a promise that a WAV piece beats the whole original file — take ten seconds out of an hour-long recording and even a WAV can be the smaller of the two. OGG we have no measurement for.
What the trimmed piece keeps, and what it leaves behind
The sound between your two seconds is what travels, re-encoded in the format you chose. Channel count and sample rate are not touched by any argument, so a stereo 44.1 kHz source stays stereo at 44.1 kHz as far as the chosen encoder allows. Ordinary tags such as title and artist usually carry over, because FFmpeg copies global metadata by default; we have no browser measurement of exactly which tags land in which container, so treat it as the normal case rather than a guarantee.
Three things are dropped on purpose. Location (GPS) metadata is cleared — nine location keys are written empty on every tool on this site — and the original recording date is not written into the output either, so a media library may file the piece under today's date. The third is the video stream: the arguments drop it in one piece, which matters even for a plain song, because an embedded cover image counts as a video stream. Trim an MP3 that has album art and the art is not in the result. The result notes flag this whenever a video stream was detected, and they can't tell a real picture track from cover art.
What is outside your start and end is gone from the piece, which is the point of the page, and the original file on your disk is untouched — the trim writes a new file named after yours with -trimmed and the new extension, so interview.mp3 becomes interview-trimmed.mp3. What does not survive is the original encoding: the piece is a re-encode, so keep the source if you may need to trim it again from a clean copy.
Limits, messages, and what this page won't do
File limits. One audio file per run, 50 MB maximum. Drop several at once and none of them is added — you get a note with the number that was refused, rather than one file being handled silently. The picker offers audio only, and a dropped video is skipped with a note at that step, so the sound has to be pulled out of the video first. When the file is read, its format is detected from the contents rather than from the name, so an audio file carrying the wrong extension is usually still readable, while something renamed to .mp3 that isn't audio fails when the page inspects it. The name does still matter in one place: it is one of the clues Follow the source format uses to choose the output container.
Start and end seconds. There is no maximum or minimum length for the piece itself. An end at or below the start is refused before anything runs. A start larger than the recording's length is refused with both numbers, because the engine itself wouldn't object — it would hand back a valid file with no sound in it. An end past the length is allowed and is not an error: the file simply ends first and the result notes say which second it stopped at, so the piece is shorter than you asked for.
Messages and cancelling. "This file can't be read" means the inspection pass found no streams at all; "No audio track was found" means it read the file but there was no sound to trim. Anything else lands on the general failure line, which also covers 75 seconds with no engine activity and an engine load that passes 180 seconds. Cancel is available at every stage and returns you to the form with no error line; work already in flight may take a moment to stop, but its result is discarded either way.
Saving and trimming again. The piece can't be played on this page: audio results get a card with the file name, a note that the format can't be previewed here and a save button, so plan on listening in your own player. On a phone that save button opens the system share sheet when the browser offers file sharing and simply downloads the file when it doesn't; cancelling the share sheet leaves everything as it was, without starting a download. A successful run replaces the whole form with the result, so there are no boxes left to edit: taking a second piece out of the same recording means pressing Start over, choosing the file again, typing the new numbers and running it again. After an error the form stays put, and you can change a number and run it straight away.
Finally, the jobs this page does not do. It cannot cut without re-encoding, and it cannot lower the output bitrate or change the sample rate, channels, volume or speed — a shorter piece may still be smaller than the complete source, but nothing here compresses the sound. It cannot remove a chunk from the middle, produce several pieces in one run, or handle several files at once. It cannot fade in or out, strip silence, or select a span by dragging a waveform. It cannot trim video — the picture would be dropped anyway — and it cannot run in a browser without SharedArrayBuffer, where availability depends on the browser and its privacy settings.
Coming from a video and wanting an MP3 you can then trim? MP4 to MP3 Converter re-encodes the sound into MP3 first.
How this tool is checked
- The logic behind this tool is covered by 13 automated test cases (hand-checked examples, edge cases and invalid input), and they run again before every release.
- Before each release, a real browser opens this page, runs it on sample files (including a damaged one) and checks the file it produces.
- Your files are processed in your browser and are never uploaded to our server.
- Formulas, figures and definitions are checked against the sources listed at the end of this page.
Frequently asked questions
- Is my audio file uploaded to a server?
- No. The trim runs inside your browser with ffmpeg.wasm, and the code has no server step — the list of tools allowed to fall back to a server is empty and the fallback function only raises an error. That is also why a file too heavy for your device fails with a message instead of being handed off somewhere.
- Can I cut an MP3 at an exact start and end time?
- Yes. Start and End are typed in seconds and take decimals, so 12.5 is twelve and a half seconds in. The start is applied on the output side, which makes the cut sample-accurate rather than snapped to a frame boundary. If you prefer to find the spot by ear, press Use current time while the preview player is at the right moment.
- Why is my trimmed file bigger than the original?
- Because trimming re-encodes at a fixed 192 kbps for MP3 and M4A, with no setting to lower it. A constant-bitrate file spends the same bits per second whatever the source spent, so a 64 or 128 kbps recording gains data per second. Trimming takes a section: there is no bitrate to lower here, so whether the piece beats the whole source depends on how much of it you kept and the format you chose.
- Can I trim a WAV or FLAC without it turning into an MP3?
- Yes — leave the format on Follow the source format. MP3, M4A, WAV, OGG and FLAC sources are written back in the same format: the filename extension is checked first, then the type your browser reports. MP3 is the fallback only when neither the extension nor the browser-reported MIME type identifies a supported output format. Note that WAV here is 16-bit PCM, so a 24-bit WAV source comes back at 16 bits.
- Can I listen to the piece before saving it?
- Not on this page. Audio results get a card with the file name and a save button rather than a player, so save the piece and open it in your own player. The player you see while setting up the trim plays your source file, not the result.
- How do I take a second piece out of the same recording?
- Press Start over in the result, then choose the file again, type the new start and end, and run it. A successful run replaces the form with the result, so there are no boxes left to edit, and Start over clears the file along with the two numbers. After an error the form stays and you can simply change a number.
- Can I trim the audio out of a video file here?
- Not directly — only audio files can be chosen, and a dropped video is skipped with a note. Get the sound into an audio file first, then trim that. The trim also drops any video stream it finds, including the cover art embedded in a song.
- Why does the page say my browser needs multi-threaded processing?
- Trimming has to encode, and the encoder needs SharedArrayBuffer, which browsers grant only to a cross-origin isolated page. Availability depends on the browser and its privacy settings. Open the page in an up-to-date Chrome, Edge or Firefox, reload, and try again — the check runs on the click, so nothing is downloaded when it fails.
Related tools
Cite this tool
Using a result in a report, paper or assignment? Copy a ready-made reference.
Gingertool. (2026). Trim Audio [Online tool]. Retrieved November 30, 2026, from https://gingertool.com/en/video/trim-audio/
“Trim Audio.” Gingertool, November 30, 2026, https://gingertool.com/en/video/trim-audio/. Accessed November 30, 2026.
@misc{gingertool-trim-audio,
author = {{Gingertool}},
title = {Trim Audio},
year = {2026},
url = {https://gingertool.com/en/video/trim-audio/},
note = {Accessed: 2026-11-30}
}