About this tool
Turn text, markup or styles into a data: URI you can paste into HTML or CSS, using either Base64 or URL-encoding, all in your browser.
Choose a MIME type (text/plain, text/html, image/svg+xml, text/css or application/json). With Base64 on, the output is data:type;base64, plus the data; with it off, it is data:type, plus the text percent-encoded with encodeURIComponent. No charset parameter is added, and the result updates as you type.
Input is text only, so images and other binary files cannot be converted; SVG works because it is text. The page opens with <h1>Hello</h1> and text/html selected.