🔄 Base64 Encoder & Decoder

Encode text to Base64 or decode Base64 strings back to readable text. Fast, free, and entirely client-side.

What is Base64 Encoding?

Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It's widely used in email (MIME), data URLs (embedding images in HTML/CSS), JSON Web Tokens (JWT), and API authentication headers (Basic Auth).

Common Use Cases

How to Use

  1. Select Encode to convert text to Base64, or Decode to convert Base64 back to text.
  2. Paste or type your data in the input field.
  3. Click Convert —the result appears instantly in the output field.
  4. Use Swap to reverse the input/output for quick back-and-forth conversion.
  5. Click Copy Output to copy the result to your clipboard.

Important Notes

FAQ

Is my data sent to your server?

No. All encoding/decoding uses the browser's built-in btoa() and atob() functions. Your data never leaves your device.

What's the difference between Base64 and Base64URL?

Base64URL is a URL-safe variant that replaces '+' with '-', '/' with '_', and omits the '=' padding. It's commonly used in JWTs and URL parameters.

Can I encode binary files like images?

Yes, but you'd need to read the file as a binary string first. For quick text encoding, paste the text directly. For file encoding, check out our Image Compressor tool which also provides Base64 data URIs.