# Imagen a Base64

> Codifica una imagen como URL de datos Base64.

[Open tool](https://www.toolcabana.com/es/image-to-base64) · [Imágenes y diseño](https://www.toolcabana.com/es/category/images-and-design)

Tool ID: image-to-base64. Requested language: es. Description language: es. Complete guide translation: yes.

## Overview (en)

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.

## Supported tasks (es)

Codifica una imagen como URL de datos Base64.

## Steps (es)

1. Elige un archivo de origen. Si la herramienta acepta varios archivos, ordénalos como quieras.
2. Comprueba el formato de origen antes de ejecutar la operación.
3. Ejecuta la conversión de imagen a Base64, revisa la salida y usa los controles disponibles para copiar o descargar.

## Settings

No additional settings.

## Limitations (es)

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.

## Privacy and connections (es)

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.

## Questions (es)

### 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.

## Related tools

- [Base64 to image](https://www.toolcabana.com/es/base64-to-image)
- [Image to ASCII art](https://www.toolcabana.com/es/image-to-ascii)
- [Social image resizer](https://www.toolcabana.com/es/social-image-size)
- [Color picker from image](https://www.toolcabana.com/es/image-color-picker)
