Your files

Each file stays available at its link for 48 hours and is then deleted from our server automatically. You can delete it earlier at any time.

No files yet. Files you convert appear here and stay available for 48 hours.

HTML Formatter

Make HTML readable: consistent indentation and line breaks in one click.

Drag and drop, or upload file
Choose file
Maximum 1 GB

Format HTML Online

Paste HTML into the editor or upload a file and click "Format": the code is re-indented and laid out the same way everywhere, so it is easy to read, review and compare. Choose the indentation you like and copy or download the result.

Inline <style> and <script> blocks are formatted too, as CSS and JavaScript. Long tags are split over several lines with one attribute per line, and the text of <pre> and <textarea> is left untouched.

Why Use This Tool?

  • Clean, consistent layout in one click
  • Syntax highlighting and line numbers
  • Errors shown with line and column
  • Free, no registration, works in your browser

How to Format HTML

  1. Paste your HTML or upload a file
  2. Choose the options and click "Format"
  3. Copy the result or download it

Frequently Asked Questions

Is this tool free?

Yes, it is completely free, with no registration and no limits.

Can it fix broken HTML?

It formats what a browser would read, but it doesn't guess missing tags. To find unclosed elements and other mistakes, use the HTML validator.

Is my code sent anywhere?

No. Everything runs in your browser: the code you paste or the file you choose never leaves your device.

Related tools

TOP