Base64 Encoder
Encode any text — including Hindi and other Unicode scripts and emoji — to Base64 or URL-safe Base64URL.
What is the Base64 Encoder?
Base64 represents binary data using 64 printable ASCII characters. It is used in data URIs, email attachments, HTTP Basic authentication and JWTs.
How does it work?
Text is first converted to UTF-8 bytes, then every 3 bytes are encoded as 4 Base64 characters. URL-safe mode replaces + and / with - and _ and drops = padding.
Formula
3 bytes (24 bits) → 4 characters of 6 bits each
Example
“Hello” encodes to SGVsbG8=.
Frequently asked questions
Is my data sent to a server?
No. This tool runs entirely in your browser; nothing you paste is uploaded or stored.
Is Base64 encryption?
No. Anyone can decode it. Never use Base64 to protect secrets.
Related tools
Enable JavaScript to use this calculator.