Skip to content

Base64 Encoder / Decoder

Encode text or files to Base64 and decode Base64 back to text or files — UTF-8 safe, with URL-safe and data URI options.

In-browser · no upload

Runs entirely in your browser. Your files and text are not uploaded to our servers.

To encode Base64, type or paste text and select Encode; to decode, paste Base64 and select Decode. Unicode text (Hindi, emoji) is handled correctly. You can also encode an image or PDF into a data URI, or save decoded binary data as a file.

How to use the Base64 Encoder / Decoder

  1. 1

    Enter text or choose a file

  2. 2

    Encode or decode

    Tick URL-safe for JWTs and URLs.

  3. 3

    Copy or save

Features

  • UTF-8 correct

    Works with any language, unlike plain btoa().

  • URL-safe variant

    Uses - and _ and drops padding.

  • Files and data URIs

    Embed small images directly in HTML/CSS.

Examples

नमस्ते → 4KSo4KSu4KS44KWN4KSk4KWH

Privacy and file handling

Where it runs
Runs in your browser

Runs entirely in your browser. Your files and text are not uploaded to our servers.

Limitations

  • Files up to 10 MB. Base64 output is about 33% larger than the original.
  • Base64 is encoding, not encryption — anyone can decode it.

Frequently asked questions

Is Base64 secure?

No. It only changes the representation of data; it offers no protection. Use encryption for secrets.

Why is decoded output empty?

The data is binary (e.g. an image). Use “Save decoded file”.

Was this tool helpful?

Thanks for the feedback.

Last reviewed