Image to Base64

Turn a picture into text for a web page, a style sheet or an API. It is encoded on your device.

About Image to Base64

pdf-workshop converts a picture to Base64 in your browser. Choose the result as a data URI, plain Base64, an HTML image tag or a CSS background rule, then copy it or save it as a text file. The picture is never uploaded.

How to use Image to Base64

  1. 1Drop a picture onto the page, or choose it.
  2. 2Choose how to write the result: data URI, Base64 only, HTML or CSS.
  3. 3Copy all of it, or save it as a .txt file.

Why it runs in your browser

pdf-workshop has no server that receives files. The page loads the code it needs and the work — reading, changing and saving the picture — happens on your device. Photos, ID scans and screenshots never leave it, there is nothing to sign up for, and it works on networks that block uploads. Large files are limited only by your device's memory.

Questions about Image to Base64

Are my files uploaded anywhere?
No. The work happens in your browser on your own device. pdf-workshop has no server to send files to, so nothing leaves your computer.
Why is the text bigger than the picture?
Base64 writes every three bytes as four characters, so the text is about a third longer than the file.
When should I embed a picture this way?
For small icons and logos, where saving a request is worth the extra size. For large pictures, link to the file instead, because embedding makes the page slower.
Does it work for SVG and GIF?
Yes. Any picture file works, and its type is kept in the data URI.
Is it free? Do I need an account?
It is free, with no account, no email address and no trial period. Open the page and use it.

Updated September 2026 · How pdf-workshop works · All image tools