Image to Data URL (Base64)
Drop an image, get a base64 data URL back. Preview the picture, see the byte counts, copy what you need. The encoding happens in your browser — the file is never uploaded.
Drop an image here, or click to choose
PNG, JPEG, GIF, WebP, SVG, BMP, ICO, AVIF — up to 10 MiB
How to use this tool
- Drop or pick an image file. Supported: PNG, JPEG, GIF, WebP, SVG, BMP, ICO, AVIF. Up to 10 MiB.
- Pick an output format: a plain
data:URL, a CSS-readyurl("…"), or the raw base64 alphabet. - Copy the output, or Download .txt to save it alongside your source.
- Files are encoded with
FileReader.readAsDataURL. The page never makes a network request for your image. - Right-click the preview to save the original — the data URL is just an encoding, not a transform.