Base64 Encode
Convert text to standard or URL-safe Base64 format
Read-only
What is Base64 Encode?
A tool that converts text data into ASCII string format. Use it to safely transfer text in web applications, API communications, email, and various other environments.
Conversion results appear in real-time as you type.
How to Use
Enter the data you want to encode in the left text area and it will automatically convert to Base64 format, displaying results on the right.
Encoding Options
Encode Line by Line
Choose how to process multi-line text.
- Enabled - Encode each line individually (convenient for batch processing)
- Disabled - Encode entire text including newlines as a single unit
Convert to URL-safe Format
Standard Base64 contains characters like + and / that can cause issues in URLs.
- Enabled - Replace
+with-and/with_for URL-safe format - Disabled - Use standard Base64 format
Use Cases
- Web applications - Embed text data directly in HTML
- API data transfer - Safely transmit text with special characters
- Email communication - Send encoded text data
- Authentication tokens - Use in authentication tokens like JWT
- URL parameters - Include in query parameters using URL-safe format
How Base64 Works
Base64 encoding represents data using 64 printable ASCII characters (A-Z, a-z, 0-9, +, /) and = for padding.
Original data: Man
Binary: 01001101 01100001 01101110
6-bit groups: 010011 010110 000101 101110
Base64 conversion: T W F u
For details, refer to RFC 4648.