Skip to main content

Image to Base64 Converter

Everything is processed in your browser. Nothing is uploaded.

About this tool: Image to Base64 Converter

Converting an image to Base64 produces a text string, or a data URI, that you can embed directly in HTML, CSS or JSON without a separate file request. This suits tiny icons and inline email images. Base64 makes data about a third larger, so avoid it for big pictures.

Common uses

  • Decoding a Base64 value found in a header or config file
  • Percent-encoding a query parameter that contains spaces or symbols
  • Embedding a small image in CSS or HTML as a data URI

Frequently asked questions

What is a data URI?
A URL that contains the file itself, written as data:image/png;base64, followed by the encoded bytes.
Is my image uploaded?
No. The file is read and encoded locally in your browser.