Base64encodering
Base64encodering is a binary-to-text encoding scheme that represents binary data in an ASCII string format. In most contexts this technique is referred to as Base64 encoding rather than the coined term Base64encodering. It works by dividing input data into 24-bit blocks (three bytes) and mapping those bits to four 6-bit values, each encoded as an ASCII character. If the final block is fewer than three bytes, padding with equals signs (=) is added to complete the last four-character group.
The standard Base64 alphabet consists of the uppercase letters A–Z, the lowercase letters a–z, the digits 0–9,
Example: the ASCII string "Man" encodes to "TWFu". The strings "Ma" and "M" encode to "TWE=" and
Uses include embedding binary data in text-based formats such as email MIME parts, data URLs, and JSON
Base64 encoding is standardized in RFC 4648 and its URL-safe variant; earlier MIME specifications (RFC 2045/2046)