Image to Base64
Image to Base64 turns a picture into a Base64 data URI, the kind of data:image/png;base64,... string you can paste straight into CSS or HTML. Drop in a JPG, PNG, GIF, SVG, or WebP and the encoded string appears instantly, with a live preview and its size shown in KB. Everything runs in your browser using the FileReader API, so the image is never sent to a server.
Click or drag an image here
JPG, PNG, GIF, SVG, WebP
How was this tool?
Your feedback helps us improve Image to Base64.
