Image to Base64 converter
Turn an image into Base64 text for embedding directly in code.
Images are processed inside your browser on this device; they are not sent to our servers.
How to use the image to base64 converter
- Add an image.
- Press Encode.
- Copy the Base64 text.
When it's useful
- Embedding small icons in HTML or CSS
- Sending images inside JSON
- Testing APIs that expect Base64
Limits to know
- Base64 text is about a third larger than the original file.
- Best for small images.
Your files
Processing happens in your browser. Your files stay on your device and are gone when you close the page.
Questions
What is a data URI?
Base64 text with a short prefix like data:image/png;base64, so browsers can show it directly.
Is there a size limit?
Very large images make very long text that may slow your browser.
Related tools
JPG to PNG converterPNG to JPG converterWEBP to JPG converterAVIF to JPG converterHEIC to JPG converterSVG to PNG converterJPG to WebP converterPNG to WebP converterBMP to PNG converterImage compressorImage resizerImage cropperRotate and flip imagesImage to PDF converterAdd a watermark to imagesPhoto filtersImage info checkerFavicon makerRemove background from imageColour picker from imagePhoto collage makerOnline image editorVideo converterMP4 to MKV converter3GP video converterAudio converterMP3 to WAV converterAll tools