Image tool / 100% free

Image to Base64

Convert an image into a Base64 data URL you can paste directly into HTML, CSS or a JSON payload. It embeds the picture in the code itself, removing a separate file request. It is free, needs no account, and adds no watermark to your result.

Built for: image to base64

Image to Base64

Add your files. Recommended settings are ready, so you can process in one click.

Drop files here

PDF, Word, images, audio, video, archives and more

Up to 100 files · 250 MB · No account
  1. 1Add files
  2. 2Choose an action
  3. 3Download or keep going
Private by default. Selected files upload only for server actions.Privacy details
When you need this

What people use it for.

Embedding a small icon in CSS or HTML without a separate file request
Including an image in a JSON API payload or a config file
Inlining a logo in an HTML email template
How it works

What happens to your file.

The image bytes are Base64-encoded and returned either as a complete data URL, ready to paste into a src or CSS url(), or, with the raw option ticked, as the bare string. The type in the data URL comes from the bytes themselves, so a JPEG saved with a .png name is still labelled correctly.

Where it stops: Base64 makes data roughly a third larger, and inlined images cannot be cached separately by the browser. Use it for small assets only.

What this tool includes

Everything you need, without a paywall.

Free Pro batch queue included
Data URL output
Raw Base64 option
MIME-aware prefix
Copyable text
Questions

Common questions.

When should I not inline an image?

For anything large. Base64 adds about 33% overhead and the image cannot be cached independently, so a big inlined image makes every page load slower.

What size is reasonable to inline?

Small icons and logos, typically a few kilobytes. Beyond that, a normal image file with caching wins.

How do I use the output?

Paste the data URL straight into an img src attribute or a CSS url() value; it works exactly like a file path.

Related free tools

You might also need.