Note: Base64 encoding converts text or binary data into ASCII characters. URL-safe encoding replaces + with -, / with _, and removes padding = characters.
About this tool
Use it to
Encode credentials for Basic Authentication headers
Embed small text or data directly in HTML/CSS
Encode text data for JSON transmission
Create Base64-encoded strings for APIs
Basic Auth Header
Encode "username:password" to "dXNlcm5hbWU6cGFzc3dvcmQ=" for use in an HTTP Authorization header.
Data URI
Encode text to Base64 for use in data URIs in HTML or CSS.