Base64 Encoder/Decoder
Encode text to Base64 or decode Base64 strings back to plain text — instantly, in your browser.
How to Encode and Decode Base64 Online
Encoding (Text → Base64)
- 1.Paste your plain text into the input field
- 2.Select "Encode" mode
- 3.The Base64 output appears instantly
- 4.Click copy to grab the encoded string
Decoding (Base64 → Text)
- 1.Paste your Base64 string into the input field
- 2.Select "Decode" mode
- 3.The decoded plain text appears instantly
- 4.Click copy to grab the result
What is Base64?
Base64 is an encoding scheme that converts binary data into a set of 64 ASCII characters (A–Z, a–z, 0–9, +, /). It is widely used to safely transmit data over systems that only handle text — such as embedding images in HTML/CSS, sending binary data in JSON APIs, encoding email attachments, and storing credentials in HTTP headers. Base64 is an encoding, not encryption — it is easily reversible.
Common Use Cases
API Authentication
Basic Auth headers use Base64 encoding: "username:password" → Base64 string sent in the Authorization header.
Embedding Images
Inline images in HTML or CSS as data URIs (data:image/png;base64,...) to reduce HTTP requests.
JWT Tokens
JSON Web Tokens use Base64URL encoding for their header and payload sections.
Email Attachments
MIME email protocol encodes binary attachments in Base64 for safe transmission over text-based email systems.
Data URLs
Encode fonts, SVGs, and small files directly into stylesheets and HTML to avoid extra network requests.
Debugging APIs
Decode Base64 strings in API responses or JWT tokens to inspect the raw payload during development.