Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It's commonly used for encoding data that needs to be transmitted over media designed to deal with text.
Base64 encoding converts 3 bytes of binary data into 4 ASCII characters, making it safe for transmission over protocols that might not handle binary data correctly.