TCF Consent String Format, Field by Field
What is inside a TCF v2 consent string: its three segments, every core field with bit sizes, and the rules that make a string invalid.
A TCF v2 consent string, or TC string, is a set of bit fields encoded as URL-safe Base64. It has up to three segments joined by dots: the Core segment, then Disclosed Vendors, then an optional Publisher TC segment.
The three segments
| Segment | Type ID | Status |
|---|---|---|
| Core | 0 | Always first |
| Disclosed Vendors | 1 | Mandatory since TCF 2.3 (April 2025) |
| Publisher TC | 3 | Optional |
Segments after Core can appear in any order, because each starts with its type ID. Type 2 was the out-of-band Allowed Vendors segment, which is no longer in the spec.
Core segment fields, in order
| Field | Bits |
|---|---|
Version | 6 |
Created | 36 |
LastUpdated | 36 |
CmpId | 12 |
CmpVersion | 12 |
ConsentScreen | 6 |
ConsentLanguage | 12 |
VendorListVersion | 12 |
TcfPolicyVersion | 6 |
IsServiceSpecific | 1 |
UseNonStandardTexts | 1 |
SpecialFeatureOptIns | 12 |
PurposesConsent | 24 |
PurposesLITransparency | 24 |
PurposeOneTreatment | 1 |
PublisherCC | 12 |
Vendor consents | variable |
Vendor legitimate interests | variable |
Publisher restrictions | variable |
Vendor lists start with a 16-bit MaxVendorId and a flag, then use either one bit per vendor or a list of ranges. Created and LastUpdated hold the same day-level value.
Rules that invalidate a string
IsServiceSpecificmust always be 1, and a vendor seeing 0 treats the string as invalid. Global scope was deprecated in September 2021.- A string with a policy version below 4 has been invalid since 30 September 2023. TCF v2.2 raised it to 4.
- Under TCF v2.2, legitimate interest bits for purposes 3 to 6 must be 0.
How old can a string be?
The TCF FAQ cites regulator guidance that consent should be renewed as appropriate and at least every 13 months. Treat that as guidance to check with your own compliance team.
Try it
Paste a string into the TCF Consent Decoder to see every field with vendor names. If it came inside a GPP string, the GPP guide explains how they fit together.
Try it
Sources
Last checked 2026-11-07.