Image to Base64 Online
图片转Base64内嵌图片Data URL编码
Pick or drag an image to instantly get Data URL and pure base64 output modes, live preview with dimensions, type and size, ideal for embedding and config encoding, fully local.
Click or drag an image here (PNG, JPG, GIF, WebP, BMP...)
All processing is done locally in your browser. No data is uploaded.
How to Use
- Paste any valid JSON, supports nesting, arrays and escapes
- Click Beautify to auto indent and format
- Click Minify to remove whitespace into one line
- All operations run locally for privacy
Related Tools
FAQ
Difference between the two output modes?
Full Data URL goes directly into img src or CSS url(); pure base64 suits API parameters or storage fields.
Does conversion compress the image?
No, the output is a lossless encoding identical to the original bytes.
Will my image be uploaded?
No, images are read and converted locally only.