Base64 Encoder/Decoder
Convert text to Base64 or decode Base64 back to text.
Mode
Choose whether to encode or decode
Text to Encode
Enter the text you want to convert to Base64
Base64 Output
Your text converted to Base64
Encoded Base64 will appear here
About Base64
Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It's commonly used when there's a need to encode binary data for storage or transfer in environments that only reliably support text content.
Common Uses
- Embedding images directly in HTML/CSS using data URIs
- Encoding binary data in JSON
- Sending binary data in email attachments
- Storing complex data in cookies or local storage
- Encoding binary data in URLs (using URL-safe Base64)
URL-Safe Base64
Standard Base64 uses characters like '+', '/' and '=' which have special meanings in URLs. URL-safe Base64 replaces '+' with '-', '/' with '_', and typically omits the padding '=' characters.