RFC 4648
Output is padded to a multiple of 8 characters with =, matching the standard. Decode ignores whitespace and accepts lowercase.
Frequently asked questions
TOTP secrets?
Yes — this is exactly the encoding Google Authenticator keys use.
Case sensitive?
Decode accepts both cases; encode always emits uppercase.
No padding?
Base32hex / no-pad variants are not emitted — strip trailing = if needed.