SVG to Data URI Converter
Paste SVG code and instantly get URL-encoded data URI, Base64 data URI, CSS background-image shorthand, and HTML img src formats — all with a live preview. Embedding SVGs as data URIs eliminates extra HTTP requests and keeps icons self-contained inside your CSS or HTML. URL-encoding is generally preferred over Base64 for SVG as it produces smaller output.
Preview
URL-encoded data URI
Base64 data URI
CSS background-image
HTML img src
When to use each format
- URL-encoded — generally smaller than Base64 and faster to decode. Preferred for inline SVG in CSS.
- Base64 — universally supported, no special characters to worry about. Best for HTML img tags.
- CSS background-image — embed icons in stylesheets without an extra HTTP request. Use with
background-sizeandbackground-repeat: no-repeat. - Always include the
xmlnsattribute on the SVG element for cross-browser compatibility.
Related Tools
Unit Converter
Convert between Length, Weight, Temperature, Area, Volume, Speed, Time, and Digital Storage units instantly.
Timezone Converter
Convert any date and time across 27 major world time zones simultaneously. Handles DST automatically.
Loan Calculator
Calculate monthly loan payments, total interest, and total cost. Includes a 12-month amortization table.
Age Calculator
Calculate exact age in years, months, and days from a birth date. Shows total days, weeks, next birthday, and zodiac sign.
IP Address Lookup
Look up any IP address to find its city, region, country, ISP, timezone, and GPS coordinates. Auto-detects your own IP.
IBAN Validator & Formatter
Validate and parse IBAN bank account numbers. Check the checksum and identify the country and bank code.
Image Compressor
Compress JPEG, PNG, and WebP images in your browser. Reduce file size without uploading to any server. Batch up to 5 images.
Image Resizer
Resize JPEG, PNG, and WebP images directly in your browser. Maintain aspect ratio, choose output format. No server upload.
Percentage Calculator
Three percentage calculators: find X% of a number, what percentage X is of Y, and calculate percentage change.
Icon Font Generator
Upload SVG icons and generate a complete icon font package — TTF, WOFF, WOFF2, CSS classes, and HTML demo as ZIP.
Icon Font Extractor
Upload any icon font and extract all glyphs as individual SVG files. Optionally load a CSS file to map icon names. Download as ZIP.
QR Code Generator
Generate QR codes from any URL, text, or contact info. Customize size, colors, and error correction. Download as PNG.
Image Metadata Viewer
Upload any image to see file info and EXIF metadata — camera make, model, date taken, GPS location, ISO, aperture, shutter speed.
URL Analyzer
Decompose any URL into its protocol, hostname, port, pathname, query parameters, and hash. Also encode and decode URL components.
Favicon Generator — ICO, PNG & Web Manifest
Generate a complete favicon package from any image — ICO, iOS, Android, Windows tile, web manifest, and more.
Online Image Converter — PNG, JPEG & WebP
Convert images between PNG, JPEG, and WebP formats in your browser. Batch convert and download as ZIP.
PNG to ICO Converter Online — JPG & Image to ICO
Convert PNG, JPG, or any image to ICO format with multiple sizes in a single file. Perfect for favicons and app icons.
PNG to ICNS Converter Online — macOS App Icon
Convert PNG or any image to macOS ICNS format with all standard Apple icon sizes for app development.
Robots.txt Generator
Build a robots.txt file visually. Set crawl rules per bot, add sitemaps, and use common presets.
Font Converter
Convert fonts between WOFF2, WOFF, TTF, EOT, and SVG formats in your browser. Preview the font and download.
Ebook Converter
Convert ebooks between 25+ formats — EPUB, MOBI, AZW, PDF, RTF, TXT and more. No software to install.
Ebook Reader
Read EPUB ebooks in your browser. Upload MOBI, AZW, FB2, and 20+ other formats — they convert automatically.
Aspect Ratio Calculator
Calculate width, height, or ratio for any aspect ratio. Useful for scaling responsive images and sizing video embeds.
Meta Tag Generator
Generate complete HTML meta tags for SEO, Open Graph, and Twitter Cards in one form.