Image to Base64
Turn small icons and images into inline-ready DataURLs or raw Base64 text, copied into your code in one click. Conversion runs locally in your browser — no upload.
Click to select images, or drag them here
You can also paste a screenshot directly
Up to 10 MB each; encoded locally in your browser, never uploaded
Base64 inflates size by about 33%; recommended only for small icons and inline use
Base64 inlining turns an image into text. It fits: tiny icons of a few KB (saves an HTTP request), HTML emails (many clients block remote images), single-file HTML distribution (demos, offline documents), and cases where your canvas or code needs the image data directly.
But it is not a general-purpose answer: the size grows by about 33%, the data cannot be cached separately, and long strings slow down HTML parsing. For real page images the right move is compressing to WebP/AVIF files — same clarity, a fraction of the bytes. Compress first, then decide whether to inline; that is how you get both performance and convenience.