Image to Base64 Converter
Turn an image into a Base64 string or data URI you can paste into HTML, CSS or JSON.
Drop your images here
JPG, PNG, WebP, GIF, BMP, AVIF · up to 50 images · never uploadedAll tools
- ConvertSwitch between JPG, PNG and WebP.
- CompressMake files smaller, see the saving.
- ResizeChange size by percent or width.
- CropDrag a frame or pick 1:1, 16:9.
- To PDFPut pictures into one PDF.
- Rotate & FlipTurn or mirror your pictures.
- Remove EXIFErase location and camera data.
- To Base64Get text to paste into code.
- FaviconBuild a favicon pack from an image.
- SVG to PNGTurn vector files into PNG.
Why use it
Embedding small images as Base64 saves a request and is handy for emails, prototypes and single-file pages. Large images are better kept as normal files.
How it works
Add your images, choose the options on the right, then download each file or everything as a ZIP. Files never leave your device.
Questions
What is a data URI?
A text version of the file that starts with data:image and can be used directly as an image source.
Is there a size limit?
Each file can be up to 5 MB. Base64 text is about one third longer than the file.