Skip to content
UniKit

Extract audio by time

Decode the audio track in the browser, cut it between two timecodes and export 16-bit WAV — an end past the track is clamped to the end and flagged.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Pick a video or audio file: MP4 / WebM / MOV / M4A / MP3 / OGG / FLAC tracks are decoded by the browser, WAV is parsed here; nothing is uploaded.

Pick an audio file first (or press Record).

Result

Duration, sample rate, peak and size below are the real numbers from this run.

Pick a file and the preview plus download show up here.

Containers the browser cannot open (MKV / AVI / WMV / RMVB)

These containers have no built-in browser decoder, so the page reports that the browser cannot decode the file and the result stays empty. The command below is a reference for **ffmpeg on your own machine**.

ffmpeg -ss 5.000 -to 15.000 -i input.mkv -vn -map 0:a:0 -c:a aac -b:a 192k output.m4a

That is a command, not a result of this tool: nothing is transcoded in the browser for MKV. Containers the browser can open (MP4 / WebM / MOV / M4A / MP3 / OGG / FLAC) are really exported by time range to WAV above.

What this tool does

  • You only need 12:30 to 14:00 of a podcast: type the two timecodes, the browser decodes the track, cuts it and lets you listen right away
  • Trim the dead air off a screen recording: start at 0:03, end at 0:48, and take the WAV straight into your subtitle workflow
  • Check an audio/video sync problem on the time axis: cut just the suspicious seconds and audition them without re-encoding the whole video

Example

Input

tone.wav (8000 Hz mono, 2 s, peak 0.5) → start 0.5 / end 1.5

Output

tone-clip.wav: source track 0:02.000, cut 0:00.500 → 0:01.500, export 0:01.000 (8000 Hz mono), 8000 samples; 500 ms discarded at either end; WAV 16044 B

The cut happens on real PCM: these numbers come from this run and the WAV is the slice encoded in your browser.

Frequently asked questions

How is this different from Extract audio track?

Here both edges (start and end) are yours, which fits “take 0:03 to 0:48” — and an end past the track is clamped to the end with a line saying so. The other tool works with a start plus a length, which fits “take 15 seconds from 0:30”. Decoding and WAV export are identical.

What if the end is longer than the track?

It is clamped to the end of the track and the result says exactly what you typed, how long the source track is and what was used. Your parameters are never silently rewritten and no silence is padded. If the end is at or before the start, the tool reports an error instead of swapping them.

Does it really cut the audio, or just print an ffmpeg command?

It really cuts it. The browser decodes the track of MP4 / WebM / MOV / M4A / MP3 / OGG / FLAC with AudioContext.decodeAudioData (WAV is parsed by this site), slices the real samples between your timecodes and encodes them as 16-bit WAV for playback and download. The ffmpeg command on the page only matters when the container cannot be decoded (MKV / AVI / WMV): it is a reference for ffmpeg on your own machine, not a result of this tool.

Can it export MP3 or AAC?

No. Browsers ship decoders but no MP3 / AAC encoder, so the export is always 16-bit PCM WAV. Convert it elsewhere if you need MP3.

How do I write the timecodes?

All three forms work: 12.5 (seconds), 0:12.5 (m:ss), 0:00:12.5 (h:mm:ss). An empty end means “to the end of the track”; negative values, unparsable strings and seconds or minutes of 60 or more are rejected with a message.

Keywords:wavextract audio by time

Related tools