Carbon.txt syntax

This page specifies the current v0.3 syntax for carbon.txt files.
Viewing syntax for

Carbon.txt v0.3

Latest versionLanguageValid fromValid to
trueTOML2025-11-24-

Syntax

PropertyParentTypeRequiredDescription
versionstringtruecarbon.txt syntax version, e.g. "0.3", required from version 0.3 onwards.
version = "0.3"
PropertyParentTypeRequiredDescription
last_updatedstringfalseThe date this file was last updated, as a string in ISO8601 format, e.g "2025-11-26".
last_updated = "2025-11-26"
PropertyParentTypeRequiredDescription
org[table]true
↳ disclosuresorg[[array]]trueLinks to documents that show your organisations sustainability data disclosures.
   ↳ doc_typedisclosuresstringtrueA slugified string representing the type of document you are linking to. Accepted values are: "web-page", "annual-report", "sustainability-page", "certificate", "csrd-report", "other"
   ↳ urldisclosuresurltrueThe URL of the document you are linking to beginning with "http://" or "https://.
   ↳ valid_untildisclosuredatefalseThe last date that this disclosure is valid for, if it is time-limited (for example, an annual report or renewable energy certificate), as a string in ISO8601 format, e.g "2025-11-26".
   ↳ domaindisclosuresstringfalseThe domain for which the disclosure applies, if this carbon.txt is to be used across multiple domains. This can include any subdomains (e.g. "www."), but should not include the protocol (i.e. "http://" or "https://") or any content paths (e.g "/news/", "/about", "news-update-2025" etc.).
[org]
disclosures = [
	{ doc_type = "web-page", url = "https://mycompany.com/sustainability", domain = "mycompany.com" },
	{ doc_type = "annual-report", url = "https://mycompany.com/carbon-emissions-2025.pdf", valid_until = "2025-12-31" }
]
PropertyParentTypeRequiredDescription
upstream[table]false
↳ servicesupstream[[array]]falseInformation linking your organisation to upstream providers you use.
   ↳ domainservicesstringfalseThe domain of the organisation providing the upstream service. This can include any subdomains (e.g. "www."), but should not include the protocol (i.e. "http://" or "https://") or any content paths (e.g "/news/", "/about", "news-update-2025" etc.).
   ↳ service_typeservicesstring or ["array of strings"]falseA slug representing the service provided by the upstream provider.
[upstream]
services = [
    { domain = "cloud.google.com", service_type = "shared-hosting" },
    { domain = "aws.amazon.com", service_type = "cdn" }
]

Code sample

version="0.3"
last_updated="2025-11-26"

[org]
disclosures = [
    { doc_type = "web-page", url = "https://mycompany.com/sustainability", domain = "mycompany.com" },
    { doc_type = "annual-report", url = "https://mycompany.com/carbon-emissions-2025.pdf", valid_until = "2025-12-31" }
]

[upstream]
services = [
	{ domain = "cloud.google.com", service_type = "shared-hosting" },
	{ domain = "aws.amazon.com" }
]