Suelta aquí tu imagen
A single image file of any common format
Hasta 10 MB por archivo
Formato de salida
Esperando resultados
Añade archivos a la izquierda, ajusta las opciones y ejecuta desde la barra superior para comparar resultados y descargar.
Todo el cálculo y la conversión se ejecutan en local en el navegador mediante el motor V8 o WebAssembly. Los archivos y el texto nunca salen de tu dispositivo.
Acerca de
Base64 encoding is useful when an image has to travel inside HTML, CSS or JSON instead of as a separate file. This tool encodes the original file bytes, so the data URI keeps the exact source format and quality.
Cómo usar
Formatos y especificaciones
Preguntas frecuentes
What is the difference between a data URI and raw Base64?
A data URI includes the `data:<mime>;base64,` prefix and can be used directly as an img src or CSS url(). Raw Base64 is just the encoded payload, intended for an API field or a JSON document where you supply the MIME type separately.
How much bigger does the image get?
Base64 represents 3 bytes as 4 characters, so output grows by roughly 33% plus the small prefix. The tool shows the exact character count so you can decide whether inlining is worth it.
When should I avoid data URIs?
For large images, a normal file is better: data URIs cannot be cached independently, block HTML parsing and bloat your markup. They are best for small icons, placeholders and single-file demos.
Does the image get re-encoded?
No. The original file bytes are encoded, so a JPEG stays a JPEG and a PNG stays a PNG, exactly as supplied.
Limitaciones
- Base64 adds about 33% overhead; keep inlined images small.
- Very large files produce long strings that can be slow to copy or paste in some editors.
- The tool encodes; it does not decode Base64 back into a downloadable file.