Bytes become Base64 characters
The encoder treats the selected image as file bytes rather than interpreting its visible pixels. Each 24-bit group becomes four characters from the standard Base64 alphabet. A final group containing fewer than three bytes receives one or two "=" padding characters. For a file containing n bytes, the standard payload length is exactly 4 x ceil(n / 3) characters, excluding any data URL prefix.