Base64 Encoding and Data URLs
Base64 encoding converts binary image data into ASCII text using 64 characters (A-Z, a-z, 0-9, +, /), allowing images to be embedded in HTML/CSS/JSON without external files. The encoding process: reads image binary data (JPEG, PNG, GIF, WebP bytes), splits into 6-bit groups (Base64 uses 6 bits per character vs 8 bits for binary), maps each group to Base64 character set, and pads with = for alignment.