Tracking CO2 Emissions Right From the Coding Stage: Carbonara Takes an Early Approach to Green Coding

Not all code is created equal. The Carbonara tool helps developers code sustainably by estimating how much CO2 their programmes will generate.

Author Benjamin Lucks:

Translation Kezia Rice, 02.16.26

Code editors make life easier for programmers. They point out potential errors and visually display written code. However, most applications lack information on how efficient and sustainable the written lines, the finished programme or the website ultimately are.

The Carbonara tool from Climate+Tech can be integrated as a plug-in in VSCode-based editors such as VSCode and Cursor. Or, coders can run the programme in the background via the command line. Carbonara generates a forecast of the approximate carbon footprint of the application during coding. According to Carbonara founder Christian Woerle, the idea behind this is:

“Provide information as early as possible [for sustainable optimisation], before further costs are incurred or nothing can be changed.”

How does the tool work?

Carbonara was launched in June 2025. Interested parties can already download the tool free of charge, including recommendations for code optimisation. Anyone who would like to use the analysis tool can access the code via GitHub or install the plug-in in the VSCode Marketplace. However, project manager Christian Woerle points out that “help in solving any problems is expressly welcome”. This can be done via the Carbonara homepage, where users can provide feedback via a simple contact form.

Once installed, Carbonara provides an assessment of the expected digital carbon footprint of an application or website, based on its code. Daniela Grau from Carbonara explains to RESET how this works:

“Sustainable code can avoid certain patterns that are less efficient than others. These can be so-called ‘performance issues’, i.e. changes that make the code faster. Or, other aspects, such as centralising computing power at a location that has a green electricity mix.”

‘Grid-aware websites’ adapt to save energy

The Green Web Foundation has developed an interesting concept for websites: ‘Grid-aware websites’ retrieve information from a database about the type of electricity used to power them.

Depending on how many fossil fuels are included in the mix, the website is then displayed in  smaller, which is more energy-efficient.

Interested? Read our interview with Fershad Irani from the Green Web Foundation.

There is a very simple reason why Carbonara considers these aspects during coding. “If you want to know exactly how much energy code consumes under which conditions, the finished application ideally needs to be analysed in operation using special libraries,” said Grau. At this point, however, “five or six-figure sums” have often already been spent. This means that the code can only be optimised and not completely rewritten. Because of this, Carbonara allows companies to integrate green coding practices right from the start.

Carbonara tests according to recognised standards

For its analysis, Carbonara uses, among other things, a database of “green software patterns” from the Green Software Foundation. Since 2021, the foundation has been providing programmers with design patterns for lines of code already tested for sustainability. Or, as the Green Web Foundation puts it: “Your software’s emissions will be reduced if you use our design patterns.”

However, Carbonara’s review can also be applied to existing applications and websites. According to Daniela Grau, “Carbonara integrates tools at various levels.”

This would allow external websites to check “what amounts of data are being transferred and on which network they are running,” which is the top layer of optimisation. “Code patterns or server configurations can be improved in depth.”

When asked how much emissions could be saved as a result, Christian Woerle replies: “20-30 percent, depending on the region and estimate, so a very significant amount. The nice thing is that in IT, most of these savings can be achieved without anyone having to sacrifice anything, simply through efficiency gains and relocation.”

The design of modern code no longer only affects the device that displays the website or runs an application. Use cases such as streaming service apps show that comparatively lean programmes make massive use of data centres‘ databases—consuming a great deal of energy and water in the process.

However, the fact that applications outsource computing operations or information to cloud servers makes it all the more important to optimise software for sustainability. The Sustainable Games Alliance explained to us that small changes—such as reducing the resolution of an animation in the menu—can have a huge impact on reducing the computing load on servers.

Does sustainable code have disadvantages?

There are generally no disadvantages for users. “Uncompressed images are actually an area where the average website can massively reduce data transfer and thus save CO2 emissions. As a rule, the compression should not be noticeable to the human eye. […] Where compromises make sense is with complex ‘gimmicks’ or animations in the front end,” explains Daniela Grau.

Green digital futures

How can we ensure a green digital future?

Growing e-waste, carbon emissions from AI, data centre water usage—is rampant digitalisation compatible with a healthy planet? Our latest project explores how digital tools and services can be developed with sustainability in mind.

However, sustainable programming could become even less of a priority in the coming years. So-called ‘vibe coding’ is becoming increasingly popular with AI tools such as Claude Code and Google’s Gemini CLI. This means that not only developers who can at least understand the code they create, but anyone with internet access has the opportunity to create websites and programmes. However, the code designs created by language models are not sustainable. “In mid-2025, a study classified [AI]-generated code as significantly more CO2-intensive,” says Carbonara. However, the Climate+Tech team believes its database can help integrate green coding practices in AI-generated code in the future.

© RESET/Benjamin Lucks
CO2 Trackers for Software, Websites and AI: A Guide for Businesses and Freelancers

Want to reduce your carbon footprint when using software, browsing websites or in your day-to-day work? Our guide shares the CO2 trackers that you can use to track apps, websites and AI.

©
Why Do Our Clouds Look So Gloomy, and How Can We Make the Switch to a Green Cloud?

Why does living and working in the cloud generate high CO2 emissions? And how exactly do we get to the green cloud? We provide an overview and some tips.

©
Energy-Efficient Software and Web-Friendly Websites: How Green Coding Works

If the internet were a country in its own right, it would rank sixth in the global CO₂ emissions rankings. Under the banner of ‘Green Coding’, we’ve put together some ways you use the internet more resource efficiently.

© RESET / Benjamin Lucks
What Exactly Is Green Coding, and Does GenAI Make It Easier? An Interview With Max Westing From the “Green Coding” Project

Energy-efficient websites, apps and software reduce our digital carbon footprint. Max Westing from the ‘Green Coding’ project tells us what makes green coding different.

Browser Diet: JustTheBrowser Removes AI and Shopping Features from Chrome, Firefox, and Edge

The "JustTheBrowser" tool lets you strip Google Chrome, Mozilla Firefox and Microsoft Edge of unnecessary bloat. RESET shows you how to get rid of AI features, shopping integrations and more.

© RESET.org
Eco:Digit Shows How the Environmental Impact of Software Can Be Measured

The ECO:DIGIT project—led by the German Informatics Society (GI) and its partners—highlights just how complex a life cycle assessment for software has become.

Miniaturisiertes photonisches Modul
© Fraunhofer HHI
Data Centres, Telecommunications Networks, AI Infrastructure: Photonics Offers Clear Advantages for Energy Efficiency

Photonics could drive the green digital transformation, says David de Felipe Mesquida from Fraunhofer HHI in his interview with RESET.

Interview: How to Break Free From Google’s Browser Monopoly

Reading on Google Chrome? This interview with Andy Davies from Wholegrain Digital might make you change your browser. Here's how sustainable alternatives can fight Google's monopoly.