Why is URL-encoding better than base64 for SVG?
URL-encoding keeps the SVG readable and usually makes a smaller data URI, because only a few characters such as <, >, # and % need escaping. Base64 turns every byte into four characters, so the same SVG grows by about a third. Use URL-encoding for CSS backgrounds and icons unless a tool rejects the special characters.