Encode text or files to Base64 and decode Base64 strings back — entirely in your browser.
Switch between Encode and Decode modes. Supports plain text, Unicode, and file input including images — with an inline image preview for Base64 image strings.
Base64 is a binary-to-text encoding scheme that represents binary data using only 64 printable ASCII characters: A–Z, a–z, 0–9, +, and /, with = used for padding. It is used to safely transmit binary data — such as images, files, or cryptographic keys — through text-based channels like email (MIME), JSON APIs, HTML data URIs, and HTTP headers that may not handle raw binary safely.
+ with - and / with _ for use in URLs and filenames.data: URI for use in HTML or CSS.base64url) for use in URLs and JWT tokens.data:image/png;base64,... to eliminate HTTP requests.Base64(username:password) in the Authorization header.Standard Base64 uses + and / characters which have special meaning in URLs. URL-safe Base64 (defined in RFC 4648) replaces + with - and / with _, and typically omits the = padding. This variant is used in JWT tokens, OAuth 2.0, and any context where the Base64 string appears in a URL query parameter or filename.