Base64 Encoder & Decoder

Base64 represents bytes with printable characters. Use this tool to encode ordinary text as UTF-8 bytes and Base64, or to read a Base64 value that contains UTF-8 text.

Workspace

Result

Your result will appear here.

How to use it

  1. Choose the direction that matches your starting value.
  2. Paste the original text to encode or the Base64 string to decode.
  3. Run the conversion and copy the result, including any padding characters.

Worked example

Input
mint tea
Output
bWludCB0ZWE=

Frequently asked questions

Does Base64 hide the contents of a message?

Anyone with the Base64 string can decode its contents. Treat encoded text as readable when deciding where to share it.

Why does a Base64 string sometimes end in an equals sign?

Standard Base64 handles input in groups of three bytes. The final group can use one or two equals signs as padding when it contains fewer than three bytes.

Can I decode an image as text?

Image files contain binary data. A text decoder expects bytes that form UTF-8 text, so an encoded image needs a binary-capable image or file decoder.