Base64 Encode

Base64 Encode

Please enter strings to be encoded to Base64

Information

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. The term Base64 originates from a specific MIME content transfer encoding.

For example:

For text "base64", the base64 encoded string is "YmFzZTY0", the conversion is shown by the following table:

Text content b a s e 6 4
ASCII 98 (0x62) 97 (0x61) 115 (0x73) 101 (0x65) 54 (0x36) 52 (0x34)
Bit pattern 0 1 1 0 0 0 1 0 0 1 1 0 0 0 0 1 0 1 1 1 0 0 1 1 0 1 1 0 0 1 0 1 0 0 1 1 0 1 1 0 0 0 1 1 0 1 0 0
Index 24 38 5 51 25 19 24 52
Base64-encoded Y m F z Z T Y 0

The Base64 index table:

ValueChar   ValueChar   ValueChar   ValueChar
0A   16Q   32g   48w
1B   17R   33h   49x
2C   18S   34i   50y
3D   19T   35j   51z
4E   20U   36k   520
5F   21V   37l   531
6G   22W   38m   542
7H   23X   39n   553
8I   24Y   40o   564
9J   25Z   41p   575
10K   26a   42q   586
11L   27b   43r   597
12M   28c   44s   608
13N   29d   45t   619
14O   30e   46u   62+
15P   31f   47v   63/