Using a data URI is a nice way to include a web resource without needing to make an HTTP request. Chris Coyier explains the technique nicely in [Probably Don't Base64 SVG](https://css-tricks.com/probably-dont-base64-svg/). While a PNG might use Base64 encoding, for SVG, there is a better way. Taylor Hunt's experiments led to this solution for [optimizing SVGs in data URIs](https://codepen.io/tigt/post/optimizing-svgs-in-data-uris): "So the best way of encoding SVG in a data URI is `data:image/svg+xml,[actual data]`. We don’t need the `;charset=utf-8` parameter (or the invalid `;utf8` parameter…), because URLs are always ASCII." Here is a step-by-step method to create your encoded SVG string to include as a data URI: 1. Run your SVG file through [svgo](https://github.com/svg/svgo) to optimize. (Directions are found at the svgo link.) 1. In your text editor, replace all double quotes in your SVG file with single quotes. Make sure there are no line breaks. 1. Replace all non-ASCII and URL-unsafe characters by running your SVG string through an encoding function like the one below by Taylor Hunt—surround your `svgString` with double quotes in the function's argument. 1. Paste your encoded SVG into your HTML tag's `src` attribute or CSS's url call using double quotes, after the `data:image/sg+xml,` prefix. Examples: HTML: ```html ``` CSS: ```css .logo { background: url("data:image/svg+xml,%3Csvg ... /svg%3E"); } ``` The `%3svg` starts your encoded string and the `svg%3E` ends your encoded string. Let me know if any questions.