Encode text and images to Base64, decode Base64 strings back to text or images. Perfect for embedding images in HTML/CSS. 100% private.
Type or paste text in the Encode Text tab to convert it to Base64. Great for encoding data for URLs or APIs.
Paste Base64 in the Decode Text tab to convert it back to readable text. Works with any valid Base64 string.
Upload an image in the Image → Base64 tab to get a data URI you can embed directly in HTML or CSS.
Paste a Base64 image string in the Base64 → Image tab to preview and download the image.
Privacy Note: All encoding and decoding happens locally in your browser. No data leaves your device.
Convert text to Base64 and back. Full Unicode support for any language.
Convert images to data URIs for embedding directly in HTML or CSS.
Real-time encoding and decoding as you type. No waiting.
See exactly how much larger your Base64 output is vs the original.
Encode and decode locally on your device with zero uploads.
No file size limits, no rate limiting, no sign-up required.
Base64 is a way to encode binary data (like images or files) into a text format using only ASCII characters. It's called "Base64" because it uses 64 different characters: A-Z, a-z, 0-9, +, and /.
The encoded output is always about 33% larger than the original because 3 bytes of binary data become 4 characters of Base64 text.
Embedding images in HTML/CSS — Use data URIs to include small images directly in your code.
JSON APIs — Send binary data in JSON format (which only supports text).
Email attachments — MIME encoding uses Base64 for file attachments.
Data URIs — Inline resources in web pages without separate HTTP requests.
Base64 is a binary-to-text encoding scheme that represents binary data using only printable ASCII characters. It's commonly used when you need to store or transmit data in environments that only support text, like JSON, HTML, or email.
No, Base64 is not encryption. It's an encoding scheme, not a security measure. Anyone can decode Base64 data instantly. Never use Base64 to "hide" sensitive information—it provides zero security.
Base64 encodes 3 bytes of binary data into 4 ASCII characters (plus possible padding). This means the output is always about 33% larger than the input. This is the tradeoff for text-compatibility.
A Data URI is a URL format that embeds data inline:
data:image/png;base64,ABC123.... It includes the MIME type and encoding
declaration.
Base64 is just the encoded data itself (the ABC123...
part). Data URIs
use Base64 to encode the actual content.
No. All encoding and decoding happens entirely in your browser using JavaScript. Your text and images never leave your device. You can verify this by checking the Network tab in your browser's Developer Tools—no data is transmitted.
We support PNG, JPG/JPEG, WebP, GIF, and SVG images. When you upload an image, we preserve its original format in the data URI. Most browsers can display all these formats when embedded as Base64.