About this tool
Preview and download Base64 audio data URLs.
The Base64 Audio Converter decodes a raw Base64 string or a `data:audio/…` URL back into the original audio file, plays it in the browser's built-in HTML5 audio player, and offers it back as a download. Decoding runs through a hand-written RFC 4648 lookup table rather than `atob()`, so the standard `+/` alphabet and the URL-safe `-_` variant are both accepted, and a truncated or mis-padded string is reported with the exact character position that broke it. The container is then identified from its magic bytes — RIFF/WAVE, ID3 or a bare MPEG frame sync, fLaC, OggS, FORM/AIFF, #!AMR, or an ftyp brand for M4A — and the WAV `fmt ` chunk, the first MPEG frame header or the FLAC STREAMINFO block is parsed to report sample rate, channels, bit depth, bitrate and duration. The file is rebuilt in the tab as a Blob, so nothing is ever uploaded.
Open Base64 Audio Converter on AltFTool — it loads instantly in your browser.
Paste your Base64 string or `data:audio/…` URL into the box — whitespace and line breaks are stripped automatically, and URL-safe Base64 is accepted.
Read the decoded panel: container and codec, MIME type, exact byte size, Base64 overhead, sample rate, channels, bit depth, bitrate and duration, plus any warnings about a mismatched MIME type.
Press play to hear it, Download audio to save it with the detected extension, or Copy data URL to get a cleaned-up standard-Base64 data URL.
The container is detected from the file signature, so a data URL that claims audio/wav while carrying MP3 bytes is flagged as a mismatch instead of silently trusted.
WAV duration is data-chunk bytes ÷ byte rate, FLAC duration comes from the 36-bit total-samples field in STREAMINFO, and MP3 figures are read from the first valid frame header after any ID3v2 tag.
A 4n+1 length, stray `=` padding, a percent-encoded data: URL or an out-of-alphabet character each produce a specific message — with the offending position — instead of a silent, empty player.
Decoding, format detection, playback and download all run in your browser. No upload, no account, no stored copy.
Paste the string — with or without the `data:audio/wav;base64,` prefix — name the download, and press Download audio. The tool turns every 4 Base64 characters into 3 bytes per RFC 4648, matches the leading bytes against the WAV, MP3, FLAC, OGG, M4A, AIFF and AMR signatures, and saves the file with the matching extension.
No — it runs one direction only: Base64 in, audio out. There is no file picker on this page, just a text box. For the opposite direction, use the Audio to Base64 tool, which reads a local audio file and produces the data URL.
Three causes account for almost all of it, and the tool names each one: the string is truncated (a Base64 length of 4n+1 characters cannot exist), the data: URL is percent-encoded rather than Base64, or the declared MIME type doesn't match the bytes — for example an MP3 labelled audio/wav. A fourth case is a valid Base64 string that simply isn't audio, which is reported as a missing audio signature.
Seven containers: WAV, MP3, FLAC, OGG, M4A, AIFF and AMR, all detected from their magic bytes rather than the MIME type. WAV, MP3 and FLAC also get a full header read-out (sample rate, channels, bit depth, bitrate, duration); OGG, M4A, AIFF and AMR play and download normally, but the duration row reads "not stored in this container".
About 33.3% before line breaks — every 3 bytes become 4 characters. A 3 MB MP3 lands near 4 MB of Base64, which is why embedding long audio in JSON or HTML is usually a bad trade. The Base64 length row shows the exact overhead percentage for the string you pasted.
12,000,000 characters, roughly 9 MB of decoded audio. Anything longer is rejected with a message that reports your string's actual length, because the decode runs on the page's main thread and a larger payload would cost seconds of frozen tab.
For WAV and FLAC, yes — WAV duration is the data-chunk size divided by the byte rate, and FLAC stores a 36-bit total-sample count that is divided by the sample rate. For MP3 the figure assumes a constant bitrate (audio bytes × 8 ÷ bitrate), so a VBR file can be off by a few percent; the tool labels that result as an estimate.
No. Base64 decoding, magic-byte detection, header parsing, playback and the download Blob all happen in your browser tab — the tool makes no network requests with your data. It's free, with no signup and no limit on how many strings you decode.
Add the Base64 Audio Converter widget to your blog or website — free, responsive, no signup. Just keep the “Widget by AltFTool” credit link visible.
<iframe src="https://www.altftool.com/embed/widget/base64-audio-converter"
title="Base64 Audio Converter — free AltFTool widget"
width="100%" height="640" style="border:0;border-radius:12px;overflow:hidden"
loading="lazy" referrerpolicy="no-referrer-when-downgrade" allow="clipboard-write"></iframe>
<p style="font-size:12px;margin:4px 0 0">Widget by <a href="https://www.altftool.com/tools/all/base64-audio-converter?utm_source=embed&utm_medium=widget" rel="nofollow">AltFTool — free online tools</a></p>