EN
Local

HTML Formatter

Beautify messy HTML with clean indents, or minify it to make it smaller. CSS and scripts inside are tidied too.

FreeNo sign-upNothing uploadedSaves your work
How it works

How to use HTML Formatter

  1. Paste your HTML.
  2. Pick 2 spaces, 4 spaces or tabs and how long lines can be.
  3. Press Format or Minify, then copy or download the result.

Also useful for: html formatter, html beautifier, format html online, html pretty print, html minifier

Questions
Is HTML Formatter really free?

Yes. There's no sign-up, no daily limit, no watermark and nothing to pay later.

Are my files uploaded?

No. HTML Formatter runs inside your browser, on your own device. What you drop or paste never reaches our servers, or anyone else's.

What happens if I close the page?

What you type and the options you pick are saved in this browser, so they're still here when you come back. Files you drop aren't kept. Press "Start fresh" to clear it, or turn saving off in Settings.

Does it work on my phone?

Yes. It works in Chrome, Safari, Edge and Firefox on phones, tablets and computers. Nothing to install, and once the tool has loaded it keeps working offline.

Who made Tooliko?

Hamza Khalid, for readers of the AI in Public newsletter. It's 474 free tools that help students and non-technical people get things done, with a new tool added every week.

Missing a feature or found a bug? Tell us here, or reply to any AI in Public email.

One new free AI tool, every week.

AI in Public helps you learn AI without any technical knowledge. Each issue: one new tool for Tooliko, and exactly how to use it.

Subscribe free → Join 9,000+ readers · unsubscribe any time
Open slotYour brand hereReach people who use free tools every day.
Runs in this browser · nothing uploaded