Image To Base64 | Base64 Encode | Base64 Converter - Base64.Guru

Comments (52)

I hope you enjoy this discussion. In any case, I ask you to join it.

  • Emil, 28 june 2020 at 20:08 # Hey Amigos ...Id like to convert a list of urls image to base64...how can I do that?...I have urls in a .csv reply
    • DavidDuckwitz, 30 june 2020 at 16:19 #↑ Hey Emil.I would create a small php script with a foreach loop over the .csv file and convert the images on the fly to base64 and save it in a text file, for example.If you need help with it, feel free to ask. just google for my personal website davidduckwitz dot de... reply
    • Nicolás_messineo, 14 september 2021 at 20:06 #↑ Cada ves que quiero copiar el código base64 de una imagen me aparece lo siguiente "error al copiar al portapapeles" no sé que será y me gustaría que me ayudarás así poder arreglar ese problema y que me deje copiar el código base64 de una imagen reply
    • Helper, 13 december 2023 at 14:21 #↑ convert the scv to image and then upload the image here reply
    • Guardiandental, 16 september 2025 at 21:58 #↑ you Gemini pro reply
  • elanioazul, 10 september 2020 at 12:07 # Hi David,Perhaps you can give me some direction!I want to extract from javascript (using btoa method?) a base64 code contained in a xml se:InlineContent element. It looks like:<se:InlineContent encoding="base64"> your plain text output</se:InlineContent>I wonder:- did I locate correctly your plain text output?- is the plain text the value of the encoding attribute?- how can I take the plain text output and bring it to a varaible in javascript? I have done this but it doesnt work: const stringFromBase64 = inlineContent.$['encoding']Thx reply
  • mayank, 17 september 2020 at 23:42 # I can't convert https://static.vecteezy.com/system/resources/previews/000/206/117/original/vector-landscape-illustration.jpg it says an error reply
    • Administrator, 19 september 2020 at 21:43 #↑ This is because that server doesn't allow HTTP requests made by "non-humans". You have to download the image on your device, then encode it to Base64 using the "Local File" option. reply
  • Ragavan, 20 september 2020 at 09:53 # Hello guys, I need to send my username, email, and image(base64Value) in Form of the post method. something like this<Form action="" method="post"><input type="text" name="username" placeholder="username"><input type="text" name="email" placeholder="email"></form>in this form I also need to send an image of base64 format...the thing is I don't want to upload image from my local system, but I have to capture image from my webcam at realtime and need to send...someone please help me. reply
    • Administrator, 20 september 2020 at 10:03 #↑ Hi! You have to use navigator.mediaDevices. reply
  • Pete, 26 september 2020 at 03:49 # I am unable to select a local file from my computer. I select Local File in the Datatype box but there is no file selection popping up and if I try and type the address string in the box, it won't take it. It gives a pink error saying:"You must select the "Local File", but it gives me no facility to do so. reply
    • Administrator, 26 september 2020 at 04:11 #↑ Hello Pete! Thank you for your message. Please note that the Datatype box just toggles input fields, but you have to click the "Browse" button in order to choose a local file. Are you sure that it doesn't work this way? If so, can you please confirm that there is no "Browse" button next to "Local File" label? Also, do you see the "Choose a file or drag and drop it here" message next to it? By the way, what is your browser version and operating system? reply
      • Pete, 26 september 2020 at 05:11 #↑ I just tried it again and now it pops up a "Choose File" button which works fine. There was no sign of a "Browse" button... It did not do that when I tried it previously. It does the job very well, thank you. If I could suggest ONE option: Could you "format" the Base64 into say, 80 character lines so it doesn't get pasted into one huge line on the web page? This could be a useful option and would save having to go through, chopping the immense string into more manageable chunks.Browser version is Edge latest and OS is win 10 Pro fully updated.Cheers,Pete. reply
        • Administrator, 29 september 2020 at 19:11 #↑ Hello Pete! Thank you for details and suggestion. I can implement a such option, but first of all I want to know what "Output Format" do you need.By the way, if you need it as "Plain text" or "Data URI", please take a look at the Base64 Encoder. It allows you to specify the Base64 Standard, so you can choose the MIME standard and the output will be splitted into fixed 76 line-length. reply
          • Pete, 30 september 2020 at 02:30 #↑ Thanks very much for your response. I had missed the 76 character split option and it meets my needs exactly. I only need this facility about half-a-dozen times a year, but I have bookmarked your page. Cheers,Pete. reply
            • Administrator, 30 september 2020 at 06:14 #↑ Thank you very much for sharing your experience. I'm glad you found what you were looking for.Best wishes,Victor reply
  • mia, 25 november 2020 at 18:42 # hij, i converted a picture to base64 and filled it into my programm. I overwritten the actual base64-code. But it doesn´t work. If i copy back the old one, it works again. The code created isn´t in rows, just one row. Maybe that´s the problem. But how to i get the rows, if i copy it from here?[UPDATED: 25 november 2020 at 18:45]So i need nice rows (justified text). But how do i get them?[UPDATED: 25 november 2020 at 19:05]oh, my bad. I had to use the correct imgage-quality for the picture. reply
  • Loksa, 18 march 2021 at 04:32 # Im trying to convert image url using base64_encode in php, Try to bypass ssl using verify peer false but still cannot get content, somehow, it success in your website. How you convert it? Thanks reply
    • Administrator, 21 march 2021 at 23:13 #↑ If you understand all the risks, make sure you set both CURLOPT_SSL_VERIFYHOST and CURLOPT_SSL_VERIFYPEER to 0 (zero). reply
  • atika, 1 june 2021 at 19:27 # converte image reply
  • Graig, 10 june 2021 at 17:28 # Very energetic blog, I loved that bit. Will there be a part 2? reply
  • Kenny, 14 june 2021 at 09:24 # Hello, will you integrate this tool to Integromat? I definitely need this reply
  • compressjpg, 8 july 2021 at 06:39 # Can you tell me the difference between blob URL and base64 URL of an Image? I really need this for my project reply
  • MaaviaAnwar, 9 july 2021 at 04:44 # Cant copy to clipboard reply
  • Brian, 31 august 2021 at 18:13 # Hello, I'm trying to figure out how an image of .HEIC should be setup. ive tried <img alt="" src="data:image/heic;base64,mybase64img" /> any suggestions? reply
    • Administrator, 6 september 2021 at 13:37 #↑ Hello Brian! According to caniuse.com/heif, none of the popular web browsers support HEIC and this is why you cannot preview it in your browser. reply
  • Devin, 8 september 2021 at 09:08 # https://lollylist-demo.s3.us-west-2.amazonaws.com/e6cfecb95ca0e020044c78124f5c1945a81d1f317777b7e1ae5d120ddc11f35f.devin-Vostro-3578.jpgand it says • Wrong file type (received “application” while waiting for “image”). Anyway, do not worry, you still got a properly result and this warning is not related to the data encoding.anyways decoding the outputput I was able to view the image! What happened there? reply
  • eyeexpog, 19 september 2021 at 17:43 # hello, how can i solve this problem with this page showing? eyeg reply
  • Tre, 21 september 2021 at 14:05 # I want to take a directory of images, convert to base64 and send output to XML files. Want to do this in batch mode. Preferably Java but ok if other. reply
  • lon233bcc, 23 september 2021 at 12:21 # what is the process of encoding a image into base64?how exactly does it work?? reply
  • Zx123456, 23 october 2021 at 21:18 # 1.6.0 (15522)No protection169.30M15522com.tencent.ig/data/user/0/com.tencent.ig/data/app/com.tencent.ig-Jg89O1T2LjgUxm3dXn0BQg==/base.apk12759APK pathUIDInstalled versionProtection reply
  • dursch69, 27 january 2022 at 21:46 # Markdown format would be nice:![altname](data:image/png;base64,$base64$) reply
  • ruphus42, 4 february 2022 at 00:04 # Thank you very much for this great tool. reply
  • Sas, 7 may 2022 at 20:34 # Hi David,Instead of buying you a cup of coffee — I'll be happy to buy you a WHOLE POT OF COFFEE if you can send me the actual code you've written. It does exactly what I need to do with a little project I'm working on for a not-for-profit org. Please let me know if you are interested in helping out.Thanks,Sas reply
  • Mac_McMeans, 16 november 2023 at 17:57 # Very nice online tool! Could you please implement an AVIF converter? reply
  • ThaiCohortStudy, 21 november 2023 at 17:24 # Magic! Thank you so much. Will definitely share this! reply
  • Christophe, 27 november 2023 at 14:39 # Hi,I'm using base64 code to insert image in a html page. BUT, what I'm facing is strange. There are characters that cause an issue when saving the html page. Issue : "This email message cannot contain the following words/terms..."Is there a way to change the forbidden characters by others ? Or is it possible to generate base64 code without forbidden terms ?Thanks in advance for your replies.Kind regards,Chris reply
  • nqhXncMU, 6 january 2024 at 16:57 # m1RtBQ8D')) OR 761=(SELECT 761 FROM PG_SLEEP(15))-- reply
  • tomy, 9 february 2024 at 01:03 # Yes protection reply
  • ducky, 15 february 2024 at 11:33 # I love this website! reply
  • Antonio_reyna, 21 may 2024 at 03:56 # witch format can be read by Gmail, can get gmail ti show email signatura with image.. reply
  • Prateek_Gupta, 23 june 2024 at 19:24 # Hy im getting multiple base64 values from frontend in an array and im sending it in Json Object , and im using java as a backend , so my problem is when im getting all that list of base64 from json object and try to split it it gives error because im having comma saperated value , and that value is so long , i have to save all at once in a loop in a directory as an image and in oracle database as base64 Blob, tell me a better way to do this please without compromising server speed. reply
  • hehe, 7 july 2024 at 18:30 # hehe - huhu :) reply
  • poo, 20 december 2024 at 01:00 # Bad smell similar to Joe Biden reply
  • Daniel, 26 may 2025 at 17:25 # Very Good, excelent reply
  • Olaf, 13 august 2025 at 11:10 # Love your service! You help me so much converting in Base64 in very short time. Awesome! reply
    • aaa, 27 august 2025 at 01:19 #↑ me too i love this reply
  • Manimaran, 26 august 2025 at 13:25 # I uploaded an image larger than 1MB to convert to base64. However, whenever I try to copy the entire base64 string, Chrome crashes and closes all tabs. reply
  • EMailTerra, 5 december 2025 at 18:34 # love it reply
  • Sipho, 17 december 2025 at 09:40 # I'm still yet to review, if it works for what I want to do, then I can rate you Excellent reply
  • Roma, 25 december 2025 at 14:53 # Leaving my mark on history reply
  • Mazo, 28 december 2025 at 11:29 # Thanks for your help, it is very useful reply

Tag » Code Base64 Image