Weirdo
Search weird questions

Question

Auth OdditiesSeptember 25, 2026

Why are some SMS OTP codes 4 digits and others 6?

OTPSMSNIST

Details

No universal digit count

There is no worldwide law that SMS one-time passwords must be four or six digits. Banks, shops, and government portals pick their own lengths. Seeing both in the wild reflects different eras, risk levels, and typing comfort—not a carrier rule about code size.2

Why six digits dominate newer systems

NIST SP 800-63B requires verifier-generated out-of-band secrets to be at least six decimal digits (or equivalent) and to rate-limit failed attempts; issuing a new code must not reset the failure counter. That floor pushed many newer systems to six digits, while older or lower-risk flows may still send four.3

Length is only one control

Four digits feel like a PIN; six digits match common hardware/software OTP practice (including TOTP truncations). Length alone does not fix SMS risks such as SIM swap or interception, so higher-assurance accounts add authenticator apps or passkeys on top.3

Also Asked As

SMS OTP 4 digit vs 6 · verification code length · why 6 digit OTP