How to use it
Turn SVG into the shorter of a URL-encoded or Base64 data URI, with a ready CSS background snippet. Paste SVG markup above and choose the shortest, URL-encoded, or Base64 representation.
Example
Input: <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1 1"/>
Output: data:image/svg+xml,...Limits and behavior
- The URI contains the supplied SVG markup; embedded remote resources are not fetched.
- Input is limited to 1 MiB of UTF-8 text.