Generate RFC 2397 Base64 Data URIs for SVG, HTML, CSS & JS
Data URIs allow you to embed inline SVG icons, HTML snippets, CSS stylesheets, or JSON payloads directly inside URLs, CSS rules, and HTML attributes without external network requests.
Select the Exact MIME Type for Your Inline Asset
Choose from image/svg+xml, text/html, text/css, application/javascript, application/json, or text/plain, paste your code, and copy the complete data:
Validate & Inspect Any Data URI Locally
All encoding happens in your browser via TextEncoder. Want to validate or decode an existing Data URI? Use Base64 Validator on 64Decode.