The online base64 decoding tool provides base64 encoding, online base64 decoding and base64 encryption and decryption: it encrypts a string into Base64 format and decodes Base64 back into plain text. Base64 is a fairly common online encryption algorithm; when fixing garbled Chinese text, encoding the text in different ways can effectively avoid the garbling. This site does not record any of your information, so use it with confidence.
Base64 encoding uses 64 printable ASCII characters (A-Z, a-z, 0-9, +, /) to encode any byte sequence into an ASCII string, with the “=” symbol used as a suffix.
| Value | Character | Value | Character | Value | Character | Value | Character |
| 0 | A | 16 | Q | 32 | g | 48 | w |
| 1 | B | 17 | R | 33 | h | 49 | x |
| 2 | C | 18 | S | 34 | i | 50 | y |
| 3 | D | 19 | T | 35 | j | 51 | z |
| 4 | E | 20 | U | 36 | k | 52 | 0 |
| 5 | F | 21 | V | 37 | l | 53 | 1 |
| 6 | G | 22 | W | 38 | m | 54 | 2 |
| 7 | H | 23 | X | 39 | n | 55 | 3 |
| 8 | I | 24 | Y | 40 | o | 56 | 4 |
| 9 | J | 25 | Z | 41 | p | 57 | 5 |
| 10 | K | 26 | a | 42 | q | 58 | 6 |
| 11 | L | 27 | b | 43 | r | 59 | 7 |
| 12 | M | 28 | c | 44 | s | 60 | 8 |
| 13 | N | 29 | d | 45 | t | 61 | 9 |
| 14 | O | 30 | e | 46 | u | 62 | + |
| 15 | P | 31 | f | 47 | v | 63 | / |
Base64 splits the input string byte by byte, takes the binary value of each byte (padding the high-order bits with 0 if it has fewer than 8 bits), concatenates these binary values and then splits them into groups of 6 bits (because 2^6=64), padding the last group with 0 at the end if it has fewer than 6 bits. Each group of binary values is converted to decimal, and the corresponding symbols from the table above, concatenated in order, give the Base64 encoded result.
Base64 can be used as low-level binary encoding of arbitrary data for situations that only transmit ASCII characters. It is most often used for transferring text data: in MIME-formatted email, Base64 can encode the message content so it transfers between computers of different languages without garbled characters. Note that this is about transmission, not display: on Western European computers utf-8 encoding displays Chinese normally (with the matching font installed), but it may not transmit Chinese correctly, and converting to Base64 removes this concern.
Base64 encoding: unless otherwise specified, non-ASCII characters are conventionally encoded using the UTF-8 character set.
This tool belongs to the “Encryption & encoding” category.
Your input is processed locally in the browser whenever possible. We do not store it.
No. MD5 is a one-way digest — you can compare it, never reverse it. So-called "decryption" is a rainbow-table hit.
Salts, random IVs, or a different case or source encoding all change the output. Normalise to UTF-8 before comparing.
Use it for learning and format checks. Generate and store production keys server-side; never paste a live secret into a web page.