# HTML beautifier

> Format HTML without running it.

[Open tool](https://www.toolcabana.com/ps/html-formatter) · [پراختیا او معلومات](https://www.toolcabana.com/ps/category/developer-and-data)

Tool ID: html-formatter. Requested language: ps. Description language: en. Complete guide translation: no; untranslated sections use English.

## Supported tasks (en)

Format HTML without running it.

## Steps (en)

1. Paste the source into the input editor, or load the built-in example.
2. Set indent spaces.
3. Run html beautifier, review the output, then use the available copy or download controls.

## Settings

- Indent spaces (en; key: indent; type: number); minimum: 1; maximum: 8

## Limitations (en)

Text operations generally accept up to 2,000,000 characters. Individual parsers, generators and formulas apply additional limits shown by their controls.

## Example input

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

## Privacy and connections (en)

This operation processes its source in your browser. Copy and download are explicit actions; source input is not saved in an account or history.

## Questions (en)

### What does html beautifier do?

Format HTML without running it.

### Where is my input processed?

This operation processes its source in your browser. Copy and download are explicit actions; source input is not saved in an account or history.

### What are the input limits?

Text operations generally accept up to 2,000,000 characters. Individual parsers, generators and formulas apply additional limits shown by their controls.

## Related tools

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