đ Base64 Encode / Decode
Free online Base64 encoder and decoder. Convert text to Base64 and decode Base64 back to text. UTF-8 safe with no garbled characters. All processing happens locally in your browser.
What is Base64 Encoding?
Base64 is a binary-to-text encoding scheme that represents binary data using 64 printable characters (A-Z, a-z, 0-9, +, /). It is widely used in email attachments (MIME), embedding images in web pages (Data URI), API data transmission, JSON Web Tokens (JWT), and many other scenarios. Base64 encodes every 3 bytes (24 bits) into 4 characters, resulting in approximately 33% size overhead.
This tool uses the browser's built-in TextEncoder and TextDecoder APIs for UTF-8-safe encoding and decoding, ensuring that Chinese, Japanese, Korean, and other non-ASCII characters are handled correctly without any garbled text.
Common Use Cases
- Data URI for Images â Embed images as Base64 in HTML/CSS to reduce HTTP requests
- API Data Transfer â Safely transmit binary data within JSON payloads
- JWT Token Decoding â Decode the Payload section of JSON Web Tokens
- Configuration Obfuscation â Simple obfuscation of configuration values (not real encryption)
- Email Attachments â MIME protocol uses Base64 for encoding attachments
Important Note
Base64 is not an encryption algorithm. It is simply a way to represent data in a printable character format. Anyone can easily decode Base64 data, so never use it to protect sensitive or confidential information. Use standard encryption algorithms like AES or RSA for real data protection.