BTC $64,505.00 −1.17% ETH $1,815.96 −0.77% USDT $0.9994 −0.02% BNB $590.51 −1.08% USDC $0.9997 −0.01% XRP $0.9557 −1.37% SOL $71.75 −0.99% TRX $0.3050 +0.39% FIGR_HELOC $1.04 — STETH $1,796.44 −1.86% HYPE $68.70 +2.84% ZEC $906.37 +0.33% XMR $493.53 −1.00% DOGE $0.0588 −1.13% BTC $64,505.00 −1.17% ETH $1,815.96 −0.77% USDT $0.9994 −0.02% BNB $590.51 −1.08% USDC $0.9997 −0.01% XRP $0.9557 −1.37% SOL $71.75 −0.99% TRX $0.3050 +0.39% FIGR_HELOC $1.04 — STETH $1,796.44 −1.86% HYPE $68.70 +2.84% ZEC $906.37 +0.33% XMR $493.53 −1.00% DOGE $0.0588 −1.13%

HTML Beautifier

Paste minified or untidy HTML and get readable code with proper indents.

  • 100% Free
  • No sign-up
  • Runs in your browser

What is the HTML Beautifier?

Minified templates, code copied from a page source or HTML exported by an editor are hard to read. The HTML Beautifier adds line breaks and indentation so you can see the structure at a glance.

Choose 2 spaces, 4 spaces or tabs. The formatting uses the well-known js-beautify library and runs in your browser, so private code is never uploaded.

Features

Your indentation

2 spaces, 4 spaces or tabs.

Handles inline CSS and JS

Script and style blocks are formatted too.

Private

Your code stays on your device.

How to use the HTML Beautifier

  1. 1

    Paste your HTML.

  2. 2

    Pick the indent.

  3. 3

    Copy the clean code.

Who it is for

Debugging

Find a missing closing tag in a long template.

Learning

Read how other pages are built.

Tips for better results

  • Beautify before you compare two versions of a page. Diffs become much clearer.

Questions people ask

Does it change how the page works?

No. It only changes spacing and line breaks, except inside pre and textarea, which are left alone.

Does it change how the page looks?

No, only spacing and line breaks between tags.

Trustpilot

What our customers say

4.8 / 5Trustpilot rating
FREE BITCOIN TOOLS

Stuck Bitcoin transaction?

Paste your TXID, see where it stands, and give it a free push. No signup, no wallet access.

Try the free accelerator
  • Free
  • No signup
  • Live status