不喜欢广告? 去 无广告 今天
Data URI 方案生成器
数据开发人员
广告 · 消除?
广告 · 消除?
指导
Data URI 方案生成器
Convert files and text into RFC 2397 Data URIs directly in your browser. Upload any file or paste text content to generate a complete data URI with the correct MIME type, ready to embed in HTML, CSS, or JavaScript.
如何使用
File mode: Upload or drag-and-drop any file (images, fonts, CSS, JS, SVG, etc.) to automatically generate a base64-encoded data URI with the correct MIME type.
Text mode: Paste text content (HTML, CSS, SVG, plain text) and select the appropriate MIME type to generate a data URI from text input.
广告 · 消除?
特征
- File & Text Input – Upload binary files or paste text content to generate data URIs from either source
- Auto MIME Detection – Automatically detects the correct MIME type from file extensions
- Manual MIME Override – Override the auto-detected MIME type when needed
- 大小比较 – See original size vs encoded size with percentage increase
- Image Preview – Renders a live preview for image data URIs
- CSS & HTML Snippets – Ready-to-use code snippets for embedding in CSS backgrounds and HTML img tags
- Size Warnings – Alerts when the generated URI exceeds 100KB for practical usage considerations
- Client-Side Only – All encoding happens in your browser with no data uploaded to any server
