Loading...
Encode and decode text or files to Base64 — instantly in your browser.
Base64 is a binary-to-text encoding scheme defined in RFC 4648 that represents binary data using 64 ASCII characters (A-Z, a-z, 0-9, +, /). It increases data size by approximately 33% but ensures safe transmission through text-only channels like email, JSON, and URLs.
Use Base64 to embed images in HTML/CSS (data URIs), transmit binary data in JSON APIs, encode email attachments (MIME), store binary data in text-based databases, or pass data through URL parameters.
No. Base64 is an encoding scheme, not encryption. It is fully reversible without a key and provides no security. Anyone can decode Base64 data. For security, use proper encryption (AES, RSA) before encoding.
Standard Base64 uses + and / characters which are problematic in URLs. Base64URL replaces them with - and _ respectively, and omits padding (=). It is used in JWTs, URL parameters, and filename-safe contexts.
Base64 encodes every 3 bytes of input into 4 ASCII characters (6 bits per character). This 4/3 ratio means the output is always approximately 33% larger than the input, plus optional padding characters.
Base64 encoding (RFC 4648) converts binary data into a text representation using 64 ASCII characters. It was originally designed for email (MIME, RFC 2045) to safely transmit binary attachments through text-only protocols. Today it is used extensively in web development for data URIs (embedding images in HTML/CSS), JWT tokens, API authentication headers (HTTP Basic Auth), and transmitting binary data in JSON payloads. The encoding process takes 3 bytes of input and produces 4 Base64 characters, resulting in approximately 33% size overhead.
This tool is particularly useful when: