Base64 Encode / Decode

Convert text to and from Base64 encoding

About Base64 Encode / Decode

Free online Base64 encoder and decoder. Convert text to Base64 or decode Base64 back to text instantly. Supports URL-safe Base64 encoding. All processing happens in your browser — no data is sent to any server. Perfect for developers working with APIs, data URIs, or encoded content.

How to Use

  1. Choose Encode or Decode mode.
  2. Paste or type your text in the input field.
  3. The result appears instantly in the output field.
  4. Copy the output or clear to start over.

FAQ

What is Base64 encoding?
Base64 is a binary-to-text encoding scheme that represents binary data using 64 printable ASCII characters. It's commonly used in email, HTML, and data URIs.
What is URL-safe Base64?
URL-safe Base64 replaces + with - and / with _, making the output safe to use in URLs without encoding.
Is there a size limit?
Browser-based processing handles most practical inputs. Very large strings (>10MB) may slow down your browser.
Can I encode binary files?
This tool handles text input. For binary files, you would need to read them as ArrayBuffer first.