Base64 Encoder / Decoder

Encode and decode Base64 text (UTF-8 safe), URL-safe Base64, and files to data URIs.

File to Base64

Drop a file to get its Base64 data URI

How to use the Base64 Encode / Decode

Base64 represents binary data with 64 printable characters. It's used in data URIs, email attachments, JWT tokens and HTTP Basic auth. This tool handles Unicode text correctly (the browser's plain btoa fails on non-Latin characters).

Frequently asked questions

Is Base64 encryption?

No. Anyone can decode it. It's an encoding, not a way to protect secrets.

Why is the Base64 output bigger?

Base64 adds about 33% because it stores 3 bytes in 4 characters.

Related tools