Base64 Decode

Encoded Text
Decoded Text

Waiting for input.

Base64 Decode Options

Base64 Decode Online

Base64 decode online tool is a convenient and efficient way to convert encoded data back to its original form. Whether you're a programmer or just need to decode some data for a specific task, this online tool can save you time and effort. This base64 decoder supports "UTF-16, Unicode strings" like ✓ , emojis etc.

To use a Base64 decode online tool, simply paste your encoded data into the designated field and click the "Decode" button. The tool will then convert the data back to its original form, which you can then save or use as needed.

One of the great things about using an online tool for Base64 decoding is that you don't have to download or install any software. All you need is an internet connection, and you can use the tool from any device with a web browser.

How to Decode from Base64 format online?

Simply enter Base64 encoded text in above input box and click decode button. This will instantly decode the base64 encode text to human-readable text. multi string mode enables decode multiple text at same time just enter each text in newlines.

If you need to decode base64 programmatically then refer below topics. Ensure you are covering unicode edge cases in encoding process and decode.

How to Base64 decode programmatically?

Base64 decode is widely used in many mobile, web applications to decode contents inside XML, JSON or data transmitted over network as part API response. This decoding practise used for so long that, there are well tested libraries available in various language to decode the string.

Javascript Base64 Decode

JavaScript provides several ways to Base64 decode a string. One of the most popular ways is to use the atob() function, which stands for "ASCII to binary". This function takes a Base64 encoded string as an argument and returns the decoded data in the form of a binary string. Here's an example of how to use the atob() function to decode a Base64 encoded string:

var encodedData = "SGVsbG8sIFdvcmxkIQ==";
var decodedData = atob(encodedData);

This will print "Hello, World!"

Another way to Base64 decode in javascript is by using TextDecoder API and encode the string in to Uint8Array and decode it back to string

var decodedData = new TextDecoder().decode(new Uint8Array(atob(encodedData).split('').map(function(c) {
return c.charCodeAt(0);

There are also several libraries available that provide Base64 decoding functionality in JavaScript, such as crypto-js, base64-js and others. These libraries can be useful if you need more advanced decoding options or want to avoid using browser-specific functions like atob().

Python Base64 Decode

In Python, Base64 decoding can be done using the base64 module. The base64 module provides the b64decode() function, which takes a Base64 encoded string as an argument and returns the decoded data in the form of bytes. Here's an example of how to use the b64decode() function to decode a Base64 encoded string:

import base64
encoded_data = "SGVsbG8sIFdvcmxkIQ=="
decoded_data = base64.b64decode(encoded_data)

This will print b'Hello, World!'

You can also use the decodebytes() function from the base64 module to decode the bytes-like object and get the string.

decoded_data = base64.decodebytes(encoded_data.encode())

This will print "Hello, World!"

The base64 module is part of the Python standard library, so you don't need to install any additional packages to use it.

It's worth to note that, the base64.b64decode() method raises a binascii.Error if the input is not valid Base64 encoded data. To avoid this, you can pass the validate argument as True to check if the input is a valid Base64 encoded string,

decoded_data = base64.b64decode(encoded_data, validate=True)

This way it will raise a binascii.Error if the input is not a valid base64 encoded string.