input output

JavaScript is switched off or not working — that's okay! InputOutput works fine without it.

SVG to Base64 converter

Use this tool to convert svg code to base64 for use in Data URLs.

Input SVG
Output

What does this tool do?

This tool takes svg input, and converts it to base64 for use in Data URLs.

It also adds the xmlns='http://www.w3.org/2000/svg' attribute if it is missing.

When to use this tool

Base64 is more appropriate for use with binary image data like jpeg or png. For text based format like svg it is better to use URL encoding.

Only use this tool if the output of SVG to CSS converter doesn't fit your requirements.