Trim an Audio File

Pick an audio file, set a start and end time — it's trimmed in your browser, nothing is uploaded.

Trimmed audio

Trim audio in your browser

Pick an audio file, set a start and end time in seconds, and choose what to do with that selection: keep extracts just the selection (the classic ringtone cut), remove deletes it and joins what's left (drop an ad break or a cough from a recording). Leave End empty to trim to the end of the track — set only Start to 15 and you've dropped the first 15 seconds. The trim runs entirely in your browser with ffmpeg compiled to WebAssembly, so your audio is never uploaded to a server.

Worked example

Cut a 30-second ringtone out of a song: upload the song, set Start to 15, End to 45, leave Mode on keep and Format on mp3, and tick Fade edges so the clip doesn't start or end with a click. The result is a 30-second mp3 (192 kbps) named like the original with a -trimmed.mp3 suffix. To instead delete seconds 15–45 from the song and keep the rest, switch Mode to remove. To cut a rambling intro off a recording, set Start to where the good part begins and leave End empty.

Modes

Formats

Limits and edge cases

FAQ

How do I cut out the middle of a recording, not keep it?

Set Mode to remove. The selection between your start and end times is deleted and the audio before and after it is joined together — handy for removing an ad break, a long pause, or a cough.

How do I cut off just the intro (or outro)?

For an intro: set Start to where the good part begins and leave End empty — everything from start to the end of the track is kept. For an outro: switch Mode to remove, set Start to where the ending begins, and leave End empty — everything from there to the end is deleted.

Which format should I pick?

mp3 (the default) plays everywhere and is small — right for ringtones and voice clips. Pick wav or flac if you plan to edit the clip further and want a lossless copy; pick m4a for small files on Apple devices.

Why is my trimmed file re-encoded instead of a bit-exact copy?

Sample-accurate trimming and edge fades use ffmpeg audio filters, and filters always decode and re-encode the stream. At 192 kbps mp3 (or lossless wav/flac) the quality loss is negligible for a single edit.

Is my audio uploaded anywhere?

No. The page downloads an ffmpeg WebAssembly build once and then processes your file locally in the browser tab — the audio never leaves your device.

Developer & Automation Access

Run it from the terminal

Same engine as this page, headless — via the gizza CLI:

gizza tool trim-audio 'url=https://example.com/input' 'start=15' 'mode=keep' 'format=mp3' 'fade=true'

New to the CLI? Get gizza →

Open it by URL

Pre-fill and auto-run this tool with query parameters — the names match the API/CLI:

https://gizza.ai/tools/trim-audio/?url=https://example.com/input&start=15&mode=keep&format=mp3&fade=true