# Embellecedor de HTML

> Formatea HTML sin ejecutarlo.

[Open tool](https://www.toolcabana.com/es/html-formatter) · [Desarrollo y datos](https://www.toolcabana.com/es/category/developer-and-data)

Tool ID: html-formatter. Requested language: es. Description language: es. 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 (es)

Formatea HTML sin ejecutarlo.

## Steps (es)

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.

## Settings

- Espacios de sangría (es; key: indent; type: number); minimum: 1; maximum: 8

## Limitations (es)

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.

## Example input

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

## Privacy and connections (es)

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.

## Questions (es)

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

## Related tools

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