图片转 Base64
将图片转换为 Base64 数据 URL。
Drop an image to convert it to a Base64 data URL you can paste into CSS, HTML or JSON. Everything runs locally in your browser.
工作原理
- 1 Drop an image, or click to choose one.
- 2 Copy the Base64 data URL, or download it as a .txt file.
常见用例
- Inline small images in CSS or HTML.
- Embed an icon in a JSON config.
- Avoid an extra network request for a tiny image.
- Paste image data into a code snippet.
常见问题
Are my images uploaded to a server?
No. Everything runs locally in your browser — your images never leave your device and nothing is stored.
Should I inline large images?
No. Base64 makes data about 33% larger, so it's best for small images and icons. The tool warns on large files.
What is a data URL?
A string that begins with data:image/...;base64, and contains the whole image, so it can be used directly as an image source.
Is it really free?
Yes — free, with no signup, no watermark and no limits.