Base64 Encode & Decode

Encode text to base64 and decode base64 back to text

About this calculator

The Base64 Encode & Decode tool converts text to base64 and back, with full Unicode support via a UTF-8 byte round trip so emoji and accented characters survive intact. It supports both the standard alphabet and the URL-safe variant (- and _ with padding stripped), and reports input length, output length, and UTF-8 byte count. Malformed base64 input is caught and reported as invalid rather than producing garbage output.

How to use the Base64 Encode & Decode tool

  1. Enter or paste your input into the field.
  2. Read the output — it updates instantly as you type.
  3. Adjust the options, if any, to fit your use case.
  4. Copy the page URL to share the exact result.

Common examples

  • encode "hello" → aGVsbG8=
  • decode SGVsbG8sIFdvcmxkIQ== → Hello, World!
  • encode "café ☕" → Y2Fmw6kg4piV (9 UTF-8 bytes preserved)
  • URL-safe encode "a?b/c" → YT9iL2M (no + / or padding)

Frequently asked questions

How does the Base64 Encode & Decode tool work?

Enter or paste your input and the tool processes it directly in your browser, showing the result immediately. Nothing you type is uploaded to a server — the entire computation happens on your device.

When would I use the Base64 Encode & Decode tool?

It is handy for development, debugging, design and administration tasks — whenever you need this transformation or check done quickly without installing anything or trusting a third-party service with your data.

How reliable are the results?

The tool implements the relevant standard or specification directly, so its output matches what compliant software produces. Edge cases such as empty or malformed input are reported clearly instead of failing silently.

Can I share a specific result with someone else?

Yes. Your input updates the URL, so copying the address bar and sharing the link reopens the tool in the same state for whoever clicks it.