Features
Bidirectional conversion
You can encode plain text to Base64 or decode Base64 strings back to their original form using the tabbed interface.UTF-8 support
The utility properly handles Unicode characters usingencodeURIComponent and decodeURIComponent, ensuring international characters encode and decode correctly.
Built-in examples
Access ready-to-use examples through the Examples button:- Simple greetings (“Hello World”)
- Common test phrases (“The quick brown fox”)
- Email addresses
- Common passwords
Error handling
The utility provides clear error messages when:- Encoding fails due to invalid input characters
- Decoding fails because the input isn’t valid Base64
Keyboard shortcuts
Speed up your workflow with keyboard shortcuts:- Execute the current operation (encode or decode)
- Copy the output to clipboard
- Clear all fields
Use cases
API authentication
Encode credentials for Basic Authentication headers:Data URLs
Encode small files or images as data URIs for embedding in HTML or CSS.Email encoding
Encode email attachments or MIME content that requires Base64 encoding.Configuration files
Store or transmit configuration data in a format that avoids special character issues.Base64 encoding increases the size of your data by approximately 33%. For large text that needs compression, consider using the Zlib compressor instead.
How it works
The utility uses JavaScript’s built-inbtoa() and atob() functions wrapped with UTF-8 encoding/decoding:
Encoding process:
- Converts input text to UTF-8 using
encodeURIComponent - Applies
btoa()to create Base64 output - Displays the encoded result
- Applies
atob()to decode Base64 string - Converts back from UTF-8 using
decodeURIComponent - Displays the original text
Related tools
- Zlib compressor - Combines deflate compression with Base64 encoding for smaller output
- URL encoder - Percent-encodes URLs and query parameters