XMOOO TOOLSFree Online Developer & Calculator SuiteLoading Base64 string encoder/decoder…
100% Client-Side · Zero Server Uploads

Base64 string encoder/decoder

Simply encode and decode strings into their base64 representation.

Initializing interactive Base64 string encoder/decoder workspace…

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

  1. Paste plain text in the Encode panel to generate Base64 immediately, or toggle "Encode URL safe" for JWT/URL usage.
  2. Paste any Base64 string in the Decode panel to recover the original UTF-8 text.
  3. Copy the output with one click—all processing happens offline in your browser.

Base64 Encoding Examples

Plain TextStandard Base64Notes
HelloSGVsbG8=Single "=" padding byte
XMOOOWE1PT08=ASCII 5 bytes → 8 chars
user:passdXNlcjpwYXNzUsed in HTTP Basic Auth headers

Frequently Asked Questions

Is Base64 encryption?

No. Base64 is a reversible binary-to-text encoding scheme designed for safe transport—anyone can decode it without a key. Use AES encryption to protect secrets.

What is URL-safe Base64?

URL-safe Base64 replaces "+" with "-" and "/" with "_", and often omits "=" padding so the string can be safely placed inside URLs and JWT segments.

Can I convert images or binary files to Base64?

Yes. Use our Base64 File Converter tool to convert images, PDFs, or arbitrary files into Base64 Data URLs locally.