Skip to content
OneFileConverter
Image

Convert an image to Base64

Get a ready-to-paste data URI for embedding small images straight into code.

Formats
JPG, PNG, WEBP +5
Max size
100 MB
Price
Free

Drop files here

or browse your device

JPG, PNG, WEBP, AVIF, HEIC, GIF, BMP, TIFF · up to 100.0 MB per file

How to convert an image to Base64

  1. Add your images — up to 20.
  2. Nothing to set: the data URI includes the right image type.
  3. Click Convert — copy the text or download a .txt file per image.
Are my images safe?

Yes. Your images are only used to create your result — they’re never shared and never used to train AI.

How do I use the result?

Paste it wherever an image URL goes: <img src="data:image/png;base64,…"> in HTML or background-image: url("data:…") in CSS.

Should I Base64 large images?

Base64 is about a third bigger than the file and can't be cached separately, so it suits small icons and logos. Compress the image first for best results.