Base64 Encoder / Decoder
Encode or decode Base64 safely with full Unicode support.
Processed privately on your device
Processing locally…
Ctrl/Cmd+Enter: copy result · Ctrl/Cmd+Shift+Backspace: clear
Helpful guidance
Choose Encode, Decode or Auto, then paste text into the input area.
TextEncoder and TextDecoder preserve UTF-8 characters that plain browser btoa calls cannot handle safely.
Auto mode decodes only when the input is valid canonical Base64; otherwise it encodes the text.
Frequently asked questions
Does it support emoji and Bengali text?
Yes. Input is converted through UTF-8 bytes before Base64 encoding or after decoding.
How does Auto mode decide?
It attempts a valid Base64 round trip; noncanonical or invalid input is treated as plain text.
Why does decoded binary sometimes fail?
This text tool requires decoded bytes to be valid UTF-8, not arbitrary binary file data.
Is input sent to a server?
No. Encoding and decoding happen locally in your browser.