Estimate the encoded string length from input bytes per Base32 rules for transfer and storage capacity planning.
用于预估编码后数据大小。
| Item | Formula / Rule | Source / Standard |
|---|---|---|
| Encoded length | L = 8 × ⌈n / 5⌉ where n is the input byte count, padding included | RFC 4648 §6 Base 32 |
| Padding rule | Padding count = (5 − n mod 5) mod 5, filled with "=" | RFC 4648 §6 / §3.2 |
| Alphabet | A–Z plus 2–7 give 32 symbols, mapped from 5-bit groups | RFC 4648 §6, Table 3 |