"Hello" in Base32
- Input
- Hello
- Expected output
- JBSWY3DP
8 chars for 5 bytes (60% overhead).
difference base32 base64
Base32 and Base64 are two of the most widely used binary encoding schemes, but with distinct characteristics that make them suitable for different contexts. Understanding the differences avoids wrong choices that can create compatibility problems.
8 chars for 5 bytes (60% overhead).
8 chars for 5 bytes (60% overhead, coincidence for 5 bytes).
If the other side says RFC 4648 without qualifying, it means the A-Z2-7 alphabet with padding. Use base32hex when the alphabetical order of the encoded text has to follow the numeric order of the data, which is the case for NSEC3 in DNSSEC. Use Crockford when the code will be read and typed by people and you want to catch errors on the spot with the check symbol. Use z-base-32 when the value will be spoken aloud. Picking the wrong one corrupts nothing, but the other side will not be able to decode it.
Base64url (the URL-safe variant of Base64, with - and _ instead of + and /) is the standard for JWT and session tokens. Base32 can be used in tokens that need to be typed or spoken by humans, but is less common in that context.
No. It helps explain the scenario and use the tool more safely, but real decisions should consider official sources, full context and qualified guidance when needed.
ABCDEFGHIJKLMNOPQRSTUVWXYZ234567Everything is computed in your browser, including the loaded file and any pasted secret. Nothing is sent to a server.