String to Base64 Converter
Convert any string to Base64 encoding with full UTF-8 support. Get both standard Base64 and URL-safe Base64 output simultaneously.
Convert any string to base64 encoding with full UTF-8 support. This string to base64 converter handles multi-byte characters including CJK (Chinese, Japanese, Korean), emojis, accented characters, and all Unicode text. Get both standard and URL-safe base64 output. URL-safe Base64 replaces + with -, / with _, and removes = padding for safe use in URLs and file names.
UTF-8 Encoding in Base64
When converting strings to Base64, the text is first encoded as UTF-8 bytes, then those bytes are encoded to Base64. Multi-byte characters produce longer Base64 output.
| Character | UTF-8 Bytes | Base64 | B64 Length |
|---|---|---|---|
| A | 1 byte (0x41) | QQ== | 4 |
| e | 2 bytes (0xC3 0xA9) | w6k= | 4 |
| δΈ | 3 bytes (0xE4 0xB8 0x96) | 5LiW | 4 |
| π | 4 bytes (0xF0 0x9F 0x98 0x80) | 8J+YgA== | 8 |
Standard vs URL-Safe Base64
| Standard | URL-Safe | |
|---|---|---|
| Characters | Uses + / = | Uses - _ (no padding) |
| Use Cases | MIME, email, general encoding | URLs, file names, JWT tokens |
Related Base64 Tools
FAQ
Rate this tool
3.6 / 5 Β· 92 ratings
More Tools
B64Base64 Encoder/DecoderBβBase64 Encoder%20URL Encoder/Decoder01Text β Binary ConverterRecommended
CloudflareFree CDN & DDoS protectionStay Updated
Get weekly dev tips and new tool announcements.
No spam. Unsubscribe anytime.
Enjoy these free tools?
βBuy Me a Coffee