Image to Base64
Convert an image into a Base64 data URI or a bare payload you can paste straight into CSS, HTML or JSON, with copy buttons and ready-made snippets.
Loading this tool…
Your file is read and processed inside your own browser. It is never uploaded to our server, and it still works with the network unplugged.
How It Works
- Choose — Pick or drop your file into the area above. It stays on your machine unless this tool says otherwise.
- Configure — Set the options that appear once the file is read.
- Run — Press the action button and wait for the result.
- Take it — Download the output, or copy the result if the tool prints one.
Frequently Asked Questions
Is the image re-compressed or resized first?
No. The file's own bytes are encoded exactly as they are, with no canvas in between. That keeps an animated GIF animating where a redraw would flatten it to one frame, and it means the text describes the picture you chose rather than a copy of it. Base64 costs about a third more characters than the bytes behind it, so a big file makes a long string.
Are my photos uploaded?
No. The encoding is done with the FileReader API in this browser tab, and the text is put together on this page.