#ascii #convert-binary #binary-data #bases #base-16 #base58 #base10 #base64 #base36

basen

Convert binary data to ASCII with a variety of supported bases

1 unstable release

0.1.0 Aug 2, 2022

#1282 in Text processing

Download history 1096/week @ 2025-10-21 1756/week @ 2025-10-28 7039/week @ 2025-11-04 4520/week @ 2025-11-11 4833/week @ 2025-11-18 3152/week @ 2025-11-25 5883/week @ 2025-12-02 5979/week @ 2025-12-09 4479/week @ 2025-12-16 3075/week @ 2025-12-23 2679/week @ 2025-12-30 2581/week @ 2026-01-06 5181/week @ 2026-01-13 4676/week @ 2026-01-20 5903/week @ 2026-01-27 6087/week @ 2026-02-03

22,101 downloads per month
Used in 25 crates (3 directly)

MIT/Apache

11KB
208 lines

BaseN

Convert binary data to ASCII with a variety of supported bases.

assert_eq!(BASE58.encode_const_len(&1557596383284252235u64), "4chjCmhbVFY");
assert_eq!(BASE58.decode_const_len("4chjCmhbVFY"), Some(1557596383284252235u64));

Characters required (without padding):

bits 32 64 128 256 512
Base10 10 20 39 78 155
Base16 8 16 32 64 128
Base32 7 13 26 52 103
Base36 7 13 25 50 100
Base58 6 11 22 44 88
Base62 6 11 22 43 86
Base64 6 11 22 43 86

No runtime deps