Convert SVG markup into Base64, data URIs and ready-to-paste CSS background declarations. Paste the source or upload a file, then copy the encoding you need for inline icons, CSS sprites, JSON payloads or API responses. Everything is computed in your browser — your SVG never leaves your device.
🔒 Your file is processed locally in your browser whenever supported. This tool runs entirely on your device — nothing you type or upload is sent to a server, logged, or stored.
Base64 is safer inside CSS url() quotes and JSON strings; URL-encoded is often 10–30% smaller for SVGs with lots of text or path data. Compare the two output lengths and pick the smaller one that your context accepts.
Common causes: missing xmlns="http://www.w3.org/2000/svg" on the root element, or an encoding error from copying a truncated string. Verify the source in the SVG Viewer first, then re-encode.
No — Base64 expands data by roughly 33%. Use it for embedding and transport, not compression. For shrinking SVGs, optimize the source (remove metadata, simplify paths) before encoding.
No. Encoding is pure string processing in your browser — nothing is transmitted.
| Platform | Supported | Offline | Local | Server | Network |
|---|---|---|---|---|---|
| WEB | Yes | Yes | Yes | No | Not required |
| PWA | Yes | Yes | Yes | No | Not required |
| ANDROID | Yes | Yes | Yes | No | Not required |
| IOS | Yes | Yes | Yes | No | Not required |
Preview SVG files instantly, inspect dimensions, viewBox and element counts — nothing is uploaded.
Rasterize SVG files to PNG, JPG or WebP at any scale — batch supported, all on your device.
Trace PNG, JPG or WebP images into clean SVG vectors — best for logos, icons and high-contrast artwork.
Encode any text into Base64. Runs entirely in your browser.
Advertisement