Image to Base64 Converter
Convert a PNG, JPEG, GIF, WebP or SVG image into a Base64 data URL you can paste into HTML or CSS.
How to use
Embedding images as data URLs
Choose an image and the tool produces a data URL. Paste it into an img src attribute, a CSS background or a JSON payload.
- Select an image file.
- Wait for the preview and data URL.
- Copy the data URL.
Frequently asked questions
Is my image uploaded?
No, the conversion happens locally in your browser using the FileReader API.
What is the size limit?
There is no hard limit, but large images produce very long strings and should be optimised first.
Related tools
Base64 to Image Converter
Decode a Base64 string or data URL into an image and preview or download it.
Base64 Encode / Decode
Encode text to Base64 or decode Base64 back to text with full Unicode support.
QR Code Generator
Create QR codes for links, text, Wi-Fi credentials or contact details and download them as PNG images.
URL Encode / Decode
Percent encode text for safe URLs or decode a percent encoded URL back to text.
JWT Decoder
Decode the header and payload of a JSON Web Token without verifying its signature.
Unicode Encode / Decode
Convert text to unicode escape sequences and decode sequences back to readable text.