Quickly convert text to Base64 encoding or decode Base64 to text.100% local processing, zero upload, zero risk.
Base64
Text
What is Base64?
Base64 is a binary-to-text encoding scheme based on 64 characters, which converts binary data into a subset of the ASCII character set, allowing safe transmission in plain text environments.
Use cases
Base64 is commonly used in scenarios such as email attachments, embedding small images in web pages, and transmitting binary data in JSON.
Encoding principle
Base64 groups data into 3-byte (24-bit) segments, then divides each segment into 4 6-bit chunks, each corresponding to a printable character.
Notes
Base64 encoding increases data size by approximately 33%. For large files, consider other transmission methods. Encoding is not encryption and does not provide security.
Special characters
Standard Base64 uses A-Z, a-z, 0-9, +, / totaling 64 characters, with = as padding. URL-safe Base64 variants use - and _ instead of + and /.
Browser support
Modern browsers natively support Base64 encoding and decoding, providing btoa() (encode) and atob() (decode) methods. However, these methods only support ASCII characters.