Base64 Encoder / Decoder
Encode text and files to Base64, or decode Base64 strings instantly. 100% client-side.
Drag & drop a file here, or click to select
All processing is done entirely in your browser. No data is sent to any server.
What is Base64?
Base64 is an encoding scheme that converts binary data into ASCII text using 64 safe characters (A–Z, a–z, 0–9, +, /). It is widely used in email attachments (MIME), HTTP headers, JWT tokens, and inline image embedding. Note that Base64 is encoding, not encryption — anyone can decode it. Never store sensitive data in Base64 without additional encryption.
Use Cases for Base64 Encoding
Email Attachments (MIME)
Binary attachments such as images and documents are converted to Base64 to safely transmit them as ASCII text in email.
HTTP Basic Authentication
Credentials in the format username:password are Base64-encoded and sent in the Authorization header.
JWT (JSON Web Token)
JWT header and payload are encoded with URL-safe Base64 (Base64URL). This tool works great alongside the JWT Decoder.
Inline Image Embedding
Images are embedded directly in HTML or CSS as data URIs using Base64, eliminating the need for separate image requests.
Standard vs URL-safe Base64
| Item | Standard | URL-safe |
|---|---|---|
| Special chars | +, / | -, _ |
| Padding | = | Omitted |
| Common use | Email, general encoding | URL, JWT, filenames |