Base64 encode
EncodeExperimentalLimited support. Verify anything critical.
Base64 encoding turns UTF-8 text into bytes, then maps each three-byte group to four characters from the standard ASCII alphabet (A–Z, a–z, 0–9, +, /), adding equals-sign padding when the final group is short. The local file option reads selected file bytes and applies the same representation, up to 25 MB. Base64 makes binary data safe to carry through text-only systems such as headers and APIs, but it does not encrypt or protect the contents; anyone can decode it.
Skip to the toolThis tool processes text on your device. The text is not uploaded.
Steps
Paste text or choose a file
Run locally
Copy or download the string
How to use Base64 encode
Technical overview (RFC 4648)
The encoder processes input in 3-byte (24-bit) tuples, splits each into four 6-bit indexes, and looks those indexes up in the standard alphabet. Remaining 1 or 2 bytes produce padding with = or ==.
Practical uses
- HTTP Basic credentials packaging (
Authorization: Basic …) - Small data URIs for icons or fonts
- Embedding binary-safe payloads in JSON or YAML manifests
Security note
Base64 is not encryption. Anyone can decode the string. Encrypt first if you need confidentiality, then Base64 only for transport packaging.
How it works
- Enter what you haveType or pick your text. Nothing is submitted anywhere.
- It runs in this tabThe calculation happens on your device, using your browser's own data.
- Take the resultRead the text, then copy or download.
Reimplemented locally. Not derived from IT-Tools source.
- Basis
- independent
- Licence
- MIT
- Last reviewed
Frequently asked questions
Is Base64 encoding a form of encryption?
No. Base64 is an open, deterministic binary-to-text representation scheme (RFC 4648). It provides zero confidentiality, as anyone can decode it instantly without a cryptographic key.
Why does Base64 output sometimes end with one or two equals signs (=)?
The equals sign is padding. Base64 processes data in 3-byte (24-bit) blocks. When the input length is not divisible by 3, one or two '=' characters pad the output to maintain 4-character alignment.
What is the size overhead of Base64 encoding?
Base64 expands data by approximately 33% (4 output ASCII characters for every 3 input bytes), plus optional padding characters.
How does this tool handle international Unicode characters?
The tool encodes multi-byte UTF-8 code points directly into byte sequences before applying the 6-bit ASCII transformation, ensuring full support for non-Latin alphabets and emojis.