Decode base64 in python



Open up a Python console

>>> import base64 
>>> a = "SGVsbG8gV29ybGQ="  <- Change to your Base64 encoded string
>>> base64.b64decode(a)  
b'Hello World'  <-Decoded string
>>>

Works with Python 2 and 3. For some reason Python3 puts a b before the string in the output.

Leave a Reply