Image to Base64
Turn an image into a Base64 data URL, CSS, HTML or Markdown, without uploading it.
- Privacy
- This tool runs in your browser. Nothing you enter is sent to Wayfind.
- Filed under
- Filed under
Turn an image into a Base64 data URL, CSS, HTML or Markdown, without uploading it.
No. The file is read by this browser tab and written out as text there. It never reaches Wayfind.
A data URL carries a file inside the URL itself, as `data:image/png;base64,` followed by the file written in Base64. Anywhere a browser takes a URL — an `src`, a CSS `url()` — it takes one of these instead, and makes no request for it.
Base64 writes three bytes with four characters, so the text is about a third larger than the file, before the prefix and the snippet around it. The page measures it for the image you chose rather than quoting the figure.
For something small that the page needs immediately: an icon, a logo, a one-pixel gradient, an image in an email where no file can be attached. Past about 100 kB it costs more than it saves, because a data URL cannot be cached on its own, cannot be loaded late, and holds up the file it sits in until it has been read.
Yes. The file is written out byte for byte, so the camera, the date and any location it recorded travel with it. To leave those behind, run the image through the Image Converter first: that one redraws the picture, and only the pixels survive.
What the image means to someone who cannot see it — "the quarterly sales chart", not "chart.png". Leave it empty only when the image is decorative and a screen reader should pass over it, which is what an empty `alt` says.