Base64 Encode

Convert text to Base64 encoding, with full UTF-8 and Unicode support

Chars: {{ inputText.length }} Bytes: {{ byteCount }}
Go to Decode →

About Base64 Encoding

Base64 is a binary-to-text encoding that represents binary data using 64 printable characters (A-Z, a-z, 0-9, +, /). It encodes every 3 bytes into 4 Base64 characters, increasing the data size by about 33%.

Base64 is widely used in HTTP Basic Authentication, email MIME transmission, data URI schemes, and JWT (JSON Web Tokens). When binary data must travel through a text-only protocol, Base64 is the standard choice.

This tool supports UTF-8 text in any language. All computation happens in your browser; nothing is sent to any server.

Examples

Input: Hello, World! → Output: SGVsbG8sIFdvcmxkIQ==

FAQ

Q: Is Base64 encoding encryption?
A: No. Base64 is encoding, not encryption. Anyone can decode it back to the original content, so it provides no security. To protect data, use AES, RSA, or other encryption algorithms.
Q: Why is non-ASCII text longer after encoding?
A: A non-ASCII character (such as a Chinese character) usually takes 3 bytes in UTF-8. After Base64 encoding, every 3 bytes become 4 characters, so one such character becomes about 4 Base64 characters.
Q: What does the = sign mean?
A: = is the Base64 padding character. When the input length is not a multiple of 3, 1 or 2 = signs are appended so the result length is a multiple of 4.