Convert Image to Base64
PNG, JPG, WebP, GIF, SVG, AVIF or BMP, up to 10 MB
Encode any image as a Base64 string or data URI to embed it directly in HTML, CSS or JSON. Copy it in one click. Your image never leaves your browser.
- No watermarks
- Fast results
- 100 % in-browser
- Zero sign-up
How It Works
Use Image to Base64 in three quick steps.
Choose an image
Drag and drop a picture or browse your device.
Pick the output format
Select a data URI, raw Base64, CSS or an HTML tag.
Copy or download
Copy the string or save it as a text file.
What is an image to Base64 converter?
Base64 turns the bytes of an image into plain text. That text can be embedded straight into HTML, CSS, JSON or an email, which removes an extra file request and makes small icons and logos self-contained. An image to Base64 converter does the encoding and gives you the string ready to paste.
For large pictures a normal image file is almost always better for page speed than an embedded Base64 string.
Four output formats
Full data URI, Base64 only, a CSS background-image rule or a ready-made HTML img tag.
One-click copy
Copy the result to the clipboard or download it as a .txt file.
Any common image
PNG, JPG, WebP, GIF, SVG, AVIF and BMP files up to 10 MB are supported.
Use it for small images
Base64 makes files about a third bigger, so it suits icons and small logos better than photos.
Parcourir par catégorie
Choisissez parmi notre large gamme d'outils en ligne gratuits
Outils PDF
Tous vos besoins PDF en un seul endroit
- Fusionner PDF
- Organiser PDF
- Diviser PDF
- Compresser PDF
- Convertir en Word
- Convertir en image
Outils Image
Modifiez et optimisez vos images
- Redimensionner l'image
- Compresser l'image
- Convertir le format
- Recadrer l'image
- Ajouter un filigrane
- Supprimer l'arrière-plan
Outils Word
Travaillez avec des documents Word
- Convertir en PDF
- Fusionner des documents
- Diviser des documents
- Compresser le fichier
- Modifier le texte
- Ajouter un filigrane
Outils Excel
Traitez les feuilles de calcul Excel
- Convertir en PDF
- Convertir en CSV
- Fusionner des feuilles
- Diviser des feuilles
- Compresser le fichier
- Nettoyer les données
Why Use Our Image to Base64 Tool
Fast, free and simple, with nothing to install.
Fast Results
Encode an image in a moment. It is read on your device, so there is no upload wait.
Private by Design
Your files never leave your browser. Nothing is uploaded to a server and nothing is stored.
Works Everywhere
Use it on desktop, tablet or phone. There is no software to install and no extension needed.
Completely Free
No account, no watermark and no limit on how many files you process.
Frequently Asked Questions
Common questions about Image to Base64.
It converts the bytes of an image into a text string, so the image can be embedded directly in HTML, CSS, JSON or email.
A data URI is a Base64 string with a prefix such as data:image/png;base64, that browsers can display like a normal image URL.
Choose the CSS or HTML format and paste the copied code into your stylesheet or page.
Base64 represents binary data with text characters, which makes it about 33% larger than the original image.
No. The image is encoded in your browser and never sent to a server.
Related Image Tools
Explore more free tools.