I want to convert MP3 file which is less than 10 MB to a Base64 encoded string. I can only find image converters.
Can anybody suggest me an online tool which will do this?
In JavaScript there are two functions respectively for decoding and encoding Base64 strings: btoa() : creates a Base64-encoded ASCII string from a "string" of binary data ("btoa" should be read as "binary to ASCII"). atob() : decodes a Base64-encoded string ("atob" should be read as "ASCII to binary").
Convert Files to Base64Just select your file or drag & drop it below, press the Convert to Base64 button, and you'll get a base64 string. Press a button – get base64. No ads, nonsense, or garbage. The input file can also be an mp3 or mp4.
To decode a file with contents that are base64 encoded, you simply provide the path of the file with the --decode flag. As with encoding files, the output will be a very long string of the original file. You may want to output stdout directly to a file.
Look for "binary to base64" or "file to base64". For example, this tool.
Then precede raw base64 result with data:audio/mpeg;base64,
Use Notepad++, first select the entire file (CTRL+A)) and then use the Base64 Encode option under the plugins menu:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With