Trim an audio file to a specific time range with waveform visualization — export as WAV, no upload.
Audio trimming is the simplest edit: keep a section of a file and discard the rest. This tool does it entirely in the browser using the Web Audio API. When you upload a file, the browser decodes it into a raw audio buffer — a sequence of floating-point samples at the file's sample rate. The waveform is drawn on a canvas by scanning the samples and plotting the minimum and maximum amplitude per pixel column, which gives you a visual map of the entire track.
Setting the start and end times selects a contiguous range of samples. The preview plays that range through an AudioBufferSourceNode connected to your speakers. The export creates a new OfflineAudioContext, renders the selection into a fresh buffer, and encodes it as an uncompressed WAV file — the simplest lossless format and the one most tools accept. The result is a clean cut with no re-encoding artefacts.
The WAV export preserves the original sample rate and channel count (mono or stereo). File sizes are larger than compressed formats: a 30-second stereo clip at 44.1 kHz is about 5 MB. For a ringtone, a sound effect or a sample, that is fine. For longer audio you would compress the WAV afterward. The tool handles files up to 50 MB, which is enough for most practical clips, and everything stays in your browser — no upload, no processing queue, no account.
WAV file size = sample rate × channels × 2 (bytes per 16-bit sample) × duration + 44 (header). Example: 44100 × 2 × 2 × 30 = ~5.3 MB for 30 seconds of stereo CD-quality audio.
Anything the browser can decode: MP3, WAV, OGG, M4A, FLAC, WebM audio. If the browser refuses the file, try converting it to MP3 first.
Because the Web Audio API outputs raw PCM samples and the WAV encoder is trivial — it just wraps them in a header. MP3 encoding requires a codec library. The WAV is lossless and can be compressed afterward.
No. Decoding, trimming and encoding all happen in memory. The file is saved from a Blob URL.
The time fields accept decimals (e.g. 3.7), which gives you 100 ms precision. Sample-accurate editing requires a dedicated audio editor.
The upload limit is 50 MB. Very large files take a moment to decode. If the browser runs out of memory, the page will say it could not decode the file.
Vai.la turns any URL into a short link with click statistics, QR Code and your own biolink.
Vai.la is not responsible for how the tools are used or for decisions made based on their results.