Italiano

HTML formatter

Paste HTML and get it cleanly indented. CSS and JavaScript inside it are formatted too.

Free, no sign-up, no upload

How it works

Paste your HTML code in the box, choose the indent (2 spaces, 4 spaces or tab) and press Format.

Copy the result or download it as a file. Nothing is sent to a server: the formatting runs in your browser.

Private by design

Everything happens on your device. Files are not uploaded to any server.

Frequently asked questions

Is my HTML code uploaded anywhere?

No. It is formatted inside your browser and never leaves your device, so it is safe for private code.

Which indent can I choose?

2 spaces, 4 spaces or a tab.

Are CSS and JavaScript inside the page formatted?

Yes, style and script blocks are formatted as well.

Related tools

CSS formatterFormat, beautify and minify CSS, SCSS and Less online in your browserJavaScript formatterFormat and beautify JavaScript and TypeScript online in your browserCode formatter and beautifierFormat and beautify JSON, XML, PHP, HTML, CSS, JavaScript, TypeScript, SQL, YAML and more in your browserQR code generator that never expiresQR codes for links, text and Wi-Fi, no expiryUUID generatorGenerate random UUID v4 identifiers, one or hundreds at a timeRandom name pickerPick random names from a list or shuffle them into a random order

All tools →