Image to Base64
Developers often need images as text to put them directly in HTML, CSS or JSON. Convert an image to Base64 — or paste Base64 to get the image back.
Drag and drop files here
or
Accepted: JPG, PNG, WebP, GIF, SVG
🔒 Your files are processed on your device and are never uploaded.
How to use
- 1Choose an image (or switch to “Base64 to image”).
- 2Copy the result as a data URI, plain Base64, HTML or CSS.
- 3To decode, paste the Base64 text and download the image.
Frequently asked questions
What is a data URI?
It is the image written as text, starting with “data:image/…;base64,”. Browsers can show it like a normal image link.
Are my images uploaded?
No. Everything happens in your browser, so your images never leave your device.
More free tools
Image to Text (OCR)Extract text from photos and scans — Arabic supported.Compress ImageReduce image file size while keeping good quality.Resize ImageChange the width and height of images.Image ConverterConvert images between JPG, PNG and WebP.HEIC to JPGConvert iPhone HEIC photos to JPG.Crop ImageCut out the part of a photo you want.