Base64 Encoder/Decoder Online

Decode base64 or encode to base64

Give it a try

Characters: 0
Words: 0
Lines: 0
Size: 0


Choose to encode or decode from or to base64
Characters: 0
Words: 0
Lines: 0
Size: 0

Base64 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 👀

javascript logo Javascript
php logo Php
python logo Python

How do I encode to base64 or decode base64 string

  • Encode Base64
  • Decode Base64
    Encode to base64 using javascript
                        let string = "Hello World";
    Decode from base64 using javascript
                        let base64 = "SGVsbG8gV29ybGQ=";
  • Encode Base64
  • Decode Base64
    Encode to base64 using build in function base64_encode in PHP
                        echo base64_encode("hello world")            
    Decode from base64 using build in function base64_decode in PHP
                        echo base64_encode("aGVsbG8gd29ybGQ=")            
  • Encode Base64
  • Decode Base64
    Encode to base64 using Python
                            import base64
    message = "hello world"
    bytes = message.encode("ascii")
    base64 = base64.b64encode(bytes)
    Decode from base64 using Python
                            import base64
    encoded = "aGVsbG8gd29ybGQ="
    string = base64.b64decode(encoded)

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:

String Tools