Video · 59 tools · nothing uploads

Convert audio

Change an audio file between MP3, WAV, FLAC, Ogg and M4A (AAC). In the browser only, like video-convert, because mediabunny decodes and encodes through WebCodecs, which Node has no equivalent of. Nothing is uploaded.

Input

Options

Convert audio re-encodes into MP3, WAV, FLAC, Ogg or M4A, mp3 by default, keeping the name and swapping the extension. A video track in the input is discarded, leaving sound alone. Quality is ignored for WAV and FLAC, and both the decode and the encode need WebCodecs, which Node lacks, so this one runs on the page.

Questions

What formats can it convert between?

Output is MP3, WAV, FLAC, Ogg or M4A, chosen with the format option, which defaults to mp3. On the way in it reads AAC, Opus, MP3, FLAC, Vorbis and PCM audio. You can also drop a video file: the video track is discarded and only the sound is written, which makes this a way to get audio out in a specific format.

Will converting lose quality?

It depends where you go. WAV and FLAC are lossless, so the quality setting is ignored for them, and a lossless source stays lossless. Any conversion into MP3, Ogg or M4A is a lossy encode, and converting from one lossy format to another stacks a second generation of loss on top of the first. Converting a lossy file to FLAC does not restore anything it already lost.

What does the quality option do?

It picks one of three presets, low, medium or high, with medium as the default, and hands that to the encoder. There is no bitrate field and no sample rate field. For WAV and FLAC it has no effect at all, since those formats carry the samples exactly.

What is my output file called?

Your file name with the new extension: song.wav becomes song.mp3 when the format is mp3. M4A output is an MP4 container holding AAC. The tool works per file, so drop a whole folder and each one comes back separately. A video file works as input too, because the video track is discarded and only the audio is written.

Why does it need a browser?

Because decoding and encoding both run through WebCodecs, which Node has no equivalent of. The command line and MCP surfaces refuse it with "audio-convert needs a browser (OffscreenCanvas). Use it at /video/audio-convert instead." On that page the work happens in a Web Worker and nothing is uploaded.

Why did it say it cannot convert my audio?

Either your browser cannot handle the codec, or the file has no audio track to convert. The error names the format you asked for and the reason the track was discarded, and it reads "no audio track found" when there was nothing to work with. A silent video file gives that second message.

Related Video tools

n→nNormalize audio volumeScale an audio (or video's audio track) so its loudest sample hits a target peak level: a two-pass peak scan followed by a gain-scaled re-encode, both through WebCodecs, so this runs in the browser only, like video-convert. Always outputs MP4 with an unchanged video track (if any).Runs on each file you dropn→1Trim or merge audioCut an audio file down to a start-end range, or concatenate two or more audio files one after another. A packet-level copy with no decoding, so this runs in Node, the CLI and MCP as well as the browser. Output is always an MP4 audio file (.m4a).Combines the files you dropn→nExtract audio from videoPull the audio track out of a video into its own MP4 audio file. A packet-level copy with no decoding or re-encoding, so this runs in Node, the CLI and MCP as well as the browser.Runs on each file you dropn→nMute videoDrop the audio track from a video, keeping the picture untouched. A packet-level copy of the video track only, no decoding, so this runs in Node, the CLI and MCP as well as the browser.Runs on each file you dropn→nReverse audioPlay an audio file (or a video's audio track) end to start, decoded to raw samples and re-encoded as WAV. WAV input decodes in Node, the CLI and MCP as well as the browser, the same PCM path audio-trim-merge's packet copy sits next to; AAC, MP3, Opus, FLAC and Vorbis need a browser.Runs on each file you dropn→nFade audio in or outRamp an audio file's (or a video's audio track's) volume up from silence at the start, down to silence at the end, or both, linear or logarithmic, decoded and re-encoded as WAV through the same PCM path as audio-reverse. WAV decodes everywhere; AAC, MP3, Opus, FLAC and Vorbis need a browser.Runs on each file you dropn→nConvert mono to stereo or backChange an audio file's (or a video's audio track's) channel count: average every channel down to mono, duplicate a mono track into identical left and right channels, or swap left and right, decoded and re-encoded as WAV through the same PCM path as audio-reverse. WAV decodes everywhere; other codecs need a browser.Runs on each file you dropn→nDraw a waveform imageDraw an audio file's (or a video's audio track's) peaks as a PNG, one column per pixel of width, decoded through the same PCM path as audio-reverse and drawn straight into a pixel buffer, the way font-preview rasterizes glyphs, with no canvas. WAV decodes everywhere; other codecs need a browser.Runs on each file you drop