# Conversão de Base64 para imagem

> Decodifique um data URL de imagem em um arquivo para baixar.

[Open tool](https://www.toolcabana.com/pt-br/base64-to-image) · [Imagens e design](https://www.toolcabana.com/pt-br/category/images-and-design)

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

## Overview (en)

Base64 to image decodes a Base64 data URL back into a downloadable image. Paste a string that starts with data:image/png, jpeg, webp or gif followed by ;base64, and the tool previews the picture and saves it as a PNG, listing its width, height and size. Spaces and line breaks inside the Base64 are ignored.

## Supported tasks (pt-BR)

Decodifique um data URL de imagem em um arquivo para baixar.

## Steps (pt-BR)

1. Cole a fonte no editor de entrada ou carregue o exemplo integrado.
2. Verifique o formato de origem antes de executar a operação.
3. Execute a conversão de Base64 para imagem, revise a saída e use os controles disponíveis para copiar ou baixar.

## Settings

No additional settings.

## Limitations (pt-BR)

As imagens são limitadas a 32 megapixels e 16,000 pixels por lado. A maioria das operações aceita uma fonte; as operações em lote compatíveis geram um arquivo ZIP.

## Example input

```text
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQIHWP4z8DwHwAFgAI/ScLbtAAAAABJRU5ErkJggg==
```

## Privacy and connections (pt-BR)

Esta operação processa sua fonte no seu navegador. Copiar e baixar são ações explícitas; a entrada de origem não é salva em conta nem em histórico.

## Questions (pt-BR)

### How do I convert a Base64 string to an image?

Paste the complete data URL, including the data:image/...;base64, prefix, into the input and run the tool. The image is decoded, shown as a preview and offered for download as a PNG.

### Can I paste Base64 without the data:image prefix?

No. The input must be a full data URL beginning with data:image/png, data:image/jpeg, data:image/webp or data:image/gif followed by ;base64,. Add the matching prefix in front of raw Base64 text before decoding.

### Why is my decoded image saved as PNG instead of JPG?

After decoding, the image is drawn on a canvas and exported as PNG regardless of the source type. This keeps the decoded pixels lossless, but metadata from the original file is not carried over.

### Onde minha entrada é processada?

Esta operação processa sua fonte no seu navegador. Copiar e baixar são ações explícitas; a entrada de origem não é salva em conta nem em histórico.

### Quais são os limites de entrada?

As imagens são limitadas a 32 megapixels e 16,000 pixels por lado. A maioria das operações aceita uma fonte; as operações em lote compatíveis geram um arquivo ZIP.

## Related tools

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