Upload any image to instantly get its Base64 string, Data URI, HTML tag, CSS snippet and more — entirely in your browser.
Base64 encoding converts binary image data into a string of ASCII characters that can be safely embedded in text-based formats like HTML, CSS, JSON, and XML. Instead of linking to an external image file, you can embed the image data directly as a Data URI (e.g. data:image/png;base64,iVBORw0K…). This eliminates an HTTP request, which can improve performance for small images like icons and logos.
Base64 encoding increases the file size by approximately 33%. A 100KB PNG becomes ~133KB as a Base64 string. For large images, this overhead plus the inability to cache the Base64 string separately makes external image files more efficient. The break-even point is generally around 5–10KB for HTTP/1.1 connections.
src or url().data:…;base64, prefix.<img src="data:…"> element ready to paste.background-image: url('data:…') declaration.--var-name: url('data:…') custom property declaration.