Base64 Encode / Decode

Encode text or files to Base64 and decode Base64 strings back to plain text instantly.

Base64 Encode / Decode

📐 How to Use

  1. Type or paste text in the Encode tab to convert it to Base64.
  2. Paste a Base64 string in the Decode tab to convert it back to text.
  3. Toggle "URL-safe" to use the URL-safe variant (replaces + → - and / → _).
  4. Upload a file to get its Base64 data URI.

Frequently Asked Questions

QWhat is Base64 used for?
Base64 is used to embed images in HTML/CSS via data URIs, encode email attachments (MIME), store binary data in JSON/XML, and pass binary data through text-only systems.
QDoes Base64 encrypt data?
No. Base64 is encoding, not encryption. Anyone with the Base64 string can trivially decode it. Do not use it for security purposes.
QWhat is URL-safe Base64?
Standard Base64 uses + and / which have special meaning in URLs. URL-safe Base64 replaces them with - and _ so the string can be safely used in URLs and filenames.

ℹ️ About This Tool

Base64 encoding converts binary data into a safe ASCII string using 64 printable characters. Widely used for embedding images in HTML/CSS, encoding email attachments, and passing binary data through text-only protocols. URL-safe Base64 replaces + with - and / with _ to avoid URL encoding issues.