ToolCabana

Embellecedor de HTML

Formatea HTML sin ejecutarlo.

Favorites are saved in this browser. Find them in My favorites.

Embellecedor de HTML

Your input stays in this browser unless stated otherwise
Clear your input, files and result, and restore the default settings.
Load sample text to explore what this tool can do. This replaces your current input.
0 charactersClear the source text.

Cómo usar Embellecedor 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.

  1. Pega la fuente en el editor de entrada o carga el ejemplo integrado.
  2. Configura los espacios de sangría.
  3. Ejecuta el embellecedor de HTML, revisa la salida y usa los controles disponibles para copiar o descargar.

Qué admite esta herramienta

Formatea HTML sin ejecutarlo.

Espacios de sangría
Range: 1 to 8

Límites y procesamiento

Las operaciones de texto aceptan generalmente hasta 2,000,000 caracteres. Los analizadores, generadores y fórmulas individuales aplican límites adicionales que muestran sus controles.

Fuente de ejemplo
<main><h1>Hello</h1><p>World</p></main>

Preguntas frecuentes

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.

¿Dónde se procesa mi entrada?

Esta operación procesa su fuente en tu navegador. Copiar y descargar son acciones explícitas; la entrada de origen no se guarda en una cuenta ni en un historial.

¿Cuáles son los límites de entrada?

Las operaciones de texto aceptan generalmente hasta 2,000,000 caracteres. Los analizadores, generadores y fórmulas individuales aplican límites adicionales que muestran sus controles.