Free Tool · 100% Private

Image to Base64 Converter

Turn any image into a Base64 data URL you can inline directly in HTML, CSS or JSON — no extra HTTP request, no external file. Perfect for small icons, logos and email templates. Everything runs inside your browser: your image is never uploaded to any server.

Drop an image here

PNG, JPG, WebP, GIF, SVG… · up to 5 MB

100% private — the Base64 string is generated directly in your browser and your image is never uploaded to any server.

How it works

  1. 1

    Add an image

    Drag & drop any image (PNG, JPG, WebP, GIF, SVG…) onto the box, up to 5 MB.

  2. 2

    Get the string

    The full data URL appears instantly — no conversion step, no waiting.

  3. 3

    Copy & inline

    Click "Copy all" and paste it into your img src, CSS url() or JSON.

Why use this tool?

  • 100% private — the Base64 string is generated entirely in your browser, no upload.
  • Zero requests — inlined images travel with your document, ideal for emails and single-file pages.
  • All formats — PNG, JPG, WebP, GIF (animation preserved), SVG and more.
  • One-click copy — the full data URL is ready to paste, character count shown.

Related tools