# Conversão de SVG para PNG

> Renderize código SVG seguro como uma imagem PNG.

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

Tool ID: svg-to-png. Requested language: pt-BR. Description language: pt-BR. Complete guide translation: yes.

## Overview (en)

SVG to PNG renders SVG markup you paste into a PNG image. The SVG is sanitized first, removing scripts, style elements and attributes, embedded images, links and animations. If the root svg element has no width or height, the tool uses 1200 by 800 pixels. Markup with a DTD, entities or more than 5,000 elements is rejected.

## Supported tasks (pt-BR)

Renderize código SVG seguro como uma imagem PNG.

## 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 SVG para PNG, 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
<svg xmlns="http://www.w3.org/2000/svg" width="400" height="300" viewBox="0 0 400 300"><rect width="400" height="300" fill="#f5ede6"/><circle cx="200" cy="150" r="80" fill="#ed854b"/></svg>
```

## 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 set the size of the PNG when converting SVG?

Add width and height attributes to the root svg element, and the PNG is rendered at those pixel dimensions. When an attribute is missing, the tool fills in 1200 for the width or 800 for the height before rendering.

### Why does my SVG look different after converting to PNG?

The markup is sanitized before rendering. Style elements and style attributes, image and use references, foreignObject and animations are stripped, so artwork that depends on them renders without those parts. Presentation attributes such as fill and stroke are kept.

### Why does SVG to PNG time out or fail?

Rendering stops after 8 seconds, and SVGs larger than 16,000 pixels per side or 32 megapixels are refused. Markup that is not valid SVG, or that contains a DOCTYPE or entities, also returns an error instead of an image.

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

- [PNG to ICO](https://www.toolcabana.com/pt-br/png-to-ico)
- [WebP to PNG](https://www.toolcabana.com/pt-br/webp-to-png)
- [PNG to WebP](https://www.toolcabana.com/pt-br/png-to-webp)
- [PNG to JPG](https://www.toolcabana.com/pt-br/png-to-jpg)
