Base64 encode and decode, text or files

Text and file modes, both directions.

Files stay on your device. No accounts. Free.

Loading tool...

About this tool

Encode text or any file to Base64, or decode a Base64 string back, as text on screen, or as a downloadable binary file when the content isn't text. UTF-8 and URL-safe variants with missing padding are handled automatically.

Useful for data URIs, basic-auth headers, API payloads and config values. Everything runs on your device, so credentials you encode here stay yours.

How it works

  1. Paste your input, or drop a text file onto the box.
  2. The output updates live as you type.
  3. Copy it to the clipboard, or download it as a file.

Frequently asked questions

Is Base64 encryption?

No, and this matters: Base64 is just a different alphabet for the same bytes, anyone can decode it instantly. Use it for transport and embedding, never for hiding secrets.

Can I encode a file, not just text?

Yes. Switch to file mode and drop any file, image, PDF, binary, and you get its Base64 string, ready for a data URI or an API payload. Decoding works in reverse and offers a download when the result is not text.

Why does my Base64 string fail to decode elsewhere?

Usually it is the URL-safe variant, which swaps + and / for - and _ and often drops the trailing = padding. This tool detects and accepts both variants automatically.

Related tools

Missing something? Suggest a feature →