Browser-based audio tool · WAV, M4A, FLAC, Ogg, MP4 → MP3

Audio to MP3 Converter

Drop one file or a whole folder of recordings, pick a bit rate, and get MP3s with an optional title and artist tag. Decoding and encoding both happen in this browser tab, so nothing is uploaded.

Files

Up to 40 files per batch. Audio up to 1 GB each, video up to 1.5 GB, and at most 60 minutes of 48 kHz stereo once decoded.

Drop audio or video files here, or click to choose

.wav, .m4a, .aac, .flac, .ogg, .opus, .webm, .mp4, .mov and more. Video files give their soundtrack.

No files yet.

MP3 settings

Constant bit rate, encoded by LAME in a background thread.

If a file has a sample rate under 32 kHz, MP3 allows at most 160 kbps (and 64 kbps under 16 kHz), so that file is encoded at the highest rate its format allows.

Channels

Mono averages the channels and roughly halves the file at the same quality. Stereo doubles a mono source. 5.1 sources are folded down to stereo.

Download

Converted files appear in the list on the left.

Files are decoded by your browser, so anything it cannot play (WMA, AMR, AC-3 or DTS audio, most AIFF) is reported with the reason instead of being converted. Re-encoding a lossy file such as an old MP3 or AAC adds a second round of compression loss; start from WAV or FLAC when you have it.

Audio to MP3 Converter

Operator: Abdulla Al Fahad. How tools are built and checked

A phone voice memo that arrives as M4A, a FLAC rip a car stereo will not read, a screen recording whose soundtrack you want as a podcast file: all of these end up needing an MP3. This page decodes each file you give it with the browser's own audio decoder, then hands the samples to the LAME encoder (a pure-JavaScript port, @breezystack/lamejs) running in a Web Worker. You choose a constant bit rate from 64 to 320 kbps, mono or stereo, and the result is a plain MP3 that plays everywhere.

The Extract Audio from Video page on this site writes WAV only and Audio Cutter trims one file at a time; this one exists for the step after both, turning whatever you have into compact MP3s in bulk. It is built for batches. Drop up to 40 files, convert them one after another, listen to each result in the list, and download them singly or as one ZIP. If you fill in the title and artist boxes, the page writes an ID3v2.3 tag in front of the audio so players show the name instead of a file name.

Key features

  • Batch of up to 40 audio or video files, converted sequentially with a per-file progress bar and an overall bar
  • Bit rate presets 64, 96, 112, 128, 160, 192, 224, 256 and 320 kbps, constant bit rate
  • Channels: like the source, mono or stereo, with a 5.1 to stereo fold-down
  • Optional ID3v2.3 title and artist, with a switch to use each file's own name as its title
  • Encoding in a Web Worker, so the page keeps responding and Cancel stops the job at once
  • Per-file audio player and download, plus one ZIP of everything finished

Bit rate ceilings, sample rates and the ID3 tag

Inputs are whatever your browser can decode. Chrome, Edge and Firefox open WAV, MP3, M4A and AAC, FLAC, Ogg Vorbis, Ogg Opus and WebM Opus; Safari opens most of those, with Opus only in recent versions. Video files work too when the browser can play their audio track: MP4 and MOV with AAC, WebM with Opus or Vorbis. WMA, AMR, AC-3, DTS and most AIFF files are refused with the codec named, because no browser decodes them.

Sample rate is kept when MP3 allows it. The format carries 8, 11.025, 12, 16, 22.05, 24, 32, 44.1 and 48 kHz. A file at one of those rates is decoded at that rate. Anything else is resampled by the browser's decoder: 88.2 kHz and 176.4 kHz go to 44.1 kHz, other higher rates go to 48 kHz, and an odd lower rate goes to the nearest supported one. The list shows the rate each MP3 ended up at.

Bit rate has a ceiling that depends on the sample rate, a rule of the MPEG layer III standard rather than of this page. At 32 kHz and above (MPEG-1) the top is 320 kbps; from 16 to 24 kHz (MPEG-2) it is 160 kbps; below 16 kHz (MPEG-2.5) it is 64 kbps. If you ask for 256 kbps and a file is 22.05 kHz, that file is written at 160 kbps and its line in the list shows 160.

Channels can follow the source, be forced to mono (all channels averaged) or be forced to stereo. A mono source in stereo mode is duplicated into two identical channels, which doubles the size for no gain. A 5.1 source is folded down to stereo with the usual weights: centre and each surround at -3 dB, LFE dropped, and the sum scaled by 1 / (1 + 2 x 0.707) so a loud scene cannot clip. Other layouts with more than two channels keep their first two.

Limits: audio files up to 1 GB, video files up to 1.5 GB, and at most 60 minutes of 48 kHz stereo once decoded, which is about 1.29 GiB of 32-bit float samples. A file over the cap is refused before the heavy work starts, using the duration the browser reports and the channel count in the header, with a message that says how long a file the cap allows at that rate.

The ID3 tag is ID3v2.3, which is the version nearly every player, phone and car head unit reads. Title (TIT2) and artist (TPE1) are written as text frames, and a frame is left out when its box is empty. Text that is entirely within Latin-1 is stored as ISO-8859-1; anything else, such as Cyrillic, Arabic or Japanese, is stored as UTF-16 with a byte-order mark so it displays correctly. Each box takes up to 200 characters and control characters become spaces.

How it works

Each file is read into memory and its header is inspected to find the sample rate and channel count. The browser then decodes it through an OfflineAudioContext created at the target rate, which is how the resampling is done without a separate step. The decoded float channels are shaped to mono or stereo, copied, and transferred to a fresh worker.

In the worker the samples are clamped to plus or minus 1 and converted to 16-bit integers (negative values scaled by 32768, positive by 32767), then fed to LAME in blocks of 18,432 samples per channel, which is 16 MPEG frames of 1,152. LAME returns MP3 frames; the worker gathers them, flushes the encoder's last partial frame and sends one array back. A progress message goes out roughly every 1% so the bar moves.

The tag, if any, is built on the main thread and placed in front of the frames in a Blob of type audio/mpeg. Cancel terminates the worker; nothing in it needs cleaning up. Because the bit rate is constant, file size is predictable: seconds x kbps x 1000 / 8 bytes, plus the tag and a few hundred bytes at the end.

Common use cases

  • Turning a folder of iPhone voice memos (M4A) into MP3s for an editor or a transcription service that only accepts MP3
  • Preparing FLAC or WAV masters as 320 kbps MP3s for a client who wants a listening copy
  • Taking the soundtrack out of a meeting recording or lecture video as a 64 kbps mono MP3 that is small enough to email
  • Giving a set of audiobook chapters proper titles and an artist so they sort and display correctly on a car stereo
  • Making an MP3 version of a sound effect or jingle for a platform that does not take WAV

How to use this tool

  1. Drop audio or video files onto the box, or click it to choose several at once.
  2. Pick a bit rate. 192 kbps is the default; 64 to 96 is enough for speech, 320 is the top of the format.
  3. Choose Like source, Mono or Stereo for the channels.
  4. Optionally type a title and artist, or tick the box that uses each file name as the title.
  5. Click Convert. Watch the list: each file moves from waiting to decoding to encoding to done.
  6. Play any result in its row, download it, or take Download all as ZIP when two or more are finished.

Example

A 3:00 stereo WAV at 44.1 kHz, converted at 192 kbps with title Interview 04 and artist Dana Reyes

Source        interview.wav, 44,100 Hz, 2 channels, 16-bit
              180 s x 44,100 x 2 x 2 bytes = 31,752,000 bytes
Bit rate      192 kbps, channels like the source
Title tag     Interview 04
Artist tag    Dana Reyes

Resulting MP3

interview.mp3, 44.1 kHz stereo, 192 kbps
Frames        180 s x 192,000 / 8 = 4,320,000 bytes, give or take the last frame
Tag           10-byte header + TIT2 (10 + 1 + 12 + 1 = 24) + TPE1 (10 + 1 + 10 + 1 = 22) = 56 bytes
Total         about 4.32 MB, roughly 14% of the WAV
At 64 kbps mono the same recording would be about 1.44 MB.

Tips for best results

  • Speech needs far less than music. A mono recording of one person at 64 kbps sounds fine and is under 0.5 MB per minute, whereas 192 kbps stereo is about 1.4 MB per minute.
  • Start from the best copy you have. Encoding an existing MP3 or AAC again adds a second round of lossy compression, so a WAV or FLAC master gives a cleaner result than an MP3 of it.
  • Keep stereo for music where the left and right channels differ. For a podcast or a phone call, mono at the same bit rate spends all of the bits on one signal instead of two near-identical ones, so a voice usually sounds cleaner than in stereo.
  • Use the file-name-as-title option when each file is already named for its content, such as 03-chapter-three.m4a. Type a title instead when every file should carry the same one.
  • For a long batch, leave the tab open and visible. Decoding runs on the page's main thread, and browsers slow background tabs, so a batch can take noticeably longer when the tab is hidden.

Edge cases to watch

Constant bit rate only. There is no variable-rate (V0 to V9) mode, so a quiet recording is not made smaller than a loud one at the same setting.

No gapless or Xing/LAME header is written. Players show the right length for constant-rate files, but gapless playback across album tracks may have a tiny gap at each join.

Existing tags and cover art are not carried over. The file is rebuilt from decoded samples, so only the title and artist you type are written.

A file the browser cannot decode produces an error on its own row and the rest of the batch carries on. The message names the codec when the header reveals it.

Very large decoded files can run a phone out of memory even when they are under the cap. If a long file fails on mobile, try it on a desktop browser or split it first.

Common errors and how to fix them

"This browser could not decode ..." on a WMA, AMR or AC-3 file
Browsers do not ship decoders for these codecs. Convert the file to WAV, FLAC or M4A in another program first, then bring it here.
A video returns "could not decode the soundtrack"
The video may have no audio, or it uses AC-3, DTS or another codec browsers lack. An MP4 with AAC audio or a WebM with Opus always works.
The row says 160 kbps although you chose 256 or 320
The source is below 32 kHz, where MP3 tops out at 160 kbps (and 64 kbps below 16 kHz). This is a limit of the format, not a setting you can change.
"Decoded, this audio would take ... GB of memory"
The file is longer than 60 minutes of 48 kHz stereo once decoded. Split it into parts with the audio cutter, then convert the parts.

Best practices

  • Run one file first at your chosen settings and play it before queueing fifty.
  • Name sources sensibly before converting; output names are the same stem with .mp3, and duplicates get -2, -3 suffixes.
  • Use 128 kbps as the lowest music setting people rarely notice, and 192 kbps when the files will be listened to on good headphones.
  • Pick 128 kbps mono for spoken-word files and 192 kbps stereo or higher for music: at 128 kbps mono a one-hour interview is about 58 MB, where the same hour at 192 kbps stereo is about 86 MB for no audible gain on a single voice.

Why an encoder runs in a worker

MP3 encoding is a tight numeric loop. Run on the page's own thread, it would freeze scrolling and button presses for as long as it takes, which for an hour of audio is tens of seconds. A Web Worker moves that loop to a separate thread, so the progress bar animates, Cancel works the moment you click it, and you can scroll the list while the next file converts.

The worker is created per file and terminated when the file finishes or is cancelled, which releases the encoder's internal buffers. Samples are copied before being transferred, so the decoded audio stays valid in the page while the worker owns its own copy.

What leaves the tab

Nothing. The file is read by the browser, decoded by the browser, and encoded by a script running in your own tab. Each finished MP3 is a blob: link that only this open page can use, released when you remove the file or leave. The page makes no upload request and has no server component that could receive audio.

Frequently asked questions

Which bit rate should I choose?

For speech, 64 kbps mono is clear and small. For music, 128 kbps is the usual floor, 192 kbps is a safe default and 320 kbps is the largest the format allows. Higher than 192 kbps rarely gives an audible gain on ordinary equipment.

Can I convert a video to MP3?

Yes, if your browser can play the video's audio track. MP4 and MOV files with AAC audio and WebM files with Opus or Vorbis work. The page reads the soundtrack and ignores the picture.

Why does the tag show strange characters in some players?

Players that only understand ID3v1 or old Latin-1 readers can garble non-Latin text. The page stores such text as UTF-16, which every ID3v2.3 reader supports, but a very old device may still not display it.

How big will my MP3 be?

Multiply the length in seconds by the bit rate in kbps and by 125 to get bytes. A 10-minute file at 128 kbps is 600 x 128 x 125 = 9,600,000 bytes, about 9.6 MB, because the rate is constant.