图片Base64转换器
将图片转换为Base64编码字符串,用于嵌入HTML、CSS或JavaScript。
拖放图片或点击上传
支持PNG、JPEG、GIF、WebP、SVG、BMP、ICO(最大5MB)
所有转换在浏览器中完成,图片不会上传到服务器。
How to Use This Tool
- 1
Upload an image
Drag and drop or click to select a file.
- 2
Choose output format
Select Data URI or Raw Base64.
- 3
Copy the result
Copy as base64, HTML, or CSS background.
- 4
Use in your project
Paste into your HTML, CSS, or JavaScript.
Frequently Asked Questions
- What is Base64?
- An encoding that converts binary data to ASCII text for embedding in code.
- Why size increase?
- 3 bytes become 4 characters, about 33% larger.
- When to use Base64?
- Small images, icons, email templates, single-file documents.
- Is my data secure?
- Yes. All in browser. No uploads.