文件格式任意转换助手Transfer Any File

离线 · 无上传 · 浏览器本地完成Offline · no uploads · runs in the browser

SVG 转换:全部可用目标SVG conversions: every available target

SVG 是代码描述的图形,不是像素。写进 HTML 时它保持矢量,但脚本、事件处理器与远程引用会在净化时被剥离;转成图片、PDF 或 Word 时先栅格化成 PNG,于是缩放不再无损。浏览器不能写 SVG,所以它只能作为源格式。An SVG describes a drawing in code rather than pixels. Written into HTML it stays vector, but scripts, event handlers and remote references are stripped during sanitisation; turning it into an image, PDF or Word rasterises it to PNG first, so scaling stops being lossless. Browsers cannot write SVG, which is why it is source-only.

一批转换结果卡片,含文件名、体积与下载入口
一次混合批量,一个 ZIP 下载One mixed batch, one ZIP download

全部可用目标Every available target

  • MarkdownMarkdown 2 步2 steps

    SVGSVG HTMLHTML MarkdownMarkdown

    两步:先包成能打开的网页,再序列化时把内联 SVG 栅格化成 PNG,产物是一行内联图片语法。矢量结构到此为止。Two steps: wrap it as a page, then on the way out each inline SVG is rasterised to PNG, leaving one inline image line. The vector ends here.

    有专页 →Full page →

  • HTMLHTML 1 步1 step

    SVGSVG HTMLHTML

    在浏览器里把 .svg 包成一份能直接打开的 HTML:图形仍是矢量,缩放不失真;脚本与事件属性在净化时被剥掉。不上传。The SVG is wrapped in a page you can open, and it stays vector — zoomable, with scripts and event attributes removed by sanitising. Nothing uploaded.

    有专页 →Full page →

  • Word (.docx)Word (.docx) 2 步2 steps

    SVGSVG HTMLHTML Word (.docx)Word (.docx)

    两步进 Word:图形在打包前被栅格化成 PNG 并提成包内图片部件,界面会写明这次发生了栅格化。全程离线,不上传。Two steps into Word: the artwork is rasterised to PNG before packing and lifted into an image part, and the result card says so. Fully offline.

    有专页 →Full page →

  • PDFPDF 2 步2 steps

    SVGSVG PNGPNG PDFPDF

    在浏览器里把 .svg 转成 .pdf:SVG 先归一化并栅格化成 PNG,再按像素尺寸铺成一页。不联网、不上传,脚本内容先剥除。The SVG is normalised, stripped of active content and rasterised to a bitmap page sized to its pixels. No vector, no text layer.

    有专页 →Full page →

  • PNGPNG 1 步1 step

    SVGSVG PNGPNG

    浏览器本地把 SVG 栅格化成 PNG(也可出 JPEG / WebP)。矢量按当前尺寸渲染,脚本与事件属性先行剥离,外链资源不会去取。Rasterise SVG to PNG in your browser at the size you set: scripts and event attributes are stripped first, and remote resources are never fetched.

    有专页 →Full page →

  • JPEGJPEG 1 步1 step

    SVGSVG JPEGJPEG

    浏览器本地把 .svg 栅格化后编成 JPEG:先净化掉脚本与事件属性、按 width / viewBox 定尺寸(都没有时按 1024 px 方形),再画到画布编码。SVG 只能作为输入,方向不可逆;需要透明请改选 PNG 或 WebP。Rasterise a .svg to JPEG: scripts and event attributes are sanitised out first, size comes from width / viewBox (else a 1024 px square). SVG is input-only here.

    有专页 →Full page →

  • WebPWebP 1 步1 step

    SVGSVG WebPWebP

    浏览器本地把 .svg 栅格化后编成 WebP:带 Alpha,所以透明图形的背景能留住;质量档 40%–90%、目标体积 20 KB–2 MB、最长边可调。尺寸按 width / viewBox 推断,外部引用一律不请求。Rasterise a .svg to WebP locally — the SVG route that keeps transparency, with quality, target size and longest edge adjustable and nothing external fetched.

    有专页 →Full page →

界面上置灰的目标Targets the picker greys out

下面这些目标在路径图上可达,但语义上无效,工作台会把它们置灰并给出原因,而不是让你点下去得到一个空文件。These targets are reachable in the graph but semantically invalid, so the workbench greys them out with the same reason instead of letting you click through to an empty file.

  • Excel (.xlsx):图片无法转换为文本或表格数据(需 OCR,暂不支持)Excel (.xlsx): Images cannot become text or tabular data (needs OCR, not supported)
  • CSV:图片无法转换为文本或表格数据(需 OCR,暂不支持)CSV: Images cannot become text or tabular data (needs OCR, not supported)
  • 纯文本 (TXT):图片无法转换为文本或表格数据(需 OCR,暂不支持)plain text (TXT): Images cannot become text or tabular data (needs OCR, not supported)
  • JSON:图片无法转换为文本或表格数据(需 OCR,暂不支持)JSON: Images cannot become text or tabular data (needs OCR, not supported)

这个来源格式的共同限制What holds for every target from this source

  • SVG 不是可写格式:目标列表里不会出现它,转换只能从它出发SVG is not writable: it never appears as a target, only as a starting point
  • 脚本、内联事件、外部 `<use>` 与远程图片在净化或栅格化前被剥离;动效与交互不会保留Scripts, inline events, external `<use>` and remote images are stripped before sanitising or rasterising; animation and interaction do not survive
  • 转图片、PDF、Word 都经过 PNG 栅格化:矢量边缘变成像素,缩放不再无损Images, PDF and Word go through PNG rasterisation: vector edges become pixels and scaling stops being lossless
  • 没有 OCR;图片到 TXT、CSV、JSON、Excel 的组合被置灰并说明No OCR; image to TXT, CSV, JSON and Excel are greyed out with a reason

常见问题Questions people actually ask

SVG 里的脚本会执行吗?Do scripts inside an SVG run?

不会。SVG 在进入 HTML 或栅格化之前先被净化:`<script>`、事件属性、外部引用与 `javascript:` 地址全部移除。图形保留,行为不保留。No. The SVG is sanitised before it enters HTML or a rasteriser: `<script>`, event attributes, external references and `javascript:` URLs are all removed. The drawing stays; the behaviour does not.

SVG 转 PNG 会变模糊吗?Does SVG to PNG become blurry?

栅格化后就是位图,放大到超过栅格尺寸才会模糊;输出时按画布与 MAX_DIM 决定像素。要无限缩放,请继续使用 SVG。Once rasterised it is a bitmap, and blur appears only when it is scaled beyond the raster size. The output pixels follow the canvas and MAX_DIM. For unlimited scaling, keep the SVG.

SVG 转 HTML 还是矢量的吗?Is SVG to HTML still vector?

是。净化后的 SVG 标记直接进入 HTML,浏览器按矢量渲染;远程字体、图片与脚本引用被剥离,所以外观可能与原页面不同。Yes. The sanitised SVG markup goes straight into the HTML and the browser renders it as vector. Remote fonts, images and script references are stripped, so it can look different from the original page.

图表里的文字能编辑吗?Is text inside a chart editable?

转 HTML 时它仍是 SVG 文本,能在源码里改;转成 PNG、PDF 或 Word 后就是像素,没有文字层。需要可编辑的图表文字,请选 HTML 或保留 SVG 源文件。In HTML it remains SVG text and can be edited in the source. As PNG, PDF or Word it is pixels with no text layer. For editable chart labels, choose HTML or keep the SVG source.

不需要账号,也不需要联网:装好扩展后点图标,在新标签页里打开工作台,文件从磁盘直接选。No account and no network: install the extension, click its icon, and the workbench opens in a new tab reading straight off your disk.

最后更新 2026-10-21Last updated: 2026-10-21