Base64 Encoder / Decoder

Free online Base64 encoder and decoder — encode text and files to Base64 or decode Base64 strings, with URL-safe variant support. Fully client-side.

  1. Choose the Encode or Decode tab.
  2. Type or paste text — or upload a file (encode only).
  3. Optionally enable URL-safe mode to replace +/= characters.
  4. Click the button and copy the result.

FAQ

What is Base64 encoding?

Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It is commonly used to embed binary data (like images or files) in JSON, HTML, or email.

What is URL-safe Base64?

Standard Base64 uses +, /, and = which have special meaning in URLs. URL-safe Base64 replaces + with -, / with _, and omits or replaces = padding to make the string safe for URL query parameters.

Can I encode files with this tool?

Yes. Select a file using the file input and it will be read as a binary buffer and encoded to Base64 in your browser — no upload required.

Is my data sent to any server?

No. All encoding and decoding happens locally in your browser using the built-in btoa/atob and FileReader APIs.