Imagen a Base64
Codifica una imagen como URL de datos Base64.
Imagen a Base64
Drop your images here
or choose files from your device
Cómo usar Imagen a 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.
- Elige un archivo de origen. Si la herramienta acepta varios archivos, ordénalos como quieras.
- Comprueba el formato de origen antes de ejecutar la operación.
- Ejecuta la conversión de imagen a Base64, revisa la salida y usa los controles disponibles para copiar o descargar.
Qué admite esta herramienta
Codifica una imagen como URL de datos Base64.
Límites y procesamiento
Las imágenes están limitadas a 32 megapíxeles y 16,000 píxeles por lado. La mayoría de operaciones acepta una fuente; las operaciones por lotes admitidas producen un archivo ZIP.
Preguntas frecuentes
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.
¿Dónde se procesa mi entrada?
Esta operación procesa su fuente en tu navegador. Copiar y descargar son acciones explícitas; la entrada de origen no se guarda en una cuenta ni en un historial.
¿Cuáles son los límites de entrada?
Las imágenes están limitadas a 32 megapíxeles y 16,000 píxeles por lado. La mayoría de operaciones acepta una fuente; las operaciones por lotes admitidas producen un archivo ZIP.