No files yet.
Image to Base64 writes the file’s bytes as text. The output starts as a data URI: data:image/png;base64, followed by the payload, or the matching type if you brought a JPG or a WebP. That whole string is what an img src or a CSS url() can use. Switch the output to raw Base64 when a decoder or an API asked for the payload alone. Raw text will not render if you paste it where a URI was expected.
The string is long. A 200-kilobyte PNG becomes a larger block of text, because Base64 uses about four characters for every three bytes. A photo that felt small as a file becomes an unwieldy stylesheet. Inline a tiny icon. Link a hero. A transparent PNG keeps its transparency inside the payload. You do not get a new compressed image. You get the same bytes, encoded.
The general Base64 page will encode text or any file, and it can emit Base64URL. This page is the picture, and the URI is the default because HTML is the usual destination. Nothing is uploaded to build the string. A private photo encoded into a page is still that photo, only harder to glance at.
A 32 by 32 PNG logo. Output left on data URI.
A string that starts with data:image/png;base64, and then the payload. The same file as raw Base64 omits that prefix and will not show up if it is pasted into an img src. A 200-kilobyte photo would produce a far longer line than an icon.
Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.
The data URI, including the data:image/...;base64, prefix. Raw Base64 does not.
Base64 expands bytes by about a third. A 200-kilobyte file becomes a large chunk of text.
No. The same bytes are encoded. A PNG stays a PNG inside the payload.
It encodes text or any file, and it can write Base64URL. This page starts from an image and defaults to a data URI.
No. The stylesheet or HTML becomes huge. Inline a small icon, and link anything large.