Browser Audio Trimmer & Cutter

Trim and cut any audio file by start/end markers and export as WAV using the Web Audio API.

Media & Social
Tool Area
Audio Track Ingestion
Trim Marker Boundaries
Start Marker0.0s
End Marker10.0s

About this tool

This audio trimmer uses the browser's native Web Audio API to decode, slice, and re-encode audio files entirely client-side. Your audio never leaves your device — no upload, no cloud processing.

Web Audio API Pipeline

  • AudioContext.decodeAudioData() — Decodes the file into a raw PCM AudioBuffer
  • AudioBufferSourceNode — Streams the selection for preview playback
  • PCM slice extraction — Copies sample frames between start and end offsets into a new buffer
  • WAV encoder — Serializes the trimmed buffer into a standard RIFF/WAV file for download

WAV Encoding Formula

sample = clamp(pcm, -1, 1) × 32767 → Int16

Supported Formats

Input: MP3, WAV, OGG, FLAC, AAC (browser-dependent). Output is always standard 16-bit PCM WAV — universally compatible with all audio software.

Related tools