Base64 Encoder / Decoder

Local tool Switch between plain text and Base64. Handy when text containing spaces, symbols or other languages needs to survive a copy and paste.

Unicode safeBoth directionsNothing uploaded

Good to know

Base64 represents binary data as text. Each complete group of three bytes is divided into four six-bit values, which select characters from a 64-symbol alphabet. In the standard padded form, equals signs complete the final group when the input length is not a multiple of three.

For text conversion, a character encoding determines which bytes represent the original writing. This tool uses UTF-8 for that step. Base64 itself preserves the byte sequence and requires no secret key to reverse.

FAQ

Why does a valid Base64 string fail to decode as text?

Its bytes may represent an image or another binary file. This tool expects UTF-8 text. For a text payload, check that you copied the complete string without a surrounding label or data URL prefix.

Why is there no equals sign at the end of my Base64 output?

Padding is only needed for a partial final group. For example, cat occupies three UTF-8 bytes and encodes to Y2F0 without padding.

Can I use Base64 to hide a password?

Anyone who has the string can decode it. Use Base64 when a system needs a text representation of data, and keep credentials out of shared examples.

Why do I get aGVsbG8K instead of aGVsbG8= for hello?

The first version includes a line feed after the word. The second contains just the five letters. Check the end of the input, especially when pasting terminal output.