Base64 Encoder & Decoder (Text & Files)

Encode or decode UTF-8 text, URL-safe Base64, and convert images/files to Base64 Data URLs.

Privacy Note: All JSON payloads, tokens, passwords, and files are processed strictly inside your browser and never sent to any server.
Base64 Output

File / Image → Base64 Data URL

How to Use

  1. Select Encode or Decode mode and paste your text.
  2. Toggle URL-Safe Base64 if you need RFC 4648 '-' and '_' replacements without padding.
  3. Or drop any image/file into the File-to-Base64 box to generate a ready-to-use Data URL.

How It Works & Privacy

Uses TextEncoder/TextDecoder with UTF-8 byte arrays so international characters and emojis never break. Files are read locally via FileReader without leaving your machine.

Frequently Asked Questions

Q. Is Base64 encryption?

No. Base64 is a reversible encoding scheme for representing binary data as ASCII text, not cryptographic encryption.

Q. What is URL-safe Base64?

URL-safe Base64 replaces '+' with '-', '/' with '_', and optionally removes '=' padding so the string can safely appear in URLs and JWTs.

Related Developer Tools