Base64Doc

Decode Base64 to Crisp SVG Vector Graphics

100% Browser Local · 0 File Uploads · 100MB+ Ready

Reveal white or transparent SVG paths on a checkerboard canvas, inspect viewBox dimensions, and download clean .svg markup or raster .png assets.

Try 1-Click Synthetic Samples (Zero-Trademark):

Drop any file, paste Base64, or press Ctrl/Cmd+V with clipboard files or raw API JSON

Runs inside a local Web Worker. Network tab stays at 0 file POST requests.

0 chars
Decoded Result & Document Actions Appear Here

Paste any Base64 string, Data URI, Postman JSON, SOAP XML, HAR, or EML payload on the left.

Interactive Synthetic Showcase Gallery

Load real client-side verified payloads straight into the workbench above. Zero third-party trademarks.

Free · InstantCASE-1

Shipping API JSON -> 2 Auto-Named PDFs + 180 deg Label Fix

Input Payload
Raw Shipping API JSON (4.8 KB)
Verified Output
waybill_label.pdf (4x6 in, 180 deg -> 0 deg) + commercial_invoice.pdf (A4, 2 pages)
Real browser-decoded output preview (client-side only)
Free · InstantCASE-2

ERP Payload -> PK\x03\x04 Verified 3-Sheet Excel Preview

Input Payload
ERP Base64 Payload (122.8 KB)
Verified Output
Summary (128 rows x 11 cols), LineItems (48 rows), Tax (24 rows) -> .xlsx / .csv / .json
Real browser-decoded output preview (client-side only)
Free · InstantCASE-3

Broken Data URI + MIME Fix + White Transparent Logo

Input Payload
Broken data:image/jpeg;base64 + \/ + newlines (4.9 KB)
Verified Output
Auto-fixed to image/png (512x512 px) + Checkerboard reveals white emblem
Real browser-decoded output preview (client-side only)
Free · InstantCASE-4

Gzip + Base64 Unpack & Korean EUC-KR Mojibake Self-Heal

Input Payload
Gzipped Base64 (212 chars) + EUC-KR Receipt
Verified Output
Gunzipped JSON + EUC-KR Hangul receipt recovered from UTF-8 replacement chars
Real browser-decoded output preview (client-side only)
Free · InstantCASE-5

40-Page Contract Slimming + Gateway Green-Light Check

Input Payload
40-Page Synthetic Contract PDF (33.7 KB)
Verified Output
Extract Page 1 -> +33.3% Base64 fits comfortably under 4.5 MB Vercel limit
Real browser-decoded output preview (client-side only)

Safe Sandboxed Vector Preview & White-Icon Visibility

Render untrusted Base64 SVGs safely inside isolated <img> Blob URLs while using dark and checkerboard canvases to reveal white vector paths.

Read full technical details

Unlike raster PNGs, SVG is an XML dialect capable of containing embedded <script> tags or external entity references. Injecting decoded SVG markup straight into a host page DOM via innerHTML exposes applications to cross-site scripting risks.

Base64Doc strictly isolates decoded SVG bytes inside an object Blob URL mounted on an <img> element, where browser security sandboxes prevent script execution completely. Toggling Dark or Checkerboard mode behind the <img> exposes #FFFFFF navigation icons and transparent logos cleanly.

Validating <svg> vs <?xml> Prologs & Fixing Broken Data URIs

Recognize both bare <svg> fragments and XML-prolog vector files while fixing missing image/svg+xml headers.

Read full technical details

Design exports from Figma or Illustrator frequently open with an <?xml version="1.0"?> prolog and XML comments before reaching the <svg> root element, whereas hand-authored icon sprites start directly with <svg xmlns="...">. Both patterns—PHN2Zy and PD94bW in Base64—are recognized accurately.

If a stylesheet wrapped the Base64 vector inside image/png or text/plain, Base64Doc repairs the Data URI prefix to image/svg+xml automatically.

Instant Vector-to-PNG Rasterization Without Desktop Tools

Convert any decoded SVG icon into a ready-to-upload .png or .webp asset inside your browser for platforms that reject vector uploads.

Read full technical details

Social platforms, legacy CMS dashboards, and mobile push services often forbid SVG uploads. Once your decoded SVG renders cleanly on screen, click Save .png or Save .webp to rasterize it locally at crisp native resolution.

Step-by-Step Local Workflow

STEP 1

Paste SVG Base64 or image/svg+xml Data URI

Insert Base64 strings beginning with PHN2Zy or PD94bWws CSS url(...) values, or JSON icon payloads; quotes and whitespace strip automatically.

STEP 2

Verify XML/SVG Signature & UTF-8 Text

The detector scans decoded UTF-8 bytes for <svg or <?xml ... <svg tags, catching mislabeled raster PNG/JPEG strings before download.

STEP 3

Inspect on Checkerboard or Dark Canvas

Switch canvas contrast to examine white-stroke navbar icons or transparent badges rendered safely inside an isolated <img> element.

STEP 4

Save Clean .svg or Rasterize to .png/.webp

Download the decoded vector .svg file directly, or click Save .png to rasterize the vector paths locally via browser canvas.

Technical Specification Summary

CapabilityBase64Doc BehaviorEngineering Notes
SVG Byte Signatures3C 73 76 67 (<svg) / 3C 3F 78 6D 6CEncodes to PHN2Zy... or PD94bW... in standard Base64.
Security SandboxIsolated <img> Blob URLBrowsers block inline <script> execution inside SVG images loaded via <img>.
Canonical SVG MIMEimage/svg+xmlEssential for browsers to treat decoded Blob bytes as vector graphics.
Contrast ModesCheckerboard / Dark / LightExposes #FFFFFF icons and subtle opacity gradients immediately.
Local RasterizationVector SVG -> .png / .webpExports crisp bitmaps locally without Inkscape or Illustrator.

Frequently Asked Questions

Why did my decoded SVG logo appear invisible on a standard preview page?

Yes, white-stroke (#FFF) or light-fill SVG paths vanish against #FFFFFF preview boxes. Toggle Checkerboard or Dark Canvas to reveal the full vector geometry immediately.

Can I convert a decoded SVG Base64 icon directly into a PNG bitmap?

Yes, click Save .png in the image action toolbar to rasterize the SVG locally using your browser canvas without uploading files.

Is it safe to decode untrusted SVG Base64 strings from external webhooks?

Yes, Base64Doc renders SVG payloads via Blob URL inside an <img> tag rather than inline DOM injection, so browsers block any embedded SVG scripts from running.

Why do some Base64 SVG strings begin with PHN2Zy and others with PD94bWw?

PHN2Zy decodes to <svg directly, while PD94bWw decodes to <?xml (typical of desktop vector exports carrying an XML prolog). Both are valid SVG payloads.

What happens if the decoded SVG lacks an xmlns="http://www.w3.org/2000/svg" attribute?

Standalone SVG files opened via Blob URL require the SVG XML namespace; download the raw markup if you need to add the missing xmlns attribute before browser rendering.

Explore All 34 Base64 Converters & Developer Tools