Website File Size & Page Weight Analyzer

A page’s total weight — every byte of HTML, CSS, JavaScript, fonts and images the browser must download before it can show content — is one of the biggest levers on load speed, and usually the first thing to bloat when a site ages. This analyzer measures that weight four different ways: fetch a live URL directly from your browser, paste a page’s HTML source, upload the local files that make up a page, or import a HAR export straight out of DevTools for exact transfer sizes. It then splits the total by resource type, ranks the heaviest files, and turns the results into a concrete list of optimisation opportunities with estimated savings — so you know not just how heavy the page is, but which specific file to fix first.

100% private. Every mode runs in your browser on this device. Paste, upload and HAR modes never send anything anywhere — close the tab and nothing remains. URL mode sends requests only from your own browser to the site you are analysing (the same requests any visit would make); it does not route through techgeek.biz or any proxy, and it cannot read a response from a site that does not allow cross-origin reads, in which case the tool tells you exactly what it could and could not measure.

Settings

The budget drives the A–F grade; the connection drives the estimated download time. Both are your assumptions, not measurements — change them and re-read the summary, no re-analysis needed.

Your browser fetches the page and each of its resources directly. Sites that send no CORS headers (most do not) cannot be measured this way — the tool will say so, and Paste HTML or HAR mode covers them with equal or better accuracy.

Right-click → View Page Source and copy everything, or open the file you saved with “Save page as”. The document size and all inline CSS/JS are measured exactly; external resources are listed by type and measured when your browser is allowed to read them.

Drop the page’s files here, or click to browse
HTML, CSS, JS, fonts and images — select as many as you like. The analyzer measures every file exactly and links each one back to the HTML that references it.

This is the mode for “how big is my site before I deploy it”: drop in the build output (or just the HTML and its assets) and get real byte counts with zero network involved.

Drop a .har file here, or click to browse
DevTools → Network tab → right-click any request → Save all as HAR with content. HAR carries the exact transfer size of every request, so this is the most accurate mode.

How to use this tool

Pick the mode that matches what you have. Analyze a URL is the quickest start: type the address and let your browser fetch the page and its resources. It works whenever the target site allows cross-origin reads; when it does not, the tool says exactly which parts it could measure. Paste HTML source covers any page you can view — copy the full source (right-click → View Page Source) and the analyzer measures the document and every inline style or script byte-for-byte, then lists each external stylesheet, script, font and image it references. Upload local files is for your own work in progress: drop the HTML and its assets (or just a pile of images and bundles) and get exact sizes with no network at all. Import HAR is the pro mode — DevTools’ Network tab exports a HAR file containing the true transfer size, compression state and cache headers of every request, which is the same data professional audits start from.

In every mode you then read the same report: total weight against your chosen budget with an A–F grade, a per-type breakdown, the ten heaviest resources, and a prioritised list of optimisation opportunities with estimated savings in kilobytes. Copy the report as text or download the full data as JSON to attach to a ticket.

What it measures

  • HTML — the document itself, including inline <style> and <script> blocks counted in their own type buckets.
  • CSS — external stylesheets plus any fonts or images referenced from url() inside inline styles or style="" attributes.
  • JavaScript — <script src> tags, module preloads and inline scripts.
  • Fonts — WOFF, WOFF2, TTF, OTF and EOT files wherever they are referenced.
  • Images — <img> (including every URL in a srcset), picture sources, video posters, favicons and manifest icons.
  • Media and other — audio/video files, web manifests, anything else the page pulls.

In HAR mode each resource additionally carries its compression state (was it sent gzip/Brotli?), its cache headers, how many times it was requested, and its response status — which is what turns a size list into an actionable audit.

A worked example

Suppose you analyze a marketing landing page in HAR mode with the standard 500 KB budget. The report reads: total weight 1.35 MB across 42 requests — images 648 KB, JavaScript 310 KB, HTML 212 KB, fonts 84 KB, CSS 96 KB — grade C (270% of budget), estimated download time about 8.5 seconds on Fast 3G. The heaviest-resources table puts hero.jpg first at 480 KB. The opportunities list then says, in priority order:

[warning] Large image: hero.jpg (480 KB) - re-encode as WebP/AVIF or resize (est. ~190 KB)
[warning] 6 text responses sent uncompressed - enable gzip/Brotli (est. ~210 KB)
[warning] analytics.js requested twice - deduplicate (saves 60 KB)
[info]    12 static assets have no cache-control header
[info]    4 render-blocking stylesheets in <head>

Fix the first three and the page lands near 0.85 MB — grade B, roughly half the download time on a slow connection. That is the point of the tool: it does not just tell you the page is heavy, it tells you which file to open first.

Page weight budgets and grades

The default 500 KB budget comes from Google’s guidance that most pages should aim to keep total transfer under about 500 KB on a mid-range phone over a decent connection — below that, the majority of visitors reach first paint in a couple of seconds. The 250 KB preset is for mobile-first products where every kilobyte competes with the user’s patience; 1 MB suits desktop-heavy or content-rich pages. Grades map to the budget ratio: A at 60% or less, B up to 100%, C to 150%, D to 200%, and F beyond. Treat the grade as a conversation starter, not a law — a photo portfolio that is 80% images at 1.2 MB may be fine, while a SaaS landing page at the same weight is not.

Common mistakes to avoid

  • Optimising the wrong number. File size on disk is not transfer size: an uncompressed 500 KB JavaScript file may ship as 140 KB over the wire. Use HAR mode to see what actually crosses the network, and check the compression state before minifying anything.
  • Cutting images by guesswork. A 480 KB hero image is a problem; a 300 KB product photo that is the page’s main content may not be. Look at the breakdown, not just the total — and resize to the displayed dimensions before re-encoding, because encoding a 4000-pixel image to WebP still leaves you shipping pixels nobody sees.
  • Ignoring duplicates. The same analytics or widget script loaded from two tags is pure waste — the analyzer flags any URL requested more than once, with the exact bytes saved by removing the repeat.
  • Trusting one mode for everything. URL mode cannot see behind CORS walls; pasted HTML cannot know a resource’s real size if the browser is not allowed to read it. When a report shows many “size not readable” rows, re-run in HAR mode for ground truth.
  • Chasing A at any cost. Inline CSS is fast (no extra request) even though it bloats the HTML; a single small font weight is usually cheaper than three. The tool’s savings estimates are estimates — re-analyze after each change and let the numbers, not the grade letter, decide when to stop.

How it works

The page is a single static HTML document; all analysis runs in your browser. Pasted or fetched HTML is parsed with the standard DOMParser, and every resource reference — script, stylesheet, image, srcset entry, font and media URL, including references hidden inside inline CSS — is collected, resolved to an absolute address and de-duplicated. Where your browser permits it, each resource is fetched directly and its size read from the response (the content-length header when present, otherwise by streaming the body with a 25 MB safety cap). Uploaded files are read locally through the File API, so their sizes are exact to the byte; HTML among them is parsed too, and each reference is matched against the other uploaded files by path. HAR input is plain JSON: the analyzer walks log.entries, reading each entry’s transfer size, response headers and timing, which is why that mode can report compression and cache state as well as weight. Nothing in any mode is transmitted to a server — the only network traffic URL mode generates is the direct request from your browser to the site being analyzed.


Luke Keam
Spot a bug or want a custom utility built? I'd love to hear from you. Get in touch
Luke Keam | techgeek.biz