Audio Trimmer

  • Free, no sign-up
  • Runs in your browser
  • Updated
Quick answer. The Audio Trimmer decodes your audio file with the Web Audio API, shows its waveform, and lets you cut a section with optional fade in and fade out. The result is saved as a WAV file on your device.

Audio Trimmer tool

MP3, WAV, M4A or OGG

Selection: 0:00.0 · WAV size about 44 B

Runs in your browser. Your data never leaves your device.

How to use the Audio Trimmer

  1. 1Choose an audio file (MP3, WAV, M4A or OGG your browser can play).
  2. 2Set the start and end of the part you want with the sliders.
  3. 3Add fade in and fade out if you like and press Play selection to preview.
  4. 4Click Export WAV to download the trimmed audio.

What is an audio trimmer?

An audio trimmer cuts out the part of a sound file you want and throws away the rest. This audio trimmer opens MP3, WAV, M4A, OGG and other files your browser can play, draws the waveform so you can see loud and quiet parts, lets you set a start and end point, adds optional fade in and fade out, plays the selection, and exports a WAV file. Everything happens on your device; the audio is never uploaded.

People use it to make ringtones, cut a clip from a recorded lecture, remove silence from the start of a voice note, or prepare a sound effect for a video.

How does the audio trimmer work?

  1. Decode: the file is decoded with the Web Audio API's decodeAudioData(). This turns compressed audio into raw samples: tens of thousands of numbers per second, each between −1 and 1, for each channel.
  2. Draw: the waveform is made by splitting the samples into small buckets and drawing the loudest value in each bucket as a bar.
  3. Trim: the start and end times are turned into sample positions (time × sample rate), and that slice is copied.
  4. Fade: for a fade in of F seconds, the first F × sample rate samples are multiplied by a value rising in a straight line from 0 to 1. A fade out does the reverse at the end.
  5. Export: the samples are written as a 16-bit PCM WAV file by a small encoder written for ATechCraft and covered by automated tests.

What is inside a WAV file?

A WAV file is a 44-byte header followed by the raw samples. The header says "RIFF", "WAVE", the number of channels, the sample rate and the bits per sample. Each sample is scaled from the −1 to 1 range to a whole number between −32,768 and 32,767 and stored in 2 bytes, with stereo channels interleaved (left, right, left, right).

How big will the WAV file be?

Size in bytes = 44 + seconds × sample rate × channels × 2

ClipSample rateChannelsWAV size
30-second stereo ringtone44,100 Hz2about 5.3 MB
30-second mono voice note48,000 Hz1about 2.9 MB
1 minute stereo44,100 Hz2about 10.6 MB

That is much larger than MP3, because WAV is uncompressed. The tool shows the expected size of your selection before you export.

Worked example: a 25-second ringtone

You have a 3-minute MP3 and want the chorus that starts at 1:12.

  1. Choose the file. The info line shows its length, channels and sample rate.
  2. Drag Start to 1:12.0 and End to 1:37.0. The selected part of the waveform turns green.
  3. Set Fade in to 0.5 s and Fade out to 2.0 s so the ringtone does not start or stop abruptly.
  4. Press Play selection to listen, adjust if needed, then Export WAV. At 44,100 Hz stereo, 25 seconds gives a file of about 4.4 MB.

Android accepts WAV ringtones directly. For iPhone, convert the WAV to M4R with other software or Apple's own apps.

Tips

  1. Use the waveform to find gaps. Silence shows as a flat line, which makes clean cut points.
  2. Short fades (0.2 to 0.5 s) remove clicks at cut points even when you do not want an audible fade.
  3. Test your speakers or headphones with the Speaker Test if the preview sounds wrong.
  4. Recording your own voice? Check your microphone level first with the Mic Test.
  5. Making a silent clip from video? Use Video to GIF for the picture, and this tool for the sound.

Limitations

  • WAV output only. It is large but universally supported and lossless. Convert to MP3 or AAC elsewhere if you need small files.
  • Formats depend on your browser. Most browsers decode MP3, WAV, AAC/M4A and OGG/Opus. FLAC and some others vary.
  • Memory: decoded audio is large (about 21 MB of memory per minute of stereo). Very long files, such as 2-hour podcasts, may be slow or fail on phones.
  • One region at a time. You cannot cut out a middle section and join the two ends.
  • Metadata such as artist, title and cover art is not kept.

Key terms

  • Sample rate: how many sound measurements are taken per second, such as 44,100 Hz.
  • Waveform: a picture of how loud the sound is over time.
  • PCM: pulse-code modulation, the simple uncompressed way of storing audio samples.
  • Fade: a gradual change in volume at the start or end of a clip.

Frequently asked questions

Why is the output WAV and not MP3?

MP3 encoders are large, so the tool writes uncompressed WAV with a small encoder of its own. Convert to MP3 later if you need a smaller file.

Why is the WAV file bigger than my MP3?

WAV stores raw audio: about 10 MB per minute for CD-quality stereo (44,100 samples × 2 bytes × 2 channels × 60 seconds). MP3 compresses that heavily.

Does trimming lower quality?

The audio is decoded once and saved without compression, so no extra quality is lost beyond the original file.

Can I make a ringtone?

Yes. Trim 20 to 30 seconds with a short fade out. iPhone ringtones need conversion to M4R with other software.

Last updated: . Written and tested by Abdul Moid Khan, ATechCraft. Read how we build and test tools.