Enter text to encode it to Base64, or paste a Base64 string to decode it back to plain text. Useful for web development, API integration, and data transmission tasks.
Base64 Converter
Common Base64 Use Cases
Data URIs — embed small images or fonts directly in CSS or HTML: url('data:image/png;base64,...')
Email attachments — MIME encoding converts binary attachments to Base64 for transport through email protocols
HTTP Basic Authentication — credentials are sent as Authorization: Basic base64(username:password)
API payloads — transmit binary data (images, files) inside JSON fields which only support strings
JWT tokens — JSON Web Tokens use Base64URL (a URL-safe variant) to encode header and payload sections