Resource Hints Generator
Builds preconnect, preload, prefetch and modulepreload tags and flags hint mistakes.
Enter the compressed size and request count of each part of a page, compare the total with your budget and see a rough download time on the connections you choose.
Use the transferred (compressed) sizes from the Network panel in your browser's developer tools. 1 KB is treated as 1,000 bytes. The sample is a made-up page. Nothing leaves your browser.
| Connection | Bandwidth only | With RTT model |
|---|

The free page weight budget calculator adds up the compressed size and request count of each part of a page, compares the total with the budget you set and shows a rough download time on the connections you choose, with every formula shown.
A page weight budget is a limit on the total transfer size and number of requests of a page, split by HTML, CSS, JavaScript, images and fonts. Measure compressed sizes in your browser's Network panel, add them up, and treat any type that pushes the page over budget as the first thing to shrink.
A page weight budget is a quantity-based performance budget: a fixed maximum for how many kilobytes and requests a page may use. web.dev's Performance budgets 101 defines a performance budget as "a set of limits imposed on metrics that affect site performance" and lists "the total size of a page" and "the number of HTTP requests that are sent" as quantity-based examples.
The budget is useful because it is easy to check before anything goes live. A designer can see that a new hero video would push the home page over budget, and a developer can see that a new script library eats half of the JavaScript allowance. Weight is not the same as speed, though, so pair the budget with real Core Web Vitals data.

There is no official number, so set the budget from your own pages and your visitors' connections. web.dev gives example budgets such as "Under 170 KB of critical-path resources (compressed/minified)" and "Our product page must ship less than 170 KB of JavaScript on mobile". Those are examples of how to write a budget, not limits Google applies. A practical method: measure your current page, measure two or three competitors, and set the budget a little below the fastest one.
Page weight is not a ranking factor by itself, but it affects loading speed, which Google measures through Core Web Vitals. Google's Core Web Vitals documentation asks you to "strive to have LCP occur within the first 2.5 seconds" and says good vitals align "with what our core ranking systems seek to reward". Heavy images and scripts are common reasons for slow LCP and poor INP, so trimming them is often the fastest win.
It is a rough approximation for comparing options, not a prediction of real load time. The bandwidth figure assumes the whole connection is used for the page and ignores latency. The RTT model adds 3 round trips for connection setup, matching the DNS, TCP and TLS steps that MDN describes for a new HTTPS connection, plus one round trip per group of requests. Real browsers also wait for the server, reuse caches and block rendering on some files.
| Type | Typical fix | Tool or check |
|---|---|---|
| Images | Compress, resize to display size, use WebP or AVIF, lazy-load below the fold | Image compressor, srcset |
| JavaScript | Remove unused libraries and plugins, defer non-critical scripts | Coverage panel in DevTools |
| CSS | Minify, remove unused rules, inline only critical CSS | CSS minifier |
| Fonts | Fewer families and weights, WOFF2, subset characters | Network panel, Font filter |
| HTML | Minify, remove inline bloat from page builders | HTML minifier |
| Other | Audit third-party tags, chat widgets and embeds | Network panel, third-party filter |
Example: a made-up service page has HTML 30 KB, CSS 60 KB, JavaScript 350 KB, images 900 KB, fonts 100 KB and other files 40 KB, in 45 requests. The total is 1,480 KB, which is 123.3% of a 1,200 KB budget, so the tool shows "Over budget by 280 KB" and 5 requests over a 40 request budget. Images are 60.8% of the page. On 1.6 Mbps the bandwidth only estimate is 1,480 × 8 ÷ 1,600 = 7.40 s; with a 150 ms RTT and 8 round trips for 45 requests at 6 per trip, the RTT model adds 11 × 0.15 s for 9.05 s.
Enter compressed transfer sizes, the amount that actually travels over the network. In Chrome DevTools that is the Transferred figure in the Network panel. Uncompressed sizes matter for parsing and memory, but they overstate download time.
Each request has overhead, and a page with many small files can load slowly even when its total size is modest. The request count also feeds the simple RTT model, which adds one round trip for each group of requests.
Use speeds that match your visitors. If your audience is mostly on mobile, include a slow connection with a high round trip time. You can rename the three rows, change the Mbps and RTT values, or clear a row to skip it.
This calculator treats 1 KB as 1,000 bytes and 1 Mbps as 1,000,000 bits per second, so the maths stays simple and the formula is easy to check by hand. The difference from 1,024 bytes is about 2%.
No. A light page can still have a slow LCP if the server is slow or the main image is discovered late, and poor INP usually comes from heavy JavaScript work, not just file size. Check field data as well as the budget.
No. The calculator runs entirely in your browser with JavaScript. The numbers you type are not uploaded or stored, so you can use it for client sites and pages that are not live yet.
Checked 23 Oct 2026. Facts checked against these official pages. Read how I check facts in my editorial policy.
Builds preconnect, preload, prefetch and modulepreload tags and flags hint mistakes.
An image compressor is a tool that reduces an image's file size by resizing it and re-encoding it with lossy…
A Core Web Vitals checker is a tool that compares your measured Largest Contentful Paint, Interaction to Next…
A CSS minifier is a tool that rewrites a stylesheet into the smallest equivalent text. It protects strings…
Send your website and I will check it for you, free.
One short email when something new goes live: articles, free SEO tools, package updates, discounts and price alerts. No spam, unsubscribe in one click.