Base64 Encoder

Encode text to Base64 or decode Base64 back to text. Base64 represents binary data as ASCII characters using 64 printable characters (A-Z, a-z, 0-9, +, /). It is commonly used for embedding images in HTML/CSS, encoding credentials in HTTP headers, and data transfer in JSON/XML. Base64 is an encoding, not encryption - it provides no confidentiality. Anyone can decode it trivially. Use it for data transport or format compatibility, never for secrets. Everything runs in your browser.

Privacy: this tool processes your data entirely in your browser. Nothing you paste or type is sent to the server.

Paste or type the text to convert.

Result

Enter your values and press Calculate — the result appears here.

Worked examples

Encode and decode

  • text = Hello, world!
  • mode = encode

Result: Enter text and select Encode to see the Base64 output.

Frequently asked questions

Is Base64 the same as encryption?

No. Base64 is an encoding - a reversible transformation that anyone can undo. Encryption requires a key to reverse. Never use encoding to protect sensitive data.

Why does my decoded output look wrong?

Common causes: (1) the input was encoded with a different character set, (2) the input has extra whitespace or line breaks, (3) the input is corrupted. Try trimming whitespace and verifying the source.

Is my data sent to a server?

No. Encoding and decoding happen entirely in your browser. Nothing is transmitted anywhere.

Copied!