Base64 and DataURI tools
Encode or decode UTF-8 text; images are read directly as DataURIs.
Paste content or choose an image.
DataURI preview
Live SVG preview and optimization
Live SVG preview and optimization
Remove comments, event attributes and extra whitespace, then copy or download the optimized SVG.
What is this tool for?
Convert text and image DataURIs, preview SVG safely, optimize markup, copy and download results.
3-step quick guide
- 1Paste text, a DataURI or SVG code, or choose an image.
- 2Run encode, decode or the safe SVG preview action.
- 3Copy the result, or download the text and image output.
Privacy statement
Base64, DataURI and SVG are processed in the current browser without file upload or remote storage.
There is no file-upload endpoint; practical speed depends on device performance and browser support.
Frequently asked questions
Does Base64 leave my device?
No. Text, images and SVG are handled locally with browser File, DOMParser and Canvas APIs.
Why is SVG cleaned?
Preview removes scripts, event attributes and dangerous javascript: links to reduce unnecessary execution risk.
Is DataURI suitable for large images?
DataURI increases text size. Larger images are usually better kept as files or served from a CDN.