A virtual teacher who reveals to you the great secrets of Base64

Base64 to PNG

Convert Base64 to PNG online using a free decoding tool that allows you to decode Base64 as PNG image and preview it directly in the browser. By and large, the “Base64 to PNG” converter is similar to Base64 to Image, except that it this one forces the MIME type to be “image/png”. If you are looking for the reverse process, check PNG to Base64.


How to convert Base64 to PNG online

  1. Paste your string in the “Base64” field.
  2. Press the “Decode Base64 to PNG” button.
  3. Click on the filename link to download the PNG image.

Important notes about the decoder

The “Base64 to PNG” converter will force the decoding result to be displayed as a PNG image, even if it is a different file type. Therefore, if you are not sure that your Base64 string is PNG image, use the Base64 to file converter since it is capable of displaying various file types. In any case, feel free to give it a try, since this converter will inform you if something is wrong.

About PNG

  • Name: Portable Network Graphics
  • Developer: PNG Development Group
  • MIME types: image/png
  • File Extensions: .png
  • Uniform Type Identifier: public.png
  • Type of Format: Lossless bitmap image
Comments (25)

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

  • TerryCorbet,
    Thank you very much for providing this as a free service. I have a brother who sent out a broadcast email that includes his "signature" file. It is a small black-on-white representation of his name signed with a pen. He authored it using a recent version of Photoshop on a Mac, but mistakenly saved out of that process a 6MB tiff file.

    I don't have broadband, just a DSL ISP, so it took a couple of minutes for the cut-n-pasted Base64 string to make its way to your site. The software performed the transcription/encoding and let me download a conformant .png file which IrfanView easily condensed into about 75KB. Cup of coffee is on its way.
    • Administrator,
      Thank you Terry for your support! I'm glad you found the solution to your task here.
  • balasaheb,
    Hi,
    I have base 64 string and trying to decode it to an image on your site. Somehow I am not able to see its preview - it gives an error while rendering it on browser .However it gives the downloadable attachment. Could you please let me know what could be the reason?
    • Administrator,
      This can happen for several reasons, but most likely your data is damaged or your browser does not support the image format.
  • tamar,
    i successfully decoded my graph in png format with base64 but the image did not show on my browser(opera,firefox and chrome any help
    • kumar,
      you check in downloads if u click the link in previw info then click the link and you can able to see downloads
  • Julio,
    Dear Victor...

    PNG files can contain multiple images. Yet I can only see the first image. How can I see the other images?
    • Administrator,
      Hello Julio! PNG cannot contain multiple images. You may be referring to APNG, which can store multiple "images" like GIF. If so, perhaps the problem is due your browser, not Base64. Therefore, try to decode your string using another browser.
  • GFW,
    Hi, it is a great tool and I wonder is there a software available for this cool feature?
    Just for offline use, thank you!
  • N_vai,
    Hello! I have the following base64code: iVBORw0KGgoAAAANSUhEUgAAAUAAAADwCAYAAABxLb1rAAAgAElEQVR4Xu2dCdxOZf7/r1TUIBrLJJIwlkqbSsXQZkuIRlOSsiRFJNUw0xCV7FuSRpZmkmgGmQYja0MUMZNMFMmSIiYNxpb69/7+5/Z7Eo97Oefc577P5/t63a9mHve5znXe13k+z7V8l5O++96cTAREQAQiSOAkCWAER12PLAIiYAQkgHoRREAE
    When I run this decoder I get an image that I can not open. Do you maybe know what the problem is here?
    • blah,
      Are you referring to the white png image?
    • wasim,
      The base64 encoded string that you provided decodes to an image in PNG format. However, it is possible that the decoded image is corrupted or incomplete, which could explain why you are having difficulty opening it.

      One possibility is that there was an issue with the encoding or decoding process. To rule this out, you could try decoding the base64 string again with a different decoder tool, or try encoding a different image to base64 and decoding it to see if the issue persists.

      Another possibility is that there was an issue with the image file itself prior to encoding. You could try obtaining the original image file and verifying that it is not corrupted or incomplete.

      If none of these solutions work, it may be helpful to provide more information about the specific error or issue you are encountering when trying to open the decoded image.
  • Scratch_coder,
    i have been trying to understand how it works. so i have seen many wiki sites about this encode/decode but no one explained me how a pixel gets its information in base64. so i know base64 converts in binary and binary converts in to png but i want to know the part ho tf it converts banary in png or how does a pixel/png Chunk know its color from 1 and 0. how pls explain and dont say just use java to encode, cuz i want to know how it works on all stages. pls HELP
  • hunt,
    do you know how I can obtain this information from an image file?

    RedMatrixColumn:
    BlueMatrixColumn:
    GreenMatrixColumn:
    RedTRC:
    GreenTRC:
    BlueTRC:
    ChromaticityChannels:
    ChromaticityColorant:
    ChromaticityChannel1:
    ChromaticityChannel2:
    ChromaticityChannel3:


    Along with other similar information?
  • Josedavidpc310,
    It works fine
  • Don,
    I copied the base64 text into your converter an it gave me an image with the details. I then copied the code on the Base64 to Image link and I get an error Base64 value is not a valid image". My data has data:image/png;base64," if I remove this, the error does not appear and a files is created which is a black rectangle. Could you please point me in the right direction.
    Regards,
    Don Crago
  • argani,
    Definitely will keep coming back to this site <3
  • Gokturk_Ucoluk,
    Thank you for this service. Proper job :-)
  • bru,
    Niceeeeeee
  • tony,
    Very good place love it’s for sure I back ??
  • nqhXncMU,
    555*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15)
  • nqhXncMU,
    0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
  • Test,
    <script>alert('chuj w dupę Łodzi, tej kurwie nic nie zaszkodzi!'</script>
  • sexy_mama,
    hat bharwa
Add new comment

If you have any questions, remarks, need help, or just like this page, please feel free to let me know by leaving a comment using the form bellow.
I will be happy to read every comment and, if necessary, I will do my best to respond as quickly as possible. Of course, spammers are welcome only as readers.