Image to Base64

Convert an image into a Base64 string for your code.

Drop an image here, or

What is this tool?

Convert an image into a Base64 data URL string for embedding directly in HTML, CSS or code — no separate file needed. Useful for small icons, email templates and single-file web pages.

How to use it

  1. 1
    Upload an image.
  2. 2
    The tool generates the Base64 string.
  3. 3
    Copy the string for your code.

Key features

Supported formats

Input: any image. Output: Base64 data URL string.

Good to know

Base64 increases size by ~33%. Best for small images; large images should stay as separate files.

Frequently asked questions

When should I use Base64?

For small icons/assets embedded directly in HTML/CSS to reduce HTTP requests. Not for large photos.

Does it increase size?

Yes — by about 33% compared to the binary file. Use only where embedding is beneficial.

Related tools