Skip to main content
Back to Tools

Base64 to SVG

Decode Base64 encoded strings back to clean SVG XML.

Input

Drag & drop SVG

Drop a .svg file here, click to browse, or paste raw markup below.

input.svg

Output

Result will appear here

Browser-local SVG Processing

The Base64 to SVG utility processes SVG content in your browser. The raw SVG is not uploaded for processing; actual processing time depends on the file and your device. See the Privacy Policy for normal website requests and hosting logs.

About Base64 to SVG

Instantly convert Base64 encoded data URIs back into clean, readable SVG XML format for editing, previewing, and optimization. It automatically strips data URI headers (`data:image/svg+xml;base64,`), decodes binary payloads, and validates the resulting XML structure. Ideal for recovering vector source code from CSS stylesheets or inline web scripts.

How It Works

01

Paste your Base64 string or data URI.

02

The decoder extracts the payload.

03

Copy or download the resulting SVG.

Base64 decoding notes

Base64 to SVG recovers readable SVG XML from a Base64 Data URI or payload. It is useful when an icon is embedded in CSS or generated markup and you need to inspect, edit, format, or optimize the original vector representation.

What this tool does

  • Recognizes a Data URI prefix and extracts the encoded payload.
  • Decodes the Base64 bytes back into readable SVG/XML text.
  • Returns text that can be sent to Formatter, Analyze, Optimize, or another tool.

Review before publishing

  • A decoded string is not proof that the source is safe or semantically correct; review untrusted content before rendering it.
  • Corrupted, truncated, or non-SVG payloads may decode to invalid markup and require Repair SVG.
  • Original CSS context, variables, and surrounding escaping are not reconstructed from the payload alone.

Encoded input

data:image/svg+xml;base64,PHN2ZyB4bWxucz0i...

Decoded SVG

<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 4'>
  <path d='M0 0h4v4H0z'/>
</svg>

Frequently Asked Questions

Can I decode data:image/svg+xml;base64 URIs?

Yes, data URI headers are automatically trimmed before decoding.

What happens if the Base64 string is corrupted?

The tool catches invalid Base64 sequences and displays a clear error message.

Does decoding run inside my browser tab?

Yes, Base64 decoding runs in your browser without uploading the SVG content for processing. Normal website requests and hosting logs are covered by the Privacy Policy.

Related Vector Utilities

View all 39 tools