Image to Base64
Encode an image as a local data URL.
- Processed on your device
- Free, no sign-up
- Instant results
or drop files here · paste with Ctrl/⌘ + V
JPG, PNG, WebP, AVIF, HEIC, GIF, BMP, TIFF, SVG and ICO · up to 32 MB eachHow to use Image to Base64
- Select the source image on your device.
- Run the encoding and use the resulting image data URL.
- Review the reported result alongside the source.
How it works
Base64 represents each group of three bytes using four text characters, plus padding and the data URL header. It is a transport encoding.
Example
Embed a very small icon in a self-contained HTML document.
Common uses
- Check an image against a specification before uploading
- Extract colors for a design or brand guide
- Generate icons, PDFs or Base64 for development work
- Diagnose files with wrong extensions or unexpected sizes
Private by design
Your files are read and processed by your own browser using Web Workers and the Canvas API. They are not uploaded to a server, and nothing is stored after you close the page. See the privacy policy for details about the website itself.
Frequently asked questions
Does Base64 make the image private?
Anyone with the string can decode it. Treat the text like the original file.
Does inspection change my file?
Analysis reads the selected source on your device and presents the result separately.
Related tools
Image Color Picker
Click any pixel to read its HEX, RGB and HSL color.
HEX Color Extractor
Read a pixel as a six-digit hexadecimal color.
RGB Color Extractor
Inspect the red, green and blue channels of a pixel.
Color Palette Generator
Extract a palette of frequently occurring colors.
Dominant Color Extractor
Find the most common color group in an image.
Compress Image
Reduce file size while keeping your images looking sharp.
Convert Image
Switch between image formats in just a few clicks.
Resize Image
Change image dimensions with pixel-perfect control.