Example Walkthrough
Data URL input
Input: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...
Action: Image → Base64, then add `data:image/png;base64,` prefix.
Output: Image preview rendered and ready to download
For small assets in docs, demos, or prototype pages, convert images into Data URL or Base64 strings and keep rendering predictable.
Input: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...
Action: Image → Base64, then add `data:image/png;base64,` prefix.
Output: Image preview rendered and ready to download
If browser does not render image, verify data:image/;base64, prefix matches the actual file type.
Inline Base64 is best for small assets. For large images, keep file URLs to avoid bloated bundles.
Use correct MIME (`image/svg+xml`) and ensure decoded SVG text is valid XML.