Embelezador de HTML
Formata HTML sem executá-lo.
Embelezador de HTML
Como usar Embelezador de HTML
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.
- Cole a fonte no editor de entrada ou carregue o exemplo integrado.
- Configure os espaços de indentação.
- Execute o embelezador de HTML, revise a saída e use os controles disponíveis para copiar ou baixar.
O que esta ferramenta suporta
Formata HTML sem executá-lo.
- Espaços de indentação
- Range: 1 to 8
Limites e processamento
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.
Fonte de exemplo
<main><h1>Hello</h1><p>World</p></main>
Perguntas frequentes
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.