Binary File to Base64 Encoder / Translator

Use this tool to create data streams for embedding images (or any type of file) in (X)HTML, CSS and XML.

Encode file from URL URI:

Results will appear below

(X)HTML Image Embedding Example

<img alt="Embedded Image" 
  src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIA..." />

CSS Image Embedding Example

div.image {

XML Image Embedding Example

  <title>An Image</title>

Embed other stuff!

Data URIs can potentially store any type of data, not just images! Try these examples on for size:

(X)HTML CSS Embedding Example

<link rel="stylesheet" type="text/css"
  href="data:text/css;base64,LyogKioqKiogVGVtcGxhdGUgKioq..." />

(X)HTML Javascript Embedding Example

<script type="text/javascript"

Version 1.3