Base64 encode and decode
Convert text locally using the standard Base64 alphabet and required padding.
Formula
UTF-8 bytes → 6-bit Base64 symbols; complete the final group with =.
How to use
- Choose encode or decode.
- Enter text or standard Base64, up to 4,096 characters.
- Copy the result; decoding rejects malformed input.
Examples
- f → Zg==; fo → Zm8=; Zm9v → foo.
Frequently asked questions
Is Base64 encryption?
No. Anyone can reverse Base64 without a secret key. Your input is processed in this browser.
Does this accept Base64url or missing padding?
No. Use + and /, required = padding and no whitespace. Nonzero padding bits are rejected.
Can I decode arbitrary binary files?
No. The decoded bytes must be valid UTF-8 text. Emoji and accents are supported; an initial BOM is preserved.
Sources
Updated: