Base64 to Image
Convert Base64 to image online using a free decoding tool which allows you to decode Base64 as image and preview it directly in the browser. In addition, you will receive some basic information about this image (resolution, MIME type, extension, size). And, of course, you will have a special link to download the image to your device. If you are looking for the reverse process, check Image to Base64.
Important notes about the decoder
The “Base64 to Image” converter will force the decoding result to be displayed as an image, even if it is a different file type. Therefore, if you are not sure that your Base64 string is an 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.
Additional decoders
If you want to decode a Base64 string as a specific image format, check the following decoders:
Comments (21)
I hope you enjoy this discussion. In any case, I ask you to join it.
Can you send me, the code to make this in python? I'm trying to use:
image_code = base64.decodestring(b64_string)
with open(filename, 'wb') as f:
f.write(image_code)
But it does not return an image, only data type archive.
image_code = base64.b64decode(b64_string.replace("\n",""))
with open(filename, 'wb') as f:
f.write(image_code )
Tor compatible, too.
'''36d6+c71f+0d93+8206+a73c+768a+dc2d+25dY='''
Please reply and answer this
0xFFD8FFE000104A46494600010001004800480000FFFE001F4C45414420546563686E6F6C6F6769657320496E632E2056312E303100FFDB0084000404040705070C07070C0C0808080C0C0B0B0B0B0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C010507070907090B07070B0C0B090B0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0CFFC401A20000010501010101010100000000000000000102030405060708090A0B0100030101010101010101010000000000000102030405060708090A0B100002010303020403050504040000017D01020300041105122131410613516107227114328191A1082342B1C11552D1F02433627282090A161718191A25262728292A3435363738393A434445464748494A535455565758595A636465666768696A737475767778797A838485868788898A92939495969798999AA2A3A4A5A6A7A8A9AAB2B3B4B5B6B7B8B9BAC2C3C4C5C6C7C8C9CAD2D3D4D5D6D7D8D9DAE1E2E3E4E5E6E7E8E9EAF1F2F3F4F5F6F7F8F9FA1100020102040403040705040400010277000102031104052131061241510761711322328108144291A1B1C109233352F0156272D10A162434E125F11718191A262728292A35363738393A434445464748494A535455565758595A636465666768696A737475767778797A82838485868788898A92939495969798999AA2A3A4A5A6A7A8A9AAB2B3B4B5B6B7B8B9BAC2C3C4C5C6C7C8C9CAD2D3D4D5D6D7D8D9DAE2E3E4E5E6E7E8E9EAF2F3F4F5F6F7F8F9FAFFC0001108008000C003011100021101031101FFDA000C03010002110311003F00F8C5623F4C67AF4E2B92C6F72B48CA8705971FEF2FF434582E344F1FF7939FF687F8D1CAFB315D122CA9D88C0FC68B3ECC77264910F71CF6C7F2A2CFB315C7CCBB800A48071D8FB6781D71C91CF4C6714ACD740BA45A4B790264AB003B9461919EBC8E9472B5D02E34803BE3D327B76EC3A77A76FEAC2B8FFB34847CAA483E83FC8EB459F615D0E5B494119472030CE010719E4025580CFA90D8F43D28E57D3F20E65DC4F9D5B214A85391B86EEF919F9429E383F2807D3071472BB6CFF15FF0C1CCBA588C315F507E84771EDFFD6A2CFB30BAEEBEF223284EA42FD78FE745ADD18EE37ED710FE34FF00BE877CE7FC29D9F6617105C47FDF41FF00035FF1A2CFB3FB82E3BCF887F1A7FDF6BFE3459F67F705C0DCC5FDF4FF00BE97FC68B35D1FDC171A6E62FEFA7FDF4BFE3459F67F705C6FDA221FC69FF7D0FF001A767D9FDC2B89F688BFBE83FE043FC7FAD1CAFB31DC3ED317F7D3FEFA1FE3472BECC2E21B88BFBE9FF7D0FF001A395F662B8F8E78C9C6F4E7B6E1F5F5A2D6E81727738E3EBFD7FAD2634536B9952362A48C2B7A7A7D285BA1BD8FB8FC7FE32B8D27C457BA769FF65D3D2DBECA418AC6C4B664B5B6964DED2DB4C496698053C05000C1EF2DCA2AE9BB5F6F775FC3A1C72BADADD0E493E2A7891C6C8F53C608DA1AD2C63183838DD159F53CFF000800AF51902B9E6AAB77E6715DBFAEDE48CB5E8D7DCBFC8AEFE3FF001CCBF2C37F34C3F87ECF25B976EDC42B12CFD7803C819CF7A569AD79A5F7DBF0BC469C975FC17E8606ABF11BC5D00C4DA86A363263399643093EFB24409824803681C75ED871A938BB49B6BB6B7B7AE92FBEE35269EFF2FE95CCBB4F8D1E2641E53EA972D229C37EF896C804311F2904024F040E839EF5A4A9CDFBD17349EDAB4BCBAE9F260F9B7BB46C2FC63F10C580751BC24746F3323AE30C8546307E56396DD9C8E801E6F6755BBA9C97973BFC3569F74ACAC66DCBB9B50FC5EF104819D352B9D83B9789871B410CAB087524E7E600AE49E71835935595A2E52BF64E49EB7D5372B3E9A5EF63294E7157BB56F43ACD1BC5FE24D5E0170351BA8D5D982FEF3B0FA019C1C8C8001C719C64F52552168CA72725BEAFB76BE9E879BF58AB26DC66D2BFF5D0DE8AF3C4CFCFF6A5D7FDFC355EF2FB52FBDFF98D54ADD2A3FEBE46924BE286FBBA9DCF1FEDE69FBDFCD2FBDFF995CF5FA547FD7C8B31B78A4F4D4EE33EEC3FA8A7EF2FB52FBDFF0098B9B11FF3F1FE1FE45B1FF095AF2351B93F8C7FD569EBFCCFEF65736257DB7F72FF002275B9F1620FF8FF009FF1101FE719A3DE ....
i m using this fuction to decode bytes into image and show some error.
showImage(String image){
return Image.memory(base64Decode(image), width: 100.0, height: 100.0,);
}
FormatException: Invalid length, must be multiple of four (at character 65536)
...ZIDHHJI3GNAVHLT4ZXwx4S0KopR8UHHyOdxKtphC4OZ5HaIF76fEzzEMI91MyOpqGxeUjUrZseD
int mod = image.length % 4;
if (mod > 0) {
image += "=" * (4 - mod);
}
Stavros