图片转 Base64 转换器
将图片转换为 Base64 编码字符串和 data URI。支持 PNG、JPG、GIF、SVG、WebP。拖放上传。免费使用,无需注册。
🖼️
Drop an image here or click to select
Supports PNG, JPG, GIF, SVG, WebP, ICO
About Image Base64 Encoding
Converting images to Base64 strings allows you to embed them directly in HTML, CSS, or JSON without separate image files. This is useful for small icons (under 10KB), email templates, and reducing HTTP requests. The trade-off is a ~33% increase in data size compared to the binary original.
评价此工具
4.4 / 5 · 76 人评价
Recommended
CloudflareFree CDN & DDoS protection保持更新
获取每周开发技巧和新工具通知。
无垃圾邮件,随时退订。
Enjoy these free tools?
☕Buy Me a Coffee使用方法
- Drag & drop an image or click to select a file
- View the Base64 string, data URI, HTML tag, and CSS snippet
- Copy any format you need
- Switch to 'Base64 → Image' tab to decode
常见用途
- Embedding small icons in HTML/CSS
- Including images in email templates
- Storing images in JSON/YAML configs
- Reducing HTTP requests for small assets