在您的设备上处理
返回工具
颜色 · 全部工具

SVG 转数据 URI

SVG 转数据 URI. 选择本地 SVG 或粘贴源码,运行后可预览、缩放和下载。

文件和输入在此浏览器内处理,无需上传或注册账户。

支持的功能

输入
SVG · TXT
输出
SVG · TXT · CSS

如何使用SVG 转数据 URI

SVG 转数据 URI. 选择本地 SVG 或粘贴源码,运行后可预览、缩放和下载。

  1. 选择本地 SVG 或粘贴源码,运行后可预览、缩放和下载。
  2. 使用不含脚本、外部资源、嵌入图像、滤镜或动画的静态 SVG。
  3. 复制结果或下载到设备。

SVG 转数据 URI · 示例

输入

<svg xmlns="http://www.w3.org/2000/svg" width="320" height="200" viewBox="0 0 320 200">
  <rect width="320" height="200" rx="24" fill="#eef1ff"/>
  <circle cx="100" cy="100" r="58" fill="#5265d8"/>
  <path d="M172 140 L222 54 L272 140 Z" fill="#e98367"/>
</svg>

输出

data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22320%22%20height%3D%22200%22%20viewBox%3D%220%200%20320%20200%22%3E%0A%20%20%3Crect%20width%3D%22320%22%20height%3D%22200%22%20rx%3D%2224%22%20fill%3D%22%23eef1ff%22%2F%3E%0A%20%20%3Ccircle%20cx%3D%22100%22%20cy%3D%22100%22%20r%3D%2258%22%20fill%3D%22%235265d8%22%2F%3E%0A%20%20%3Cpath%20d%3D%22M172%20140%20L222%2054%20L272%20140%20Z%22%20fill%3D%22%23e98367%22%2F%3E%0A%3C%2Fsvg%3E

使用说明

文件和输入在此浏览器内处理,无需上传或注册账户。

支持有限的 SVG 子集:形状、文字和渐变。不支持图案、遮罩和标记。

SVG 以图像预览,源码不会插入应用文档。

使用不含脚本、外部资源、嵌入图像、滤镜或动画的静态 SVG。

Add or Subtract DaysMove a calendar date forward or backward.AES DecryptAuthenticate and decrypt a LocalKit AES-256-GCM JSON envelope with its password.AES EncryptEncrypt UTF-8 text with AES-256-GCM and a password-derived PBKDF2-SHA-256 key. Every run uses a fresh salt and nonce.Age CalculatorCalculate completed years, months and days between a birth date and a reference date.Anagram CheckerCompare letters and numbers after Unicode normalization, ignoring spacing and case.Angle ConverterConvert angle units with selectable source and target units and precise local results.Apache Config EditorEdit Apache Config source locally with syntax colors, line numbers, find and replace, undo, file import and download. Source is not executed.Archive Contents ViewerBrowse and search file paths inside ZIP, TAR and TGZ archives. Select files to download locally.

语言

代码示例、格式名称和解析器技术错误可能保留原始写法。