Generate complete data URIs for images and files. Our free Data URI Generator creates ready-to-use URIs for HTML img tags and CSS backgrounds.
Drag & drop your file or click to browse
Supports: Images, Text files, SVG, and more
Our Data URI Generator converts files into complete data URIs that can be used directly in HTML and CSS. A data URI includes the MIME type, encoding information, and the encoded content, making it a self-contained reference to your file.
A data URI follows this structure:
data:[mime-type];base64,[base64-encoded-data]
image/png - PNG imagesimage/jpeg - JPEG imagesimage/svg+xml - SVG graphicsimage/gif - GIF imagestext/plain - Text filesapplication/json - JSON filesFor image-specific conversion, use our main Base64 Image Converter tool.