Skip to main content
Preparing workspace

Base64 Audio Converter

Paste Base64 or a data:audio URL to play it and download it as the MP3, WAV, OGG, FLAC or M4A it really is, or encode an audio file to Base64. No upload.

Still loading. If the tool doesn’t appear, reload this page.

About this tool

Base64 Audio Converter

Decode Base64 or a data:audio URL into a playable, downloadable MP3, WAV, OGG or FLAC file, or encode an audio file to Base64.

To convert Base64 to audio, paste the string (with or without data:audio/mpeg;base64,): it is decoded in your browser, the format is detected from its magic bytes — WAV, MP3, FLAC, OGG, M4A, AIFF or AMR — and you can play it and download it with the right extension. Switch to Audio → Base64 to encode a file the other way.

How to use Base64 Audio Converter

  1. On Base64 → Audio, paste your Base64 string or `data:audio/…` URL into the box (or switch to Audio → Base64 and pick a file to encode) — whitespace and line breaks are stripped automatically, and URL-safe Base64 is accepted.

  2. 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.

  3. 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.

Why use Base64 Audio Converter

  • Format read from the bytes, not the label

    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.

  • Real header parsing, not a guess

    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.

  • Errors that point at the problem

    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.

  • Nothing leaves the tab

    Decoding, format detection, playback and download all run in your browser. No upload, no account, no stored copy.

Common use cases

  • Check that the Base64 blob returned by a text-to-speech or telephony API is really a WAV or MP3 and not an error page that got encoded
  • Play a data:audio/mpeg URL copied out of a webhook log, JSON payload, CSS file or email source before shipping it
  • Pull a voice note out of a database export or chat backup that stored it as a Base64 field and save it as a real .wav or .mp3

Frequently asked questions

How do I convert a Base64 string back to an audio file?

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.

Link to answer
Can this tool convert an audio file into Base64?

Yes. Switch to Audio → Base64, pick a WAV, MP3, FLAC, OGG, M4A, AIFF or AMR file up to 9,000,000 bytes (about 8.6 MiB), and copy the result as a data URL, raw Base64 or an <audio> tag. The file is read in your browser, so it is not uploaded.

Link to answer
Why won't my Base64 audio play?

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.

Link to answer
Which audio formats does the Base64 converter recognise?

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".

Link to answer
How much bigger is audio once it's Base64-encoded?

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.

Link to answer
What's the longest Base64 string it will decode?

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.

Link to answer
Is my audio uploaded or stored anywhere?

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. There is no signup and no limit on how many strings you decode.

Link to answer

Embed this tool on your site

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>

Browse all embeddable widgets →