Encodes UTF-8 text to Base32 as defined in RFC 4648 and decodes Base32 back to text. Base32 uses only A–Z and 2–7, which makes it safe for case-insensitive systems and easy to read aloud. It is the format used for TOTP/2FA secrets.
The base32hex alphabet (0–9, A–V) from the same RFC is also available; it preserves sort order of the encoded data.
- Padding with
=is optional on encode and not required on decode. - Decoding ignores case, spaces and dashes, so grouped secrets like
JBSW Y3DPwork. - If the decoded bytes are binary rather than text, switch Decode output as to hex.
The implementation is checked against the RFC 4648 test vectors (foobar → MZXW6YTBOI======). Everything runs in your browser.