ToolNest

🔤 Base64 Encoder / Decoder

Encode and decode Base64 online free — Unicode-safe text conversion plus file-to-Base64 (data URL) for images and assets. Everything runs locally in your browser.

🔒 100% Private — no uploads ⚡ Instant — works offline 💸 Free forever — no sign-up

File → Base64 (data URL)

Drop any file to convert to Base64

🔒 Files are processed on your device — never uploaded

How to use the Base64 Encoder / Decoder

  1. 1 Type or paste text, then click Encode or Decode.
  2. 2 For files: drop any file to get its Base64 / data URL for embedding.
  3. 3 Copy the result with one click.

Frequently asked questions

Does this handle Unicode (Hindi, emoji) correctly?

Yes — text is encoded via UTF-8 before Base64, so emoji, Hindi, Chinese and all Unicode characters encode and decode correctly (plain btoa() would fail on these).

How do I convert an image to Base64?

Drop the image into the file box — you get a data URL (data:image/png;base64,…) you can paste directly into CSS or HTML src attributes.

Is Base64 encryption?

No — Base64 is encoding, not encryption. Anyone can decode it. Never use it to protect secrets.

Why is Base64 bigger than the original?

Base64 represents every 3 bytes as 4 characters, so output is about 33% larger than the input.

Related tools