✓ Unicode safe✓ File support✓ Free forever

Free Base64 Encoder / Decoder Online

Encode text to Base64 or decode Base64 back to text. Handles Unicode and files.

Plain Text

Base64 Output

How to use Base64 Encoder / Decoder

  1. Paste text or upload a file to encode, or paste a Base64 string to decode.

  2. Click Encode or Decode.

  3. Copy the result to clipboard.

How it works

This tool uses JavaScript's built-in btoa() and atob() functions with a UTF-8 wrapper for proper Unicode support. When encoding, it first converts the string to UTF-8 bytes using encodeURIComponent, then applies Base64 encoding. When decoding, it reverses the process. For file uploads, it uses FileReader to read the file as a data URI, which is already Base64-encoded. Everything runs in your browser — your data never leaves your device.

Why use it

  • Handles Unicode, emojis, and non-Latin scripts correctly
  • File-to-Base64 with drag-and-drop
  • Image preview for Base64 data URIs
  • 100% client-side — your data stays private
  • Free forever, no limits

Questions

What is Base64 used for?

Base64 encodes binary data as text for emails, URLs, and embeds.

Is this Base64 tool free?

Yes. Free forever with no signup.

Does it support Unicode text?

Yes. It uses UTF-8 so emojis and non-Latin text work correctly.

Can I encode a file?

Yes. Use the File button to convert a local file to Base64.

Is Base64 encryption?

No. Base64 is only encoding and provides no security.

Is my data uploaded?

No. All encoding and decoding stays in your browser.