Compress Audio in the Browser: Shrink an MP3 or WAV Without Uploading It
Full disclosure: I work on OnePassApps. A voice note, a podcast intro or a screen recording usually leaves you with a file bigger than it needs to be. The usual fix is to upload it to an online converter and download th
Full disclosure: I work on OnePassApps.
A voice note, a podcast intro or a screen recording usually leaves you with a file bigger than it needs to be. The usual fix is to upload it to an online converter and download the result, which means your recording sat on somebody else's server on the way. Audio Studio in OnePassApps does the same job inside the browser tab: the file is decoded and re-encoded locally, and the copy you save is built on your own machine.
Audio Studio has four tools - Convert, Compress, Trim and Extract. This one is about Compress.
What the Compress tool does
You drop one audio file on the stage and the tool checks it before anything else happens. The source hint is the limit: MP3, WAV, M4A, AAC, OGG, Opus, FLAC or WebM - up to 32 MiB and 45 minutes.
The Options step fills in once the file has been checked, and the panel says so plainly: Format, bitrate, sample rate and channels appear here once the file has been checked.
- Output format - WebM audio (Opus) was the default for the file I tested with. The result step describes what you can get: An Opus, AAC or MP3 copy when this browser can encode one, with the real size change.
- Target bitrate - 128 kbps by default, with the trade-off spelled out: Only bitrates this browser can encode for these settings are listed. Lower bitrates reduce fidelity.
- Sample rate and Channels - carried over from the source file, 44,100 Hz and Mono in my run.
The action button is not called "Compress". It reads Try smaller-file output, which is a fair description of what it does.
A real run
I dropped a 2-second WAV tone into the tool in the browser and pressed that button:
- Source:
tone.wav, 0:02.0, Mono, 44.1 kHz, PCM-S16, 172 KiB - Output:
tone-compressed.webm, 0:02.0, WebM Opus, 44,100 Hz, Mono, 32.9 KiB - Size change: 139 KiB smaller (80.9%), created in 0.3 s
The result step shows the source and the output side by side with a Download WebM button, and the line Output created locally. Your original file remains unchanged. Your original file on disk is never touched - you get a new copy.
The panel is also careful about what it promises: The comparison uses the actual output bytes; short or already compressed audio may not get smaller. That is worth taking seriously. A file that is already an MP3 at a low bitrate may come back about the same size, and the tool reports the real change either way rather than a flattering number.
Why run it in the browser
The copy is made from bytes already on your machine. Nothing is uploaded, nothing is queued on a server, and there is no file left on a third party's disk afterwards. The browser does the encoding work, and the file comes out the moment the run finishes.
For a phone recording, a long interview or a screen capture that has to fit in a message, that is the whole job: one file in, a smaller file out, without handing the audio to anyone else.
Standard is currently free during a promotional period: $0 per month, 100,000 credits every 30 days, no card required. The Studios run in the browser tab and use no credits, and the result lives in the tab, so export it before you leave.
Try it on your own file: open Audio Studio.
If you want the wider picture on how these browser-local tools work and what they do not do, the OnePassApps guides cover it.
OnePassApps Team - we build app.onepassapps.com, one membership for nine browser-local and hosted apps.
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.