65.9K
CodeProject is changing. Read more.
Home

Convert an integer to a base 64 string and back again very quickly

starIconstarIcon
emptyStarIcon
starIcon
emptyStarIconemptyStarIcon

2.77/5 (9 votes)

Jul 4, 2008

Public Domain

1 min read

viewsIcon

65430

downloadIcon

320

Convert a positive 32 bit integer to a base 64 string. This is the fastest and shortest encoding / decoding of an integer to / from text. Easily modified for 64 bit integers.