Image to Base64
Convert an image to a Base64 data URI and copy it as an <img> tag or CSS background. Nothing is uploaded.
- Free, no limits
- Runs in your browser
- No sign-up
Loading tool…
How to use the Image to Base64
- Choose an image.
- Copy the data URI, raw Base64, <img> tag or CSS.
- Paste it into your code or email template.
Frequently asked questions
Why is it bigger?
Base64 adds about 33% to the size; use it only for small icons.
Is my image uploaded?
No. Everything runs inside your browser. Your files and text never leave your device and nothing is stored on our servers.
Which formats?
Any image your browser can open: JPG, PNG, WebP, GIF, SVG.
Related tools
Image CompressorCompress JPG, PNG and WebP images in your browser. Pick quality, see the size saved…Base64 Encode / DecodeEncode and decode Base64 with full UTF-8 support (Tamil, emoji), URL-safe option, and…Image Converter (WebP/PNG/JPG)Convert images between WebP, PNG and JPG in bulk, right in your browser. Transparent…Image ResizerResize photos to exact width and height or by percentage, keep aspect ratio, and…Image CropperCrop photos in your browser with presets for Instagram, YouTube, WhatsApp DP and…