Nutter Tools
Nutter Tools

A free toolbox that runs in your browser. A tool for every job.

Your files never leave your device

Images

  • Convert images
  • Compress images
  • Resize images
  • Crop
  • Watermark

PDF & files

  • Merge PDFs
  • Split a PDF
  • Images to PDF
  • PDF to images
  • Remove photo location

Video & audio

  • Compress video
  • Convert video
  • Video to GIF
  • Convert audio
  • Trim audio

Everyday

  • QR codes
  • Passwords
  • Time zones
  • Unit converter
  • Word count
  • Webcam test

Developer

  • JSON formatter
  • Base64
  • Regex tester
  • Hashes
  • JWT decoder

Site

  • About
  • Contact
  • Settings
  • Privacy
  • Terms
  • Site map
  • llms.txt

Everyday

  • Images
  • Video
  • Audio
  • PDF & files
  • Text
  • QR codes
  • Units & math
  • Time & dates
  • Color
  • Passwords & IDs
  • Device tests
  • Sun & moon

For developers

  • JSON
  • Encoding
  • Regex & cron
  • Web & auth
  • Hashing & encryption
  • Config files
  • Network
  • Browser
  • AI
  • Fake data
© Nutter Toolsnutter.tools
  1. Home
  2. Encoding
  3. SVG data URI converter
Your files stay on your device

SVG data URI converter

Turn SVG markup into a URL encoded or Base64 data URI with stripping options and byte sizes, or decode a data URI back to markup.

This tool is in beta

Still being tested. If a result looks wrong, tell us.

Report a problem

Paste markup or a data URI to convert it.

The URL form percent-encodes only what breaks a URI or CSS url(): angle brackets, #, %, braces, control characters, and non-ASCII. When your markup has no single quotes the doubles are swapped so the value fits inside url("..."). Base64 always encodes the markup as it is, which is why the two forms rarely agree byte for byte. Neither form can be recoloured with currentColor: a data URI is an isolated document. This tool strips, encodes, and sizes; it does not minify paths or optimise geometry.

Input

DirectionAuto decodes data URIs, encodes everything else
Comments, editor metadata, whitespace, scripts, event handlers, external references
More settings▾

Input ceiling: 2 MB of UTF-8. Stripping also drops scripts, on-event handlers, and hrefs that point outside the file, so the encoded image cannot load anything remote.

More encoding tools

  • Base64
  • URL encoder
  • Image ⇄ Base64
All encoding tools

Was this tool useful?