🖼️ Convertisseur Image en Base64 — Générer Data URI

Convert any image (PNG, JPG, GIF, WebP, SVG) to a Base64 data URI. Preview the image, copy the data URI for use in CSS or HTML. 100% browser-based.

Drop your image file and instantly get its Base64-encoded data URI. Copy the full data:image/... string to embed the image directly in your CSS background-image or HTML img src — no separate file needed, no server request.

🖼️
Drop an image here or
PNG, JPG, GIF, WebP, SVG supported

How to Use

1

Upload your image

Click the upload area or drag and drop any PNG, JPG, GIF, WebP, or SVG file.

2

Choose output format

Toggle between full Data URI (data:image/png;base64,...) and raw Base64 string only.

3

Copy the result

Click Copy to clipboard. Use the data URI directly in your CSS background-image or HTML src attribute.

Frequently Asked Questions

What is a Base64 image data URI? +
A data URI embeds the image directly in your HTML or CSS as text: data:image/png;base64,iVBORw0KGgo.... This eliminates a separate HTTP request for the image file, useful for small icons, backgrounds, and email templates.
What image formats are supported? +
PNG, JPG/JPEG, GIF, WebP, SVG, BMP, ICO, and most common image formats are supported. The MIME type is automatically detected from the file and included in the data URI.
How large will the Base64 output be? +
Base64 encoding increases file size by approximately 33%. A 100KB image becomes roughly 133KB as Base64 text. For images over 50KB, linking to the file is usually better for performance than embedding.
How do I use this in CSS? +
Copy the full data URI and use it as: background-image: url("data:image/png;base64,..."); In HTML: <img src="data:image/png;base64,...">. For email templates, inline data URIs ensure images display without external loading.
Is my image uploaded to a server? +
No. The entire conversion runs in your browser using the FileReader API. Your image never leaves your device and is never sent anywhere.


Guide : Convertisseur Image vers Base64

Qu'est-ce que c'est ?

Ce convertisseur encode les images (PNG, JPG, GIF, SVG, WebP) en chaînes Base64 ou en URIs de données prêtes à l'emploi dans le HTML, CSS ou JavaScript.

Intégrer des images en Base64 élimine des requêtes HTTP supplémentaires, ce qui peut améliorer les performances pour les petites icônes.

Comment utiliser

  1. Glissez-déposez votre image ou cliquez pour la sélectionner.
  2. L'outil génère la chaîne Base64 et l'URI de données.
  3. Copiez le résultat pour l'utiliser dans votre CSS (background-image: url(...)) ou HTML (<img src="...">).

Conseils professionnels

🧰 50+ Tools