images · svg

SVG to Data URI

Base64 data:image/svg+xml URI of the exact SVG bytes — paste it into a CSS url() or an <img src>. Decoding the URI returns the original file byte for byte.

Workspace Files stay on your device
A little guidance. A better result.

How to use SVG to Data URI

Base64 data:image/svg+xml URI of the exact bytes — decodes back to the original file.

  1. Prepare your input

    Choose an SVG file.

  2. Use the workspace

    Generate its Base64 data URI.

  3. Check your result

    Test the URI in the intended image or CSS context.

Know the limits

Encoding does not sanitize SVG content. Content-security policies can restrict data URIs.

Where does my input go?

This browser tool processes your input on your device. Optional analytics is a separate choice; it is not needed to use the tool. Keep your original until you have checked the result.

Read the privacy details →
Made for the work in front of you.Report a problem ↗