What Base64 does
Base64 represents binary data with printable characters, so the value can travel through systems that expect text.
Standard Base64 uses plus and slash. Base64URL uses dash and underscore so the result is easier to place in URLs and filenames.
Some MIME data is wrapped at 76 characters per line. Most modern API values stay on one line unless a format asks for wrapping.