AnalyserMethodologyBarometerWidget and API
Free calculator · made in Switzerland

Calculate the carbon footprint of your website

Enter an address: in 20 seconds, CarbWeb measures the page weight, estimates the grams of CO₂ emitted on each visit, gives a rating from A+ to F and lists the files to fix to make it lighter.

The result is published on a public report page that you can share.

  • Free, no sign-up
  • Sustainable Web Design v4 model
  • Google PageSpeed Insights data
  • Hosting checked by the Green Web Foundation

A few real results

Home pages of Swiss cantonal websites, measured on mobile in the latest barometer.

See the ranking of all 26 cantons →
A
Schwyz
0.07 g CO₂ · 601 KB
D
Uri
0.26 g CO₂ · 1.75 MB
F
Jura
1.70 g CO₂ · 11.47 MB

What you get

A rating from A+ to F

The official Sustainable Web Design rating, the same as the leading calculators use, so you can compare your website with others.

Grams of CO₂ per visit

With the global average electricity mix, and also with Swiss electricity, which is far less carbon-intensive.

Quantified fixes

Images, JavaScript and CSS to optimise, file by file, with the saving in KB and the rating you would get after the fixes.

Whole-website analysis

Up to 15 pages picked from your sitemap, an average, the heaviest page and the fixes shared by several pages.

A shareable report

Every analysis has its own page, with the history of measurements: handy for tracking your progress or convincing a client.

A widget and a badge

Show your website’s rating in a corner of the screen or in the footer, updated with every analysis.

How it works

  1. Google loads the page

    PageSpeed Insights opens the address like a visitor on mobile or desktop and measures the weight of every file.

  2. CarbWeb checks the hosting

    The Green Web Foundation tells whether the host uses renewable electricity.

  3. Weight becomes CO₂

    The CO2.js library applies the Sustainable Web Design v4 model: about 0.15 g of CO₂ per megabyte transferred.

The carbon footprint of a website, explained

What is the carbon footprint of a website?

Displaying a web page uses electricity in three places: in the data centre that hosts it, on the network that carries it and on the device that displays it. Manufacturing those servers, cables and phones also has a CO₂ cost.

The carbon footprint of a website adds up these emissions and brings them down to a single visit. It is expressed in grams of CO₂ equivalent per page view. The median mobile web page weighs 2.3 MB and emits about 0.34 g per visit; a well-optimised page gets below 0.1 g.

How is it calculated?

Nobody measures the consumption of every server in the world directly: it is estimated from the volume of data transferred, the only figure that can be measured reliably for any website. That is the principle of the Sustainable Web Design model, used by most recognised calculators.

CarbWeb has Google load the page, adds up the weight of every file (HTML, images, scripts, fonts…), then applies this model. The coefficients and limits are published in full in the methodology.

Why make your website lighter?

A lighter website is not just better for the climate:

  • It loads faster, especially on mobile and on an average connection.
  • It ranks better on Google, which takes loading speed into account (Core Web Vitals).
  • It costs less in bandwidth and hosting.
  • It strengthens your CSR / ESG reporting with a measurable figure tracked over time.

How can you reduce your website’s carbon footprint?

The biggest gains almost always come from the same places:

  • Convert images to WebP or AVIF and serve them at their display size.
  • Load images and videos only when they become visible.
  • Remove unnecessary JavaScript and limit third-party scripts (analytics, chat, advertising).
  • Limit the number of fonts and weights loaded.
  • Play videos on demand rather than autoplaying them.
  • Choose a host powered by renewable electricity.

CarbWeb lists these fixes for your page, with the saving from each one.

What about Switzerland?

Swiss electricity emits about 37 g of CO₂ per kWh, compared with nearly 500 g on the global average. A website hosted and viewed in Switzerland therefore emits much less: CarbWeb shows this figure alongside the standard result.

To put Swiss websites in context, CarbWeb publishes a barometer of the websites of all 26 cantons, measured with the same method.

Frequently asked questions

How do you calculate the carbon footprint of a website?

Enter the page address in CarbWeb. Google PageSpeed Insights loads it and measures the weight of all its resources, the Green Web Foundation checks the hosting, then the Sustainable Web Design v4 model converts the data transferred into CO₂: about 0.15 g per megabyte per visit.

How much CO₂ does an average web page emit?

The median mobile page weighs about 2.3 MB (HTTP Archive, 2024), or about 0.34 g of CO₂ per visit under the Sustainable Web Design v4 model. A light 500 KB page emits about 0.07 g. At 10,000 visits a month, the median page accounts for about 41 kg of CO₂ a year.

What does the A+ to F rating mean?

It is the official Sustainable Web Design rating, based on the grams of CO₂ per visit: A+ up to 0.040 g, A up to 0.079 g, B up to 0.145 g, C up to 0.209 g, D up to 0.278 g, E up to 0.359 g, F above that. The median web page gets an E.

How can I reduce my website’s carbon footprint?

The most effective step is to make pages lighter: images in WebP or AVIF served at the right size, lazy-loaded images, less JavaScript and fewer third-party scripts, a limited number of fonts, videos that only play on demand. A host powered by renewable electricity also cuts the data centre share.

Can I analyse a whole website, not just one page?

Yes. Choose “The whole site (up to 15 pages)”: CarbWeb picks up to 15 pages from your sitemap, measures them in a few minutes and calculates an average, with the heaviest page and the fixes that recur across several pages.

How is it different from Website Carbon or Ecograder?

The calculation relies on the same model (Sustainable Web Design v4, via CO2.js), so the ratings are comparable. CarbWeb adds quantified fixes file by file, the rating after fixes, the figure with Swiss electricity, whole-website analysis and a report in French, German or English.

Is it free?

Yes, CarbWeb is completely free with no sign-up. You can analyse any public page, on mobile or desktop, or a whole website. The code is published under the MIT licence.

The calculation and its limits are explained in detail in the methodology.

Is your website too heavy?

CarbWeb is developed by Helveit, a web agency in Geneva. We can apply the fixes or build you a light, fast website that ranks well.

Talk to Helveit