Image to Base64
Turn an image into a Base64 data URL you can paste straight into HTML, CSS or JSON — no separate image file to host.
Drag and drop an image here
JPG, PNG, WebP or GIF
How to Use the Image to Base64
- 1
Drop an image onto the upload area.
- 2
Wait a moment while it is read.
- 3
Check the preview and the size figures.
- 4
Copy the data URL, the img tag or the CSS rule.
Image to Base64 Features
Ready-made snippets
Copy an <img> tag or a CSS background rule in one press.
Size figures
See the original file size and the encoded length before you commit.
Private
The image is read locally and never uploaded.
Runs in your browser
Nothing is uploaded to a server, so your content stays on your device.
Free and unlimited
No account, no watermark and no daily limit.
Works on mobile
Large tap targets and layouts that fit a phone screen.