Convert any image to a Base64 encoded data URI — ready to paste directly into HTML, CSS, or JSON without hosting the file separately.
Drop your image here
JPG, PNG, WebP, SVG, GIF — any image type supported
data: URI format.<img> tag, a CSS background-image declaration, or a JSON-ready string.Base64 encoding increases file size by approximately 33% — a 100KB image becomes a ~133KB string. For large images or anything cached by the browser, external image files with proper cache headers are almost always the better choice. Base64 is most appropriate for small icons (under 5KB), email templates, and API payloads. For web performance optimization, the right approach is to compress images with our Image Compressor and serve them in WebP format — not to embed them as Base64. See our complete image SEO guide for a full web performance workflow.
data:image/png;base64,iVBORw0KGgo.... You can use this directly as the src attribute of an <img> tag or as a CSS url() value.