How soundtrimmer.app trims audio on your device

The evidence behind the claims on the audio trimmer: what happens to your file, how each format is saved and tested, which browsers open and save which formats, the limits, and how to check that your audio stays on your device.

Updated

Open the audio trimmer

What happens to your file

The tool first reads the file's header with mediabunny 1.66.2, an open-source media library, to learn its format, sample rate, channels and length. It goes by the file's contents, never by its name. Then your browser decodes the sound with its own decoder (decodeAudioData of the Web Audio API) in an OfflineAudioContext made at the file's own sample rate and channel count. Decoded audio is resampled to the sample rate of the context it is decoded in, so matching the file's rate keeps the samples as they are. A file with more than two channels is mixed to stereo.

Cutting, fades, volume and normalizing are arithmetic on those samples, done in the page when you press Play and in a background worker when you save. Encoding runs in that worker too, and the result is saved from the page to your device. Nothing is sent anywhere.

Two ways an MP3 is saved

The line under Download always says which of these will be used: "Original quality: the MP3 is cut, not re-encoded" followed by "Original frames:" and the real start and end, or "Audio will be encoded at" followed by the bit rate.

WhenHow the MP3 is madeWhere the cut falls
Your file is an MP3, the format is MP3, the mode is Keep selection, no fade is set, the volume is at 100 percent, Normalize is off and Re-encode is offThe file's own frames, from the one that holds the start to the last one that begins before the end, are copied into a new MP3 by mediabunny. No encoder runs.On frame boundaries: each end can move outward by less than one frame (1,152 samples, about 26 ms at 44.1 kHz)
Any other case: a fade, a volume change, Normalize, Remove selection, a file in another format, or Re-encode onThe sound is decoded, edited and encoded by LAME 3.100 (in wasm-media-encoders 0.7.0, as WebAssembly) at a constant 128, 192, 256 or 320 kbps, in joint stereo for stereo sound, at 48, 44.1 or 32 kHz (sound at any other sample rate is saved at 44.1 kHz)The sound is cut on the exact sample; the encoder then adds about 25 ms of silence at the start of the file

Copying does not decode the sound, so it can also cut an MP3 that is longer than the decoding limit below: the browser tests cut a two-hour MP3 this way with the browser's audio decoder switched off. LAME's own site describes it as an MP3 encoder licensed under the LGPL.

How the other formats are made

WAV is written by the site's own code: RIFF WAVE with PCM samples of 16 or 24 bits, at the file's own sample rate and channels. For 16 bits the samples are dithered (TPDF) before they are rounded.

M4A and M4R hold AAC-LC sound made by your browser's own encoder (the WebCodecs AudioEncoder, codec mp4a.40.2) at 128, 192 or 256 kbps, put in an MP4 container by mediabunny. An .m4r file is the .m4a file under another name.

Edits: a cut falls on the exact sample, and Remove selection joins the two parts at the sample. Each fade is a straight ramp of at most half the result. Volume runs from 50 to 200 percent; without Normalize, any sample the volume pushes past full scale is clipped. Normalize scales the result after the volume so its loudest sample is at -1 dBFS.

Formats per browser

Which files open depends on the browser, because the browser decodes them. The page tests open MP3 and WAV files in Chrome, Firefox and WebKit, and the sound of a WebM video in Chrome. The other cells follow MDN's audio codec guide and WebKit's notes for Safari 18.4, which describe what each browser plays; the tool decodes with the same browser, but those cells have no test of their own yet:

FileChrome and EdgeFirefoxSafari
MP3Opens (tested in Chrome)Opens (tested)Opens (tested in WebKit)
WAV (PCM)Opens (tested in Chrome)Opens (tested)Opens (tested in WebKit)
M4A (AAC)Supported (MDN)Supported where the operating system supplies AAC (MDN)Supported (MDN)
FLACSupported (MDN)Supported on computers from Firefox 51 (MDN)Supported from Safari 11 (MDN)
OGG (Vorbis or Opus)Supported (MDN)Supported (MDN)Supported from Safari 18.4 (WebKit)
The sound of a videoWebM opens (tested in Chrome); MP4 and MOV not testedNot testedNot tested

Saving: MP3 and WAV work in every browser that runs the page, because the site brings its own MP3 encoder and writes WAV itself. M4A and M4R need the browser's AAC encoder. MDN lists the AudioEncoder in Chrome and Edge from version 94, Firefox on computers from 130 and Safari from 26. For each file, the tool asks the browser whether it can encode AAC at that file's sample rate and channels and encodes a moment of silence to make sure, and it shows M4A and M4R as unavailable where it cannot. In the tests, Chrome 157 and WebKit 27.2 made M4R and M4A files, and Firefox 157 could not encode AAC, so the tool showed them as unavailable there.

How it is tested

The test sounds are made at test time with ffmpeg: four one-second tones of 220, 440, 880 and 1,760 Hz, so a cut is checked by which tone is heard at each second. Engine tests check both cutting modes at sample accuracy, the level at the start, middle and end of each fade, volume and normalizing. Each WAV the engine writes, at 16 and at 24 bits, is read back by afinfo and ffprobe (length to the sample, bit depth) and decoded to the same samples within the rounding of its bit depth; an MP3 it encodes is read back by both (bit rate, channels, length within two frames) and decoded to the right tones at the right times. The frame copy is tested on constant and variable bit rate MP3s, mono and stereo, with an ID3 title tag and a cover picture: afinfo and ffprobe must read the result, its length must match the returned times within one frame, it must start and end on the right tones, and its frames must be found byte for byte in the source file. The file reader is tested on MP3, WAV (8, 16 and 24 bit and float), M4A, OGG and FLAC from 8 to 96 kHz, and on damaged files: an empty file, text named .mp3, WAV files whose headers claim 4 GB and a cut-off MP3.

Browser tests drive the page with a script: an MP3 cut by copying its frames (within 30 ms of the chosen length, with the right tone at its start and end) and the same selection saved as WAV (exact to the sample); a 48 kHz stereo WAV that must stay 48 kHz stereo, with Remove mode, half-second fades (the first and last 100 ms below a quarter of the level of the middle), Loop, Play and Pause; typed times and the arrow keys on a handle; on the ringtone page, M4R and M4A files that ffprobe and afinfo read as AAC in MP4, or the unavailable state where the browser cannot encode AAC; on the MP3 to M4R page, a 38-second MP3 that cannot be downloaded as M4R until Shorten to the limit makes it 30 seconds; the sound of a WebM video in Chrome; a text file named .mp3 and a cut-off MP3, which must each get their message; dragging a handle and zooming; a second file that replaces the first only after you confirm; a two-hour MP3 cut by its times with the browser's audio decoder switched off, after one canceled download; and an MP3 export with no internet connection.

Last tested: November 22, 2026: the 16 engine tests, and the page tests in Chrome (10 tests), WebKit, the engine of Safari (9), and Firefox (9; the video test runs in Chrome only). Result: every test passed.

Known limits

A file above 2 GB is refused. To edit a file, the tool decodes all of it into memory, so before decoding it checks whether the decoded sound will fit. The limit is 1.2 GB of decoded samples, the size measured for this build in Chromium: 56 minutes 41 seconds of 44.1 kHz stereo, 52 minutes 5 seconds of 48 kHz stereo, and twice as long for mono. A longer file gets a message that gives the limit in minutes for that file, except an MP3, which still opens without a waveform or playback and can be cut by its times at original quality. If the browser's decoder fails, the message reads "This browser could not decode the audio. Try a smaller file or a different format."

One file is open at a time, and each download saves one part. The tool does not join files, split a file into many parts at once, change speed or pitch, or remove noise. Fades are chosen from Off, 0.5, 1, 2, 3 and 5 seconds. M4A and M4R are made only where the browser has an AAC encoder, and an M4R can be at most 30 seconds long. More than two channels are mixed to stereo. Saved files carry no tags: the title, artist and cover picture of your file are not copied into the result. A re-encoded MP3 starts with about 25 ms of silence that the encoder adds.

Not tested yet: phones in hand, and opening M4A, OGG and FLAC files (the engine tests read their headers in Node), raw AAC files and the sound of MP4 and MOV videos in a browser. The browser tests run the engines of Chrome, Firefox and Safari on a computer.

How to check that nothing is uploaded

You do not have to take this on trust. Three checks, from quickest to most thorough:

  1. Go offline. Load the tool, turn off Wi-Fi, then open a file and save an MP3. It works, which it could not do if the audio had to reach a server.
  2. Watch the network. Open your browser's developer tools, go to the Network tab and open a file. The page fetches its own files from soundtrimmer.app, including the MP3 encoder's .wasm file, which it also stores for offline use, and, if analytics is on, sends small requests to Google Analytics with the events listed on the privacy page. None contains your audio, its name or its tags.
  3. Read the security policy. Every page's Content-Security-Policy header tells the browser to block the page from sending data anywhere except soundtrimmer.app and Google Analytics.

Before each release, one test uses the tool offline, including an MP3 export, and another opens a file with a marker in its name and in its ID3 title tag while Google Analytics runs: the marker or a piece of the file's audio in any request fails the test. There is no session recording on this site. What Google Analytics receives is on the privacy page.