Base64 Encode Decode Tool
Encode text to Base64, or decode Base64 back to plain text.
- Free to use
- Accurate results
- No registration required
- Works on all devices
Enter text and choose Encode or Decode to convert between plain text and Base64.
Your result
SGVsbG8sIENhbGN1VG9vbCE=
Result
AI explanation
Formula
Base64 encodes every 3 bytes of input as 4 ASCII characters from a 64-character alphabetWorked example
Encode "Hello, CalcuTool!"
| Field | Value |
|---|---|
| Text | Hello, CalcuTool! |
| Action | encode |
| Result | SGVsbG8sIENhbGN1VG9vbCE= |
Assumptions
- Text is treated as UTF-8, so non-English characters round-trip correctly.
- Decoding non-Base64 text (invalid characters or padding) shows an error rather than a result.
Frequently asked questions
What is Base64 used for?
Encoding binary or text data into a plain-ASCII format that's safe to embed in contexts that only support text — such as email attachments, data URIs in HTML/CSS, and API payloads (e.g. Basic Authentication headers).
Is Base64 encryption?
No — Base64 is an encoding, not encryption. It provides no security or confidentiality; anyone can decode it instantly. Use actual encryption if you need to protect data.
Why is the encoded text longer than the original?
Base64 represents every 3 bytes of input as 4 characters, so encoded text is roughly 33% longer than the original.