Great for Small Assets (< 10 KB)
Eliminates extra HTTP requests for tiny UI icons, favicons, inline email badges, and self-contained single-file HTML templates.
MEDIA & IMAGE ENCODING · BASE64 DATA URI, HTML, CSS & DECODER
Convert PNG, JPEG, GIF, and WebP images to Base64 Data URIs, HTML, CSS, Markdown, or JSON—or decode Base64 strings back into downloadable images locally in your browser.
BASE64 FORMAT SIGNATURES & SIZE OVERHEAD
| Format | MIME Type | Base64 Prefix | Best Inline Use |
|---|---|---|---|
| PNG | image/png | iVBORw0KGgo... | Crisp UI icons, badges & transparent logos |
| WebP | image/webp | UklGR... | Smallest inline payload for modern web apps |
| JPEG | image/jpeg | /9j/... | Tiny preview thumbnails & LQIP blur-up placeholders |
| GIF | image/gif | R0lGODlh... | 1×1 tracking pixels & micro loading indicators |
Eliminates extra HTTP requests for tiny UI icons, favicons, inline email badges, and self-contained single-file HTML templates.
Base64 adds ~33% payload overhead and prevents the browser from caching the image independently of your HTML or CSS bundle.
Pair with Base64 Text Encoder, Aspect Ratio Calculator, or Image Compressor.
No. Encoding and decoding happen 100% locally in your browser using the FileReader and Blob APIs. Your images never leave your device.
Base64 represents every 3 bytes of binary data as 4 ASCII text characters, adding roughly 33% size overhead. It is ideal for small icons, logos, and email embeds (under 10–20 KB), while larger photos are better served as regular image files.
Yes. Paste either a raw Base64 string or a full data:image/... URI into the input box, click "Decode Base64", verify the live preview, and click "Download Image".
PNG, JPEG, GIF, and WebP files up to 5 MiB are supported with automatic magic-byte file signature detection.
Raw Base64 is just the encoded characters (starting with iVBOR... for PNG or /9j/... for JPEG). A Data URI adds the prefix data:image/png;base64, so browsers can render it directly inside HTML <img> tags or CSS url() rules.