100% Client-Side · UTF-8 Safe

Base64 Encoder / Decoder

Encode any UTF-8 text or binary file to Base64, or decode a Base64 string back to plain text. Zero server upload — works entirely offline.

Output will appear here...

Common Uses for Base64

🖼️

Inline Images in CSS/HTML

Embed small images directly in HTML or CSS as data: URIs to reduce HTTP requests.

🔑

API Authentication

HTTP Basic Auth credentials are sent as Base64(username:password) in the Authorization header.

📧

Email Attachments

MIME email attachments and binary data in JSON payloads are commonly transmitted as Base64.

Frequently Asked Questions

Is Base64 a form of encryption?

No. Base64 is an encoding scheme, not encryption. It converts binary data into ASCII text but provides zero security. Anyone can decode Base64 back to the original data.

Does this tool support emojis and unicode characters?

Yes. We use the TextEncoder/TextDecoder Web API which correctly handles all UTF-8 characters including emojis, Arabic, Chinese, and other unicode scripts.

What is the file size limit for File to Base64?

The tool supports files up to 1 MB. For larger files, Base64 output becomes very large (Base64 is ~33% larger than the original binary data).