Turn an unsigned decimal into the Base64 of its bytes, or the other way.
Some APIs store an integer as the Base64 of its big-endian bytes, not as the Base64 of the decimal digits. This page converts an unsigned integer to that Base64, or reads the bytes back to decimal. Encoding the characters themselves is Base64.
256. The result is AQA=, the bytes 01 00. 255 is /w==. 0 is AA==, one zero byte.Decimal to Base64 accepts digits only. A minus sign, a decimal point, spaces and a leading plus are rejected. The integer is written in hexadecimal, padded to an even number of digits, then those bytes are standard Base64. The only leading zero is that padding, so 0 is a single 00 byte. Base64 to decimal reads standard Base64, treats the bytes as an unsigned big-endian integer, and prints decimal. Empty Base64 is an error. Extra leading 00 bytes do not change the decimal value.
AQA=, not the Base64 of the characters 2, 5 and 6.That encodes the characters. This page encodes the integer 256 as the bytes 01 00.
Only unsigned integers. There is no sign byte.