Base32 Encode/Decode

RFC 4648 Base32/Base32Hex encode and decode

Base32 Encode/Decode Guide

About Base32

  • RFC 4648 binary-to-text encoding standard
  • Uses 32 printable characters (A-Z and 2-7)
  • More suitable than Base64 for case-insensitive scenarios
  • Commonly used for TOTP/HOTP two-factor auth keys

Base32Hex Variant

  • Uses 0-9 and A-V (32 characters total)
  • Digits first, better for numeric sorting
  • Also defined in RFC 4648
  • Not compatible with standard Base32