DevToolBox免费
博客

SVG to CSS Background Image Converter Online - Free Tool

Convert SVG code to CSS background-image using data URI encoding. Free online tool with URL-encode and base64 options.

background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E %3Ccircle cx='50' cy='50' r='40' fill='%233b82f6' /%3E %3C/svg%3E");
data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E %3Ccircle cx='50' cy='50' r='40' fill='%233b82f6' /%3E %3C/svg%3E

SVG to CSS Converter

Convert SVG graphics to CSS background-image inline styles using data URI encoding.

Features

  • URL-encode and Base64 encoding options
  • CSS property format selection
  • SVG optimization and minification
  • Real-time preview of SVG graphics
𝕏 Twitterin LinkedIn

评价此工具

4.1 / 5 · 197 人评价

保持更新

获取每周开发技巧和新工具通知。

无垃圾邮件,随时退订。

Enjoy these free tools?

Buy Me a Coffee