How to build a sustainable website: 10 ways to reduce CO2, improve performance, and strengthen UX

Digital Sustainability Performance Design carbon internet

A sustainable website reduces unnecessary data transfer, uses better infrastructure, and improves loading behavior, user experience, SEO signals, and evidence quality.

A sustainable website is not a website with a green logo and a vague sustainability claim. It is a website that treats resources deliberately: less unnecessary data, fewer unnecessary scripts, better infrastructure, clearer user journeys, and transparent measurement.

This is not only an environmental topic. A lighter website often loads faster, works better on mobile devices, creates less friction, is easier to maintain, and sends better signals to search engines. Sustainable web design connects environmental responsibility with technical quality and better user experience.

The language matters. In the EU context, a website should not be marketed as "carbon neutral." The new EU consumer-protection rules against greenwashing will apply from 27 September 2026 and specifically prohibit claims based on greenhouse-gas offsetting that state or imply that a product or service has a neutral, reduced, or positive climate or greenhouse-gas impact. In Germany, courts already apply strict clarity requirements to this kind of environmental advertising. The better starting point is therefore: avoid and reduce, measure precisely, document progress, and do not turn that work into a neutrality claim.

What Is A Sustainable Website?

A sustainable website is planned, built, and operated so it achieves its purpose with as little digital waste as practical. It transfers only necessary data, serves media in suitable sizes, avoids unnecessary third parties, uses efficient technology, and ideally runs on verified greener infrastructure.

That includes several layers:

  • Design: clear structure, no decorative media without value, good readability.
  • Technology: lean code, effective caching, modern image formats, fewer scripts.
  • Infrastructure: hosting, CDN, server location, electricity mix, and green-hosting evidence.
  • Operations: recurring checks, clear ownership, and transparent documentation.
  • User experience: fast loading, stable layout, responsive interaction, and accessibility-aware design.

Sustainability does not come from one isolated action. Green hosting helps, but it does not replace an efficient website. A compressed image helps, but it does not replace a proper media strategy. A CO2 number helps, but it does not replace ongoing improvement.

Why Sustainable Websites Matter

Every pageview triggers data transfer and computation: in the data center, across the network, through the CDN, inside the browser, and on the user's device. For one pageview, the estimated carbon impact may look small. Across heavy landing pages, videos, tracking scripts, external tools, and real traffic, it becomes an operational issue.

The value of sustainable websites goes beyond CO2.

For users, a leaner website usually means faster loading, less data use, and better usability on mobile devices. For marketing teams, it means lower abandonment risk and stronger campaign pages. For SEO teams, it means better technical foundations because many sustainability measures also support performance, crawling, and Core Web Vitals. For sustainability teams, it means digital channels are no longer excluded from credible sustainability communication.

A sustainable website is therefore visible proof of quality. Organizations that talk about responsibility, efficiency, or climate action should not present themselves through an unnecessarily heavy, slow, and poorly documented website.

Why "Carbon Neutral Website" Is Not A Robust Claim

The phrase "carbon neutral website" is legally and technically risky as an advertising claim. A website does not only create emissions on the server you control. Networks, CDNs, user devices, third-party services, embedded media, and user contexts all matter. Many of these values can only be estimated.

Directive (EU) 2024/825 adds new practices to the list of commercial practices that are always considered unfair. It prohibits claims based on greenhouse-gas offsetting that state that a product has a neutral, reduced, or positive environmental impact in terms of greenhouse-gas emissions. The recitals name examples such as "climate neutral", "CO2 neutral certified", "climate compensated", and "reduced climate impact". This matters for websites because a digital service does not become neutral merely because external carbon credits were purchased.

That does not mean companies must stay silent about reduction work, better infrastructure, or climate investments. It means they should not create the impression that using the website has no climate impact or that the impact has been neutralised. In Germany, the Federal Court of Justice held in 2024 that ambiguous environmental terms such as "klimaneutral" usually need to be explained in the advertisement itself; later explanation outside the advertisement is not enough in the ordinary case. The court also emphasised that reduction and offsetting are not equivalent.

For this article, that means "carbon neutral website" is not the promise. More robust statements are "lighter website", "more resource-efficient", "hosted on verified green infrastructure", "page weight reduced", or "website emissions estimated with a transparent methodology".

10 Ways To Make Websites More Sustainable

1. Start By Measuring Page Weight

Page weight is not the same as CO2, but it is a strong operational starting point. If a page transfers many megabytes, there is almost always room for improvement. Start with important templates: homepage, landing pages, product pages, articles, checkout, contact, and campaign pages.

The total number is not enough. The asset mix matters: how much comes from images, JavaScript, CSS, fonts, videos, HTML, and third parties? A clear breakdown shows where work will have the most impact.

2. Optimize Images Consistently

Images are often the biggest visible lever. Common problems include oversized dimensions, old formats, missing responsive variants, uncompressed files, and images that load even though they are not visible.

Use modern formats such as WebP or AVIF, serve suitable sizes for mobile and desktop devices, compress without visible quality loss, and use lazy loading for non-critical images. Hero images, sliders, and large background images deserve special attention because they often load early and shape perceived performance.

3. Use Video Only When It Helps

Video can explain, sell, and build trust. It can also become the largest emissions driver on a page, especially when it loads automatically or is used as decorative background media.

Avoid autoplay background video when a static image would do the same job. Load video after interaction, use poster images, keep clips short, encode efficiently, and provide mobile variants. If a video does not support a decision, it should not be transferred automatically.

4. Reduce JavaScript And Third Parties

JavaScript does not only add transfer weight. It also consumes CPU time on devices and can delay interaction. Common trouble spots are old tag-manager setups, A/B testing scripts, chat widgets, heatmaps, social embeds, ad networks, and personalization tools.

Create an inventory: which external domains load, what does each script do, who owns it, and does it need to run on every page? Remove old tags, load scripts only where they are needed, and prefer privacy-friendly and data-light alternatives.

5. Include Core Web Vitals In The Work

Sustainable websites overlap strongly with performance work. Relevant Core Web Vitals signals include Largest Contentful Paint (LCP), Interaction to Next Paint (INP), and Cumulative Layout Shift (CLS).

LCP often suffers from heavy hero images, slow server response, or blocking resources. INP often suffers from too much JavaScript and expensive interactions. CLS is caused by unstable layouts, late-loading media, or missing space reservations. Reducing these causes often improves both performance signals and resource efficiency.

6. Keep Fonts And CSS Lean

Web fonts can look small, but they can add multiple requests and extra data. Check how many font families, weights, and styles are truly needed. Use WOFF2, subsetting, and a deliberate font-loading strategy. In some cases, system fonts are the better choice.

CSS should not grow unchecked either. Large frameworks, unused styles, blocking CSS, and complex animations increase maintenance work and rendering cost. Keep components simple, remove unused rules, and prioritize layout stability.

7. Configure Caching, Compression, And CDN Behavior

A sustainable website should not transfer the same assets again on every visit. Browser caching, server caching, compression, and a well-configured CDN can reduce transfer, server load, and loading time.

The configuration matters. Static assets should usually be cacheable for longer periods, versioned files can be cached more aggressively, and HTML needs more careful rules. A CDN can help deliver content closer to users, but privacy, international transfer, and provider choice still need deliberate review.

8. Verify Green Hosting

Green hosting is an important infrastructure lever. It is not enough for a provider to make a broad sustainability promise. Stronger evidence comes from verifiable green-hosting data or clear information about electricity sourcing and data-center operations.

Still, green hosting does not automatically make a website sustainable. A very heavy page with excessive scripts remains inefficient. The stronger combination is verifiably better infrastructure plus lean pages.

9. Focus Content And User Journeys

Sustainable web design also means less distraction. Every extra section, carousel, pop-up, embed, and widget should have a clear job. If content does not help users, it often creates more data, more complexity, and more maintenance.

A good sustainable website is not empty or boring. It is precise. It shows what users need, helps them decide faster, and avoids decorative weight.

10. Measure And Report Repeatedly

A one-off audit is only a snapshot. Websites change through campaigns, landing pages, images, plugin updates, tracking tags, and external tools. Web sustainability therefore needs an operating rhythm.

Define a baseline for important page types, review monthly or after major releases, document the main drivers, and record which improvements shipped. For stakeholders, a clear trend is often more useful than a falsely precise single number.

Measurement, Limits, And Reporting

Website CO2 estimates are useful, but they are not absolute truth. Different tools can produce different results because they use different system boundaries, assumptions, and data sources. That is not a reason to avoid measurement. It is a reason to explain methodology clearly.

Good reporting should name at least the URL, date, method, system boundaries, main drivers, actions shipped, and trend over time. It should avoid broad climate claims. In particular, a report should not claim that a website is "carbon neutral" when that statement relies on offsetting or when the scope is not explained immediately, clearly, and verifiably.

For a deeper measurement view, see Measuring website carbon footprint, which explains page weight, emissions estimates, green hosting, and asset drivers. The guide Web Carbon Measurement + Reporting adds a conservative workflow for baseline, reduction, verification, and reporting.

Practical Checklist

  • Check homepage and key landing pages for page weight.
  • Identify the largest images, videos, scripts, and fonts.
  • Review hero media critically.
  • Serve images in modern formats and suitable sizes.
  • Avoid autoplay video.
  • Inventory and reduce third-party scripts.
  • Check Core Web Vitals with LCP, INP, and CLS.
  • Review browser caching, server caching, compression, and CDN configuration.
  • Verify green-hosting status.
  • Repeat carbon and performance checks regularly.

Conclusion

A sustainable website is not created by one badge or one CO2 number. It is created through better decisions in design, technology, infrastructure, and ongoing operations.

The most practical path is straightforward: find heavy pages, reduce the largest drivers, review infrastructure, document progress, and communicate carefully. That makes digital sustainability concrete while improving performance, user experience, search quality, and trust.

Frequently Asked Questions

What is a sustainable website?

A sustainable website achieves its purpose with less unnecessary data transfer, efficient technology, better infrastructure, and clear user journeys. That includes optimized media, less unnecessary JavaScript, green hosting, caching, good performance, and recurring measurement.

Can a website be advertised as carbon neutral?

As an advertising claim, "carbon neutral website" is not robust in the EU context and will be especially risky once Directive (EU) 2024/825 applies, if the claim relies on CO2 offsetting. Prefer concrete, verifiable statements: page weight reduced, green hosting verified, third parties reduced, or emissions estimated with transparent methodology.

Which measures usually have the biggest effect?

Images, videos, JavaScript, and third parties are often the biggest levers. Fonts, CSS, caching, CDN configuration, and hosting follow. The priority should always be based on real measurements for the page in question.

Why does page weight matter?

Page weight shows how much data a page transfers. It is not a complete CO2 value, but it is measurable, actionable, and often closely connected to performance problems.

How often should a website be checked?

Important pages should be checked regularly, for example monthly or after major releases, campaigns, media updates, plugin changes, and new tracking tags.

Related Links