Code · Made a little simpler

HTML Page Weight Analyzer

Measure the UTF-8 source and compare inline script, style, embedded source and comment bytes. Find declared resources by source position without sending requests.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device

Measures UTF-8 bytes from the current source. Referenced file sizes, compression and network transfer need separate evidence.

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

HTML Page Weight Analyzer: how to use it

  1. Open a local HTML file or paste the source. Choose a document or fragment to match its structure.
  2. Select Measure page weight. Review the source byte breakdown and the location and token size of supported resource attributes.
  3. Download the JSON report. Compare changes with the same source scope and use recorded browser measurements for network transfer.

Limits and notes

Accepts up to 250,000 UTF-16 code units of saved HTML. The breakdown measures the current text encoded as UTF-8 and can show original uploaded file bytes separately. The analyzer inventories selected HTML resource attributes and shows up to 150 declarations. External bytes, compression, CSS dependencies and runtime requests are outside source measurement.

How your privacy works →

HTML Page Weight Analyzer: common questions

Why is the UTF-8 source size different from my file size?

A saved file may contain a byte order mark or use UTF-16. The original file bytes come from the local file. The UTF-8 total measures the decoded text in the workspace.

Does each srcset URL count as a resource?

Each srcset attribute counts as one candidate-list declaration. Source evidence cannot show which candidate a browser selects.

Are resource token bytes added to the page total?

The token bytes are already part of the measured HTML. They describe source text, including the attribute name and punctuation, independently of any resource transfer.

Guides