Image

SVG Editor

Paste or load inline SVG markup and see a live raster preview (safe for pasted content), plus quick stats from viewBox / width / height. Copy or download your file — processing stays in your browser, like the APK Analyzer and APK String Extractor: nothing is uploaded to DroidXP.

Ad placement — top banner

No file loaded — paste or drop SVG

Edits auto-save as a draft in localStorage (this device only). Use Clear to remove the draft.

Drop .svg here or click to browse
Preview (rasterized)

Preview uses an <img> with a blob URL so embedded scripts in the SVG do not run in this page — see FAQ for details.

Ad placement — mid rectangle

What is this SVG editor?

Scalable Vector Graphics (SVG) is XML you can edit as text — ideal for icons, logos, and simple illustrations in web and Android asset pipelines. This page gives you a code-first workspace with an immediate visual check, similar in spirit to how our APK Analyzer surfaces structure locally: you see what you are editing, and your file never leaves the browser tab unless you copy or download it yourself.

How preview works

The preview renders your markup as an SVG image via a blob URL. That keeps this page safer when pasting markup from unknown sources because script inside SVG is not executed when displayed through an <img> in modern browsers. The trade-off is that some features (animations driven by script, certain foreignObject setups, or external images blocked by CORS) may not look exactly like inline SVG in your final app — always verify in your target WebView or browser.

Dimensions and stats

When the markup parses, we read viewBox and root width/height attributes for the stats row. Invalid or missing values show as em dashes — fix the root <svg> element in your editor.

Workflow ideas

  • Tweak icons exported from design tools before committing to a repo.
  • Strip metadata or simplify paths from third-party SVGs (manually).
  • Pair with Image to Base64 if you need a data URL for HTML or CSS.

How to use this tool

  1. Step 1: Paste SVG into the editor, or drop / browse an .svg file.
  2. Step 2: Watch the preview and stats update as you type.
  3. Step 3: Copy markup for your bundler, or download a fresh .svg file.
  4. Step 4: For production assets, run your usual linting, optimization (SVGO), and accessibility checks.

Frequently Asked Questions

Does DroidXP upload my SVG?

No. Text and previews stay in your browser. Nothing is sent to DroidXP servers for this tool.

Why is preview shown as an image instead of inline DOM?

Raster preview via a blob URL avoids executing script or foreignObject content in this page, which is safer for pasted markup from unknown sources.

Will embedded scripts in SVG run here?

The preview uses an img element with an SVG blob URL; browsers do not run scripts inside SVG when used that way. Your source text is still plain markup — do not paste untrusted SVG into production without review.

Why do external images or fonts not show in preview?

Security and CORS rules may block cross-origin resources inside an SVG when rendered as an image. Verify assets in your target environment.

Does this validate SVG against the full spec?

No. It uses a lightweight DOM parse for hints and attempts a visual preview. Use a dedicated validator or design tool for full conformance checks.

What does localStorage store?

Only droidxp-sve-svg saves your editor text so a refresh does not wipe work. Clear removes the draft key.

Can I edit huge SVG files?

Very large documents can slow the tab. Split files or use a desktop editor for megabyte-scale assets.

Is this the same as Illustrator or Figma?

No. This is a code-first editor with preview — not a full vector design suite.

Is this safe for confidential artwork?

Follow your policy. Data stays local to the browser session, but extensions and shared machines can still expose what you paste.

Can I use this offline?

After the page is cached, it can work offline. No network is required to edit or download SVG.