How big is a web page? Not the size of one file, but the sum of every file the browser fetches to show it: the page's own markup, its styles and scripts, fonts, images and sometimes video. That total is the page's weight, and it sets a floor under how long the page takes to arrive.

This guide defines page weight, shows where the bytes go using the HTTP Archive's 2025 figures, and converts a weight into transfer time with the download time calculator formula. You will also see why the size of the main document alone tells you very little.

What page weight counts

The HTTP Archive's Web Almanac defines page weight, also called page size, as "the total volume of data" a user must download to view a webpage, measured in kilobytes or megabytes. A browser sends requests for many assets, and the sum of all the bytes shipped is the weight.

Two details keep the number honest. First, the Almanac separates transfer size from original size: because of on-the-fly compression, the bytes sent over the network are often much smaller than the original file. HTTP compression is the mechanism. Second, a stored copy can avoid a transfer entirely. The HTTP caching specification describes a cache as a local store of responses that reduces response time and network bandwidth for later equivalent requests, so a repeat visit can weigh less than the first.

Where the bytes go: the 2025 medians

The 2025 Web Almanac reports medians for home pages by file type. The table repeats its figures for the median desktop and mobile home page. This guide reads each KB as 1,000 bytes.

Component Desktop (KB) Mobile (KB)
HTML 22 22
CSS 82 77
Fonts 139 122
JavaScript 697 632
Images 1,058 911
Total page 2,862 2,559

The chapter summarizes the total as "2.86 MB on desktop and 2.56 MB on mobile" and says images accounted for the most bytes on both, followed by JavaScript and fonts. The mobile median is 303 KB below the desktop median (2,862 − 2,559), about 10.6% lighter.

The rows do not add up to the total, and they should not. Each row is the middle value for one file type, and a page can also contain file types the table leaves out. On desktop the five rows sum to 22 + 82 + 139 + 697 + 1,058 = 1,998 KB, against a total of 2,862 KB. Read the rows as a ranking of where bytes concentrate, not as a bill of materials.

Two limits apply. The figures describe home pages. The same chapter reports a lower median for inner pages, 1,769 KB on mobile, so pages below the home page are lighter than the table suggests. And the weight has grown: the chapter's chart shows the median mobile home page rising from 505 KB in 2014 to 2,559 KB in 2025, a factor of 5.07.

From weight to waiting time

Weight converts to time with the transfer formula: seconds = (bytes × 8) ÷ speed in bit/s. Example: the median mobile home page of 2,559 KB is 2,559,000 bytes, or 20,472,000 bits.

Speed Transfer time for 2,559 KB
1 Mbps 20.47 s
5 Mbps 4.09 s
10 Mbps 2.05 s
25 Mbps 0.82 s
100 Mbps 0.20 s

These are data-only times with no overhead. A real page also waits on round trips, the web server and the device. The FCC's broadband report lists the home network, the download speed within the provider's network, the web server's speed, congestion in other networks and the lookup of the server's address as factors in page download time. The bandwidth, throughput and latency guide shows why a faster link stops helping after a point.

The formula also runs backward to set a budget: maximum weight = speed × time ÷ 8. Example: a page that must arrive within 3 seconds on a 5 Mbps connection can weigh at most 5,000,000 × 3 ÷ 8 = 1,875,000 bytes, or 1,875 KB, before any overhead. With an assumed 10% overhead, the limit falls to 1,875,000 × 0.90 = 1,687,500 bytes.

Weight also counts against data allowances. Example: 100 loads of a 2,559 KB page transfer 100 × 2,559,000 = 255,900,000 bytes, which is 255.9 MB. The data caps guide turns such totals into a monthly budget.

Estimating the weight of your own page

Add the sizes of the files a page requests, in bytes, then apply the table above to see which type dominates. Images are the usual starting point, because the medians put them first.

Worked example. Example: one photo shown at 1,200 × 800 pixels, stored uncompressed at 24 bits per pixel.

  1. Bytes per pixel: 24 bits ÷ 8 = 3.
  2. 1,200 × 800 × 3 = 2,880,000 bytes, or 2.88 MB.
  3. Compare: the median mobile images total is 911 KB, so this one raw file is about 3.2 times larger (2,880 ÷ 911).

Even before the rest of the page loads, the raw file would outweigh the whole median mobile page of 2,559 KB.

Real image files are compressed, which is why the medians are far smaller. The image file size calculator gives the uncompressed figure from width, height and color depth. Choosing dimensions and formats is covered in image dimensions for the web.

Common mistakes

  • Judging weight by the HTML file. The median HTML is 22 KB on both desktop and mobile, against a total near 2,559 KB on mobile. The document is a small part of what is fetched.
  • Comparing numbers from different reports. Years, device types, home pages versus inner pages and measurement dates change the medians. Compare like with like.
  • Treating a median as a target. A median is the middle of a distribution of pages. Your audience's connection and data allowance set the right budget; compute it with the formula.
  • Equating weight with load time. Weight gives the data-only floor. Requests, servers and devices add to it.
  • Adding the component medians. As shown above, separate medians do not sum to the total. Use measured sizes for your own page.

FAQ

What is a good page weight?

No single number applies to every site. Pick the slowest connection you want to serve, decide how long the data may take, and work backward with the transfer formula. The medians show only what pages commonly weigh.

Is page weight the same as file size?

Not quite. File size is one file's bytes. Page weight is the sum for every file needed to show the page, and it can be counted as bytes transferred or as original size.

Do repeat visits download everything again?

Not necessarily. A cache can supply stored responses without a new transfer, so the second visit can weigh less. How much less depends on what was stored.

Does compression change page weight?

It changes the transferred bytes of text files such as HTML, CSS and scripts. The MDN guide recommends skipping files that are already compressed, such as images, audio and video.

Sources

  1. HTTP Archive, The Web Almanac 2025, Part IV, Chapter 14: Page Weight. Accessed November 6, 2026.
  2. IETF, RFC 9111: HTTP Caching. Accessed November 6, 2026.
  3. MDN Web Docs, Compression in HTTP. Accessed November 6, 2026.
  4. FCC, Thirteenth Measuring Broadband America Fixed Broadband Report. Accessed November 6, 2026.