Converti immagine in Base64
Codifica un'immagine come URL di dati Base64.
Converti immagine in Base64
Drop your images here
or choose files from your device
Come usare Converti immagine in Base64
Image to Base64 encodes an image file into a Base64 data URL that begins with data:image/ and the file type. The original bytes are encoded unchanged, so the format, quality and any embedded metadata are preserved. You can copy the string or download it as image-base64.txt for use in HTML, CSS or JSON.
- Scegli un file di origine. Se lo strumento accetta più file, disponili nell'ordine desiderato.
- Controlla il formato di origine prima di eseguire l'operazione.
- Esegui la conversione da immagine a Base64, esamina il risultato, poi usa i controlli disponibili per copiare o scaricare.
Cosa supporta questo strumento
Codifica un'immagine come URL di dati Base64.
Limiti ed elaborazione
Le immagini sono limitate a 32 megapixel e 16.000 pixel per lato. La maggior parte delle operazioni accetta un'unica origine; le operazioni in batch supportate producono un archivio ZIP.
Domande frequenti
How do I use a Base64 image in HTML or CSS?
Paste the full data URL as the src of an img element or inside url() in a CSS background property. The string already includes the data:image prefix and MIME type, so no extra formatting is needed.
Does converting an image to Base64 remove EXIF data?
No. The file is encoded byte for byte, so EXIF, GPS and other embedded metadata remain inside the Base64 string. Strip the metadata first if you plan to publish the encoded image.
Why is the Base64 string bigger than my image file?
Base64 represents every 3 bytes of binary data with 4 text characters, so the encoded string is roughly a third larger than the original file. Large images therefore produce very long strings.
Dove viene elaborato il mio input?
Questa operazione elabora i dati di origine nel tuo browser. Copia e download sono azioni esplicite; l'input di origine non viene salvato in un account né in una cronologia.
Quali sono i limiti di input?
Le immagini sono limitate a 32 megapixel e 16.000 pixel per lato. La maggior parte delle operazioni accetta un'unica origine; le operazioni in batch supportate producono un archivio ZIP.