Base64 Encoder
Encode any plain text or Unicode string to Base64 format instantly.
About the Base64 Encoder
Base64 encoding converts binary or text data into a sequence of printable ASCII characters. The DevGizmo Base64 Encoder handles full Unicode input — including emojis, accented characters, and non-Latin scripts — by converting text to UTF-8 bytes before encoding. All processing happens locally in your browser; no data is ever transmitted to a server.
Type or paste your plain text into the input field and the Base64 output updates in real time. Click the copy button to transfer the result to your clipboard immediately.
What is Base64?
Base64 is a binary-to-text encoding scheme that represents binary data using 64 printable characters: A–Z, a–z, 0–9, +, and /, with = used as padding. Every three bytes of input become four Base64 characters, so the output is approximately 33% larger than the original.
Common Uses
- Email attachments — MIME encoding uses Base64 to safely transmit binary files over text-based email protocols.
- Data URIs — embed images, fonts, or other assets directly in HTML or CSS without a separate HTTP request.
- API payloads — pass binary data inside JSON fields which only support text values.
- Basic Authentication — HTTP Basic Auth encodes credentials as
username:passwordin Base64 within the Authorization header. - JWT tokens — JSON Web Tokens use Base64URL encoding (a URL-safe variant) for their header and payload sections.