Base64 turns any data - even bytes that aren’t normal text - into plain text characters. That lets it go through JSON, a remote, or a file without breaking. The result is about a third bigger than the input.Most commonly used to make a binary payload safe to send over request or store with writefile.