Skip to content
Sustainability

Sustainable website: a smaller carbon footprint

What makes a website emit CO2, why carbon calculators disagree and how images, lean delivery and hosting cut the footprint in ways you can actually verify.

23 min read NachhaltigkeitKlimaschutzCO2-Fußabdruckstatische WebsiteGreen Web

A website feels weightless, but it is not: every single view uses electricity. Data travels from the server across the network to the visitor's device, and each of those steps costs energy. For the median mobile page, the HTTP Archive's model estimates around 0.33 grams of CO2 per view (Web Almanac 2024) — that sounds like nothing, yet it adds up quickly across thousands of visits a month. For a trade business, a law firm or a restaurant the individual contribution is tiny, and still it is worth a look: almost everything that makes a page more climate-friendly also makes it faster and cheaper to run. This article explains, without jargon, why a website causes emissions at all, why carbon calculators show such different figures for the same page and which levers measurably reduce the footprint: images, lean delivery and hosting — with a worked example of switching images to AVIF and WebP and the rules under which sustainability can be presented honestly on your own site today.

The carbon footprint of a websiteWhat one page view costs — and how lean delivery cuts itHeavy pageData per view4.2 MBCO2 per view0.62 gImages, video, trackers, heavy JavaScriptLean and staticData per view0.4 MBCO2 per view0.06 goptimised images, no bloat, statically deliveredEvery view counts: lean static pages cut data load and CO2and load faster too — climate and speed pull the same way

Why a website causes CO2

Behind every view sits a chain of devices that need power: the server the page lives on, the networks and data centres the data passes through, and finally the phone or computer that displays it all.

On top of that comes the energy already embodied in manufacturing those devices. Where the electricity is not fully generated from renewable sources, greenhouse gases arise. For 2024 the HTTP Archive estimates 0.37 grams of CO2 per view for the median page on desktop and 0.33 grams on mobile (Web Almanac 2024). Taken on its own that is nothing. At 5,000 page views a month, though, the mobile figure already comes to around 20 kilograms a year (own calculation: 60,000 views times 0.33 grams), and across millions of websites it adds up to a meaningful figure. Higher figures from older sources are no contradiction: the earlier version of the calculation model assumed more than twice as much CO2 per gigabyte (see methodology).

Exactly how large the digital share of global emissions is cannot be pinned down to the decimal. According to a joint report by the World Bank and the International Telecommunication Union (ITU), at least 1.7 percent of global emissions in 2022 stemmed from the information and communication technology sector (World Bank and ITU); other estimates range from 1.5 to 4 percent (ITU). A growing part of that falls to data centres: in 2024 they used around 1.5 percent of the world's electricity, about 415 terawatt-hours (IEA), and their consumption is set to more than double to around 945 terawatt-hours by 2030 (IEA). Artificial intelligence is the most important driver, alongside growing demand for other digital services (IEA). The single business website is a tiny dot in this picture. That is precisely why this is not about saving the world, but about a double benefit: what makes the page lighter as a rule also makes it faster and cheaper to run.

What drives a page's footprint

In the common calculation models, the electricity use of a view depends above all on one thing: how much data is transferred (Web Almanac 2024).

The heavier a page, the more bytes travel across the network, the longer processors work and the more energy flows. And pages keep getting heavier: the median mobile home page now weighs 2.6 MB, up 8.4 percent from 2.4 MB the year before (Web Almanac 2025). In July 2015 it was 845 KB (Web Almanac 2025) — a rise of 202.8 percent in ten years (Web Almanac 2025), so the weight has roughly tripled. A large share of visits comes from phones, often over mobile networks with a limited data allowance. Cutting the data load therefore helps the climate, the speed and the visitor's data allowance at the same time. These factors drive the weight most:

Full-size images

Uncompressed photos are the most common ballast. A single image can weigh more than the entire rest of the page content.

Auto-playing videos

Background videos and embedded clips often load several megabytes before the first line of text is visible.

Too many typefaces

Every embedded font family with several weights loads additional files that delay rendering.

External embeds

Maps, social widgets and chat windows pull in code from third-party servers that nobody in the business controls.

Heavy scripts and trackers

Bulky builder scripts and many counting pixels run on every view and cost processing time.

Server location and power mix

Where the page is hosted and where the electricity comes from help decide how much CO2 falls on each transferred byte.

Images weigh heaviest: the median mobile home page loads 911 KB of images (Web Almanac 2025) — more than any other file type, followed by JavaScript and fonts (Web Almanac 2025). That is exactly where the biggest lever sits. How to slim images down without visible loss of quality is shown in the article on images on the website; which hidden loads maps, videos and fonts from third-party servers bring along is set out in the article on external content.

Lean delivery: the biggest lever

The most effective step towards a climate-friendly website is at the same time the least spectacular: deliver less and lighter.

A page that arrives at the visitor as finished, static HTML does not have to be assembled from a database on every view. That saves processing time on the server, lowers the amount of data and makes the page faster. And because less technology runs in the background, there is also less that can fail or needs maintaining later. JavaScript shows how much ballast typically travels along: on the median mobile page, 251 KB of JavaScript goes unused, counted uncompressed (Web Almanac 2025) — code that is transferred and processed by the browser without being needed on that page. Why static delivery also wins on load time along the way is explored in the article on PageSpeed through static websites; how a static build fundamentally differs from a runtime engine in the browser is set out in the comparison of approaches at XICflow.

  1. Slim images down: modern formats, suitable dimensions and compression instead of full-size photos.
  2. Use media sparingly: start videos only on request and do not load them automatically in the background.
  3. Review external embeds: load maps, widgets and fonts only where they are genuinely needed.
  4. Deliver lean: static HTML instead of heavy scripts that recompute on every view.
  5. Use caching: keep already-loaded files in the browser so follow-up views cost hardly any data.

Scroll table sideways

AspectHeavy, dynamic pageLean, static page
Data load per viewMany megabytes from media and scriptsA few hundred kilobytes for the core content
Energy per viewServer rebuilds the page every timeFinished page is simply delivered
Load timeNoticeable wait, especially on mobilePage appears almost instantly
Server needsProcessing power and a database requiredSimple delivery is enough
Running costsHigher through compute load and upkeepLower through lean operation

Climate and speed pull the same way

The nice thing about climate-friendly websites is that you do not have to sacrifice anything for them. Almost every measure that saves data also shortens the load time and lowers running costs — smaller images, fewer scripts, static delivery. A lighter page is therefore not a compromise but a gain on several levels: faster for visitors, cheaper to run and more economical in consumption.
  • Scale images to the size at which they are shown instead of embedding photos at full resolution.
  • Use a modern, strongly compressing image format that keeps the file small.
  • Load images only when they enter the visible area rather than all of them at once.
  • Start videos only on click, not as an automatically playing background element.
  • Avoid decorative large images that weigh a lot and say little.

Worked example: image weight before and after

How much the switch achieves can be estimated without a lab. The calculation needs only the number of pixels and the bits a format needs per pixel on average.

Across the web, this median is 2.0 bits per pixel for JPEG, 1.4 bits for AVIF and 1.3 bits for WebP (Web Almanac 2024). That AVIF does not come out ahead here, even though the format can compress more strongly, has a reason: the median value for AVIF rose by 47 percent between 2022 and 2024, probably because today's encoders sacrifice less image quality at their default settings (Web Almanac 2024). The setting therefore matters too. The example: an image-heavy home page with a header image at 2,400 × 1,350 pixels and six project photos at 1,200 × 900 pixels each, all as JPEG and embedded the way they were uploaded. On a phone the images appear at most around 400 pixels wide; for screens with double pixel density, 800 pixels of width are enough.

Scroll table sideways

VariantImage weight of the home pageSaving against the starting point
Starting point: JPEG at upload size2,430 KBnot included
Format only: WebP, dimensions unchangedaround 1,580 KB35 % (own calculation)
Dimensions only: JPEG, sized for the phone810 KB67 % (own calculation)
Both: WebP at suitable dimensionsaround 527 KB78 % (own calculation)
Both: AVIF at suitable dimensions567 KB77 % (own calculation)

The calculation for the header image: 2,400 × 1,350 pixels are 3.24 million pixels, which at 2.0 bits makes 810 KB; at 800 × 450 pixels as WebP it is 0.36 million pixels at 1.3 bits, so around 59 KB (own calculation, 1 KB = 1,000 bytes). The right dimensions therefore achieve more than the modern format, and only both together take a good three quarters of the weight off the images. With the factor of around 148 grams of CO2 per gigabyte from the methodology section, the images' share per first view falls from around 0.36 to around 0.08 grams; at 60,000 views a year that is almost 17 kilograms less (own calculation). This is an upper estimate, because returning visitors load many images from cache. XICflow takes this work off your hands at upload: every photo is turned into variants in up to four widths from 400 to 1,600 pixels as AVIF and as WebP, and the browser uses srcset to pick the right file.

Why carbon calculators show such different figures

Run the same page through two carbon calculators and you often get two different results — and both may be calculated correctly. That is because no CO2 is measured at all.

Common calculators estimate: they take the amount of data transferred as a proxy for energy use (Web Almanac 2024) and convert it using assumptions about energy per gigabyte and CO2 per kilowatt-hour. The model many calculators work with (Web Almanac 2024) is the Sustainable Web Design Model. In its current version it assumes per gigabyte 0.055 kWh for data centres, 0.059 kWh for networks and 0.080 kWh for users' devices, plus manufacturing shares of 0.012, 0.013 and 0.081 kWh (Sustainable Web Design Model) — around 0.30 kWh per gigabyte in total. This energy is valued at the global average carbon intensity of electricity of 494 grams per kilowatt-hour (Sustainable Web Design Model). That gives around 148 grams of CO2 equivalents per transferred gigabyte (own calculation). On top come assumptions about returning visitors and the share of data they load from cache (Sustainable Web Design Model). Each of these settings shifts the result.

Scroll table sideways

AssumptionCO2 per gigabyteMobile home page of 2.6 MB
Earlier model version: 0.81 kWh per GB, 442 g per kWharound 358 garound 0.93 g
Current version: 0.30 kWh per GB, 494 g per kWharound 148 garound 0.39 g
Current version, operational electricity at the German grid mix (344 g per kWh)around 119 garound 0.31 g
As above, plus a data centre on renewable electricityaround 100 garound 0.26 g

The table shows why figures diverge so widely (own calculation, first view without cache). First, the model version: the earlier one calculated with 0.81 kWh per gigabyte (Web Almanac 2024); although the model's global carbon intensity rose from 442 to 494 grams per kilowatt-hour (Web Almanac 2024), the old result is still more than twice as high. Second, the system boundary: the slimmer OneByte model in the Green Web Foundation's CO2.js library covers only the data centre and the network (Green Web Foundation). Third, the grid mix: in Germany, according to an estimate by the German Environment Agency, an average of 344 grams of CO2 was emitted per kilowatt-hour consumed in 2025 (Umweltbundesamt). The model recommends using national values only for operational electricity and keeping the global average for manufacturing the devices (Sustainable Web Design Model). This is not strictly comparable: the agency's figure covers the CO2 emitted during generation, the model value the full upstream chain (Green Web Foundation). In practice: only compare results from the same tool with the same settings, note the date and model version, and record the page weight in kilobytes every time — the figure in the calculation that is measured rather than estimated.

Built lean once, economical for good

If a page is laid out lightly from the start — optimised images, few scripts, static delivery — it stays that way for years. Every megabyte saved takes effect on every single view, without anyone having to intervene afterwards. Sustainability here does not come from a one-off action but from a clean foundation that keeps working in the background.

Green electricity and server location

Alongside the data load a second question comes into play: where does the electricity that delivers the page come from? A data centre run on electricity from renewable sources lowers emissions — but only for part of the chain.

In the Sustainable Web Design Model, the hosting's green factor acts solely on the data centres' operational electricity (Sustainable Web Design Model). That is 0.055 of around 0.30 kWh per gigabyte; even fully green hosting therefore lowers the model value by at most around 18 percent (own calculation). Networks and end devices, which make up the bulk, remain untouched — and only a lighter page relieves them. Verifiably green hosting is not yet widespread anyway: of all websites the HTTP Archive measured in 2024, only 12 percent of desktop and 10 percent of mobile sites ran with a provider that the Green Web Foundation lists as green (Web Almanac 2024). The two levers complement each other, but in the model the data load weighs considerably more.

How much renewable electricity a data centre must use is governed in Germany by the Energy Efficiency Act, the Energieeffizienzgesetz (EnEfG), for data centres with a non-redundant rated electrical connection capacity of 300 kilowatts or more (EnEfG, Section 3 no. 24). Their operators have had to cover 50 percent of their electricity consumption on balance from renewable energy since January 1, 2024 (EnEfG, Section 11(5)), and 100 percent from January 1, 2027 (EnEfG, Section 11(5)) — in that quantity on paper, not every kilowatt-hour physically. Data centres that started operating before July 1, 2026 must achieve a power usage effectiveness of no more than 1.5 from July 1, 2027 (EnEfG, Section 11(1)), the ratio of the energy demand of the entire data centre to that of its information technology (EnEfG, Section 3 no. 15). Operators publish information about their data centre every year by March 31 (EnEfG, Section 13(1)) and have had to show their customers the energy consumption directly attributable to them per year since 2024 (EnEfG, Section 15). So ask your hosting provider which data centre the site runs in, whether it falls under these duties and which figures they can pass on. An answer with numbers is evidence; "green hosting" without numbers is not. Where hosting sits among a website's running costs is set out in the article on the website budget.

This article is based on data from: the HTTP Archive Web Almanac 2024 (Sustainability and Media chapters) and 2025 (Page Weight chapter), the International Energy Agency (IEA, Energy and AI report), the World Bank and ITU report on the emissions and energy footprint of the information and communication technology sector, the ITU Green Digital Action initiative, the Sustainable Web Design Model methodology, the Green Web Foundation documentation and the German Environment Agency (Umweltbundesamt). The worked examples are own calculations on this basis. The legal position is based on the German Act against Unfair Competition (UWG, Sections 2(2) and 3(3) and annex nos. 2a, 4a and 4c) and the German Energy Efficiency Act (EnEfG, Sections 3, 11, 13 and 15) as published at gesetze-im-internet.de, the Third Act amending the Act against Unfair Competition (Federal Law Gazette 2026 I No. 43) and Directive (EU) 2024/825 (recitals 9 and 12, Article 4), retrieved in November 2026.