Base64 Encoder / Decoder
Convert text to Base64 or decode Base64 back to text.
Character Count
How to Use the Base64 Tool
Enter text in the input box and click "Encode to Base64" to convert it. To decode, paste Base64-encoded text and click "Decode from Base64". The tool automatically detects invalid Base64 strings and shows an error message.
What is Base64 Used For?
Base64 encoding is widely used in computing for various purposes:
- Email attachments: MIME encoding uses Base64 to send binary files via email
- Data URLs: Embedding images directly in HTML/CSS using base64:data URIs
- APIs: Encoding binary data in JSON payloads
- Authentication: Basic HTTP authentication encodes credentials in Base64
- URL parameters: Encoding special characters in URLs
Base64 Alphabet
Base64 uses 64 characters: A-Z, a-z, 0-9, +, and /. The = character is used for padding. This makes Base64 data safe for transmission through text-based systems that might otherwise corrupt binary data.
Security Warning
Base64 is not encryption! It merely transforms data into a different representation. Anyone can decode Base64 data. If you need to protect sensitive information, use proper encryption algorithms like AES or RSA.