WorkspaceImage to Base64

Image to Base64

Encode an image as a local data URL.

  • Processed on your device
  • Free, no sign-up
  • Instant results

or drop files here · paste with Ctrl/⌘ + V

JPG, PNG, WebP, AVIF, HEIC, GIF, BMP, TIFF, SVG and ICO · up to 32 MB each

How to use Image to Base64

  1. Select the source image on your device.
  2. Run the encoding and use the resulting image data URL.
  3. Review the reported result alongside the source.

How it works

Base64 represents each group of three bytes using four text characters, plus padding and the data URL header. It is a transport encoding.

Example

Embed a very small icon in a self-contained HTML document.

Common uses

  • Check an image against a specification before uploading
  • Extract colors for a design or brand guide
  • Generate icons, PDFs or Base64 for development work
  • Diagnose files with wrong extensions or unexpected sizes

Private by design

Your files are read and processed by your own browser using Web Workers and the Canvas API. They are not uploaded to a server, and nothing is stored after you close the page. See the privacy policy for details about the website itself.

Frequently asked questions

Does Base64 make the image private?

Anyone with the string can decode it. Treat the text like the original file.

Does inspection change my file?

Analysis reads the selected source on your device and presents the result separately.

All utilities tools

Learn more

Resource center