Encode text, SVG or CSS into a base64 or URL-encoded data URI you can embed inline in HTML or CSS with no external file. Text/SVG to Data URI is a free online tool from the ToolsRift HTML Tools collection. It runs entirely in your browser — nothing to install, no signup, and your data never leaves your device.
A data URI embeds a file's contents directly in a URL using the data: scheme, so small assets like SVG icons can live inline in HTML or CSS without a separate network request.
Base64 works for any content but adds about 33% size. For SVG, URL-encoding is often smaller and stays human-readable, so this tool generates both and you pick whichever is shorter.
Yes. Encoding uses your browser's built-in UTF-8-safe base64 and URL encoding entirely on the client, so your text or SVG is never uploaded to any server.