toolhut
All tools

Image to base64

Turn an image into a data URI, with the CSS rule ready beside it.

imagedev
Give me

Drop an image, or paste it

PNG, JPEG, WebP, GIF or SVG. It never leaves your browser.

The data URI appears here.

Base64 carries three bytes in four characters, so a data URI is always about a third bigger than the file it came from. That is a fair trade for a small icon that saves a request, and a poor one for a photo. The file is read by this tab alone, so nothing is uploaded.

Related tools

Converting a file should not mean handing it to a stranger.

Every other converter asks you to upload first. Yours never leaves the tab.

Read, converted and handed back, all in this tab.
No request is ever made. There is no server to make it to.
  1. toolhut.io
    01

    Load once

    After that it works with the network off.

  2. 02

    Work here

    Your file is processed on your own processor.

  3. 03

    Keep nothing

    Close the tab and every trace is gone.

Answers to your questions

Need anything else? Ask on GitHub.

Do not trust us. Read the code.

Every line is public and MIT licensed. Check it, fork it, or build the next tool.