Skip to main content
DevTools24

Image vers Base64

Convertissez des images en Base64 pour les intégrer directement dans HTML, CSS ou JavaScript.

Click to upload or drag and drop an image

Supports PNG, JPG, GIF, SVG, WebP

Image to Base64 - Détails techniques

Base64 encoding allows binary image data to be represented as ASCII text, enabling you to embed images directly in HTML, CSS, or JavaScript without separate image files. This reduces HTTP requests but increases file size by ~33%.

Alternative en ligne de commande

# Encode image to Base64 in terminal
base64 image.png

# Create data URI
echo "data:image/png;base64,$(base64 image.png)"

Référence

Voir la spécification officielle