Decodificador de Base64 a imagen gratuito
El decodificador de Base64 a imagen convierte una cadena Base64 de vuelta en una imagen visible. Pega una data URI o Base64 sin procesar, previsualízala y descárgala como archivo, todo en tu navegador.
The encoding direction is the Image to Base64 Converter, and documents are handled by the Base64 to PDF Decoder. To move between encodings rather than formats, the Base64 to Hex Converter is the tool.
Cómo usar Base64 a imagen
- 1 Paste a Base64 string into the input box — the bare payload, or a complete data URI starting with `data:image/`.
- 2 Press Decode. The tool sniffs the format from the decoded bytes rather than trusting the label, so a mislabelled string still produces a correct file.
- 3 Check the preview to confirm the right image came back.
- 4 Download it, or right-click the preview to copy the image directly.
Cómo usarlo
Pega una cadena Base64 (con o sin el prefijo data:), pulsa Decodificar y luego previsualiza y descarga la imagen.
- Acepta tanto data URI completas como Base64 sin procesar
- Vista previa en vivo de la imagen decodificada
- Descarga como PNG (o el formato original)
Preguntas frecuentes
The string decodes but the browser shows a broken image. What went wrong?
Almost always the string is truncated or has whitespace inserted in the middle. Base64 is position-sensitive: a single missing character shifts every subsequent group and the bytes come out as garbage. Long strings copied out of an email client or a chat window are the usual culprits, because those wrap lines and sometimes strip trailing characters.
How do I know which image format is hiding in the string?
You do not have to. The first decoded bytes carry a signature — \xFF\xD8\xFF for JPEG, \x89PNG for PNG, GIF8 for GIF, and the letters RIFF/WEBP for WebP. The decoder reads those bytes and picks the extension from them, so a string wrongly labelled as PNG but actually holding a JPEG still saves correctly.
What image MIME types and data URI prefixes can be parsed?
The decoder accepts both raw Base64 character strings and full RFC 2397 Data URI schemes including image/png, image/jpeg, image/webp, image/gif, and image/svg+xml. It automatically strips header prefixes like data:image/png;base64, before validating the byte stream against magic numbers to render the correct file extension.
Herramientas de imagen y color relacionadas
También te puede interesar
Herramientas de otras categorías que suelen combinarse con Base64 a imagen: