Convert text, SVG, CSS or HTML into a data: URI (base64 or URL-encoded). Data URI Generator is a free online tool from the ToolsRift Encoders & Decoders collection. It runs entirely in your browser — nothing to install, no signup, and your data never leaves your device.
Paste your content, pick its MIME type, and choose base64 or URL-encoded output. Copy the resulting data: URI straight into your HTML src, CSS url() or JavaScript.
URL-encoding is usually smaller for text-based content like SVG and keeps it human-readable; base64 is more robust for arbitrary/binary content and older parsers.
It inlines assets directly into HTML or CSS, removing a network request — great for small icons, SVGs and CSS backgrounds.
Match the content: image/svg+xml for SVG, text/css for stylesheets, text/html for markup, application/json for JSON, or text/plain for raw text.