About Base64 string encoder/decoder
Encode UTF-8 text to Base64 or decode Base64 back to readable text instantaneously on XMOOO Tools, supporting both standard RFC 4648 and URL-safe Base64 (`-` and `_`) locally inside your browser.
Formulas & Technical Rules
Base64 maps every 3 binary bytes (24 bits) into 4 printable ASCII characters (6 bits each), expanding payload size by ~33%.
How to Use Base64 string encoder/decoder
- Paste plain text in the Encode panel to generate Base64 immediately, or toggle "Encode URL safe" for JWT/URL usage.
- Paste any Base64 string in the Decode panel to recover the original UTF-8 text.
- Copy the output with one click—all processing happens offline in your browser.
Base64 Encoding Examples
| Plain Text | Standard Base64 | Notes |
|---|---|---|
| Hello | SGVsbG8= | Single "=" padding byte |
| XMOOO | WE1PT08= | ASCII 5 bytes → 8 chars |
| user:pass | dXNlcjpwYXNz | Used in HTTP Basic Auth headers |