Complete User Guide to Cutting & Trimming Audio, Waveform Selection & Fade Envelopes
How Browser Audio Decoding, Waveform Trimming & PCM WAV Export Work
Whether you are trimming a voice memo, cutting an intro or outro from a podcast clip, isolating a sound effect, or preparing a short audio snippet, working visually against the audio waveform makes finding exact start and end points fast and accurate. When you choose an audio file (such as MP3, WAV, OGG, or M4A), the browser's Web Audio API (AudioContext.decodeAudioData()) decodes the waveform into PCM sample buffers in memory, draws peak amplitude bars onto the timeline canvas, and lets you set precise start and end timestamps along with optional linear Fade In and Fade Out ramps to smooth out abrupt cuts. When you click Cut & Download WAV, the selected sample slice is packaged into a standard 16-bit PCM RIFF/WAV file directly inside your browser. A browser-based Audio Cutter runs 100% locally in your browser—with zero server uploads.
How to Cut & Export an Audio Clip in 3 Easy Steps
- Load an Audio File or Test Chime: Drop an audio file onto the upload area or click Generate 10s Test Chime to try out the timeline immediately.
- Set Start/End Times & Optional Fades: Enter or adjust Start Time (Seconds) and End Time (Seconds) (or click along the waveform timeline to jump your start point), and optionally add a short Fade In or Fade Out.
- Preview & Download Clean WAV: Click Preview Selection to audition your trim, then click Cut & Download WAV to save the clipped audio file.
Clip Sample Count & Fade Envelope Formulas
For sample rate SR (in Hz), start time tstart, and end time tend:
PCM Byte Size = Samples_per_Channel × Channels × 2 bytes (16-bit) + 44-byte WAV Header
Helpful Tips for Clean Audio Edits
- Add a 0.1s–0.3s Fade In / Fade Out to Prevent Clicks: Cutting a waveform abruptly at a non-zero amplitude point can produce a tiny pop or click—a short fade smooths the transition cleanly.
- Keep a Copy of Your Original File: Exported WAV files are uncompressed PCM and can be larger than compressed MP3 files—keep your original source file if you archive compact formats.
- DRM-Protected or Unusual Codecs: Files encrypted or encoded with codecs unsupported by your browser may fail to decode in
decodeAudioData().
Worked Example: Trimming a 48,000 Hz stereo clip from 2.0s to 7.0s produces a 5.00s segment containing 240,000 samples per channel (960,000 bytes of 16-bit stereo PCM audio plus the 44-byte WAV header).