Encode and decode Base64 online
| Item | Formula / Rule | Source / Standard |
|---|---|---|
| Encoding order | Characters are first encoded as UTF-8 bytes, then the byte string is Base64 encoded | RFC 4648 §4 / RFC 3629 UTF-8 |
| Length difference | Characters and bytes diverge: one CJK character becomes 3 bytes and then 4 Base64 characters | RFC 4648 §4, 6-bit group mapping |
| Padding handling | Decoding skips whitespace other than "=", and missing padding can be inferred from length | RFC 4648 §3.3 and §3.5 Canonical Encoding |