Base64 Encoder/Decoder Online
Decode base64 or encode to base64
Give it a try
Mode
Choose to encode or decode from or to base64Base64 Encoder/Decoder Online
Free Online base64 encoder/decoder tool that encodes strings to base64 and decodes base64 back to its original form.
If you try to decode a non-base64 dataset we will let you know also.
Decode and Encode base64 with code
Developers... I see you 👀
How do I encode to base64 or decode base64 string
let string = "Hello World";
console.log(btoa(string));
let base64 = "SGVsbG8gV29ybGQ=";
console.log(atob(base64));
echo base64_encode("hello world")
echo base64_encode("aGVsbG8gd29ybGQ=")
import base64
message = "hello world"
bytes = message.encode("ascii")
base64 = base64.b64encode(bytes)
print(base64)
import base64
encoded = "aGVsbG8gd29ybGQ="
string = base64.b64decode(encoded)
print(string)
What is Base64?
Base64 is a group of similar binary-to-text encoding schemes that represent binary data in an ASCII string format by translating it into a radix-64 representation.
Base64 is used when you want to store binary data in a text file or transmit it over a connection that only supports plain text. It is also used to encode binary files such as images or multimedia files for emailing or posting on the web.
The base64 encoding scheme encodes the bits of the source data into individual bytes, which are then represented as alphanumeric characters, typically using the Latin alphabet. The base64 encoding can also be interpreted as representing arbitrary sequences of octets in octet-oriented systems, such as storage devices or transmission channels, by translating them into groups of six bits each (six bits would be enough to represent any character in the English alphabet).
What does Base64 look like?
The biggest giveaway that a string is base64 encoded is usually an equals (=) sign in the end. Although thats not always the case
Try to decode this:
VGhpcyBpcyBhbiBleGFtcGxlIQ==