# Embelezador de HTML

> Formata HTML sem executá-lo.

[Open tool](https://www.toolcabana.com/pt-br/html-formatter) · [Desenvolvimento e dados](https://www.toolcabana.com/pt-br/category/developer-and-data)

Tool ID: html-formatter. Requested language: pt-BR. Description language: pt-BR. Complete guide translation: yes.

## Overview (en)

HTML beautifier reformats HTML markup with consistent line breaks and indentation, using 1 to 8 spaces per level. The markup is parsed as text and never rendered or executed, so scripts in it do not run. Attribute quotes are normalized to double quotes, and invalid markup returns a parser error instead of output.

## Supported tasks (pt-BR)

Formata HTML sem executá-lo.

## Steps (pt-BR)

1. Cole a fonte no editor de entrada ou carregue o exemplo integrado.
2. Configure os espaços de indentação.
3. Execute o embelezador de HTML, revise a saída e use os controles disponíveis para copiar ou baixar.

## Settings

- Espaços de indentação (pt-BR; key: indent; type: number); minimum: 1; maximum: 8

## Limitations (pt-BR)

As operações de texto aceitam geralmente até 2,000,000 caracteres. Analisadores, geradores e fórmulas individuais aplicam limites adicionais mostrados pelos seus controles.

## Example input

```text
<main><h1>Hello</h1><p>World</p></main>
```

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

### Does the HTML beautifier run scripts in my page?

No. The HTML is parsed as text and printed back with new indentation. Nothing is rendered, loaded or executed, including inline script elements.

### How do I change the indent size for formatted HTML?

Set Indent spaces to any whole number from 1 to 8 before running the tool. The default is 2 spaces per nesting level.

### Can I beautify a partial HTML snippet?

Yes. You can paste a fragment such as a main element with children rather than a full document. Elements that fit within the line width may stay on one line.

### 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 operações de texto aceitam geralmente até 2,000,000 caracteres. Analisadores, geradores e fórmulas individuais aplicam limites adicionais mostrados pelos seus controles.

## Related tools

- [SQL formatter](https://www.toolcabana.com/pt-br/sql-formatter)
- [CSS beautifier minifier](https://www.toolcabana.com/pt-br/css-formatter)
- [JavaScript formatter](https://www.toolcabana.com/pt-br/js-formatter)
- [XML formatter](https://www.toolcabana.com/pt-br/xml-formatter)
