IAB GPP String Decoder (Global Privacy Platform)
Decodes a GPP string into its header and sections, with full detail for EU TCF v2, US Privacy and the US National section.
Use the tool
Why this tool exists
The Global Privacy Platform string carries several privacy signals in one value: an EU TCF string, a US Privacy string, or US state sections, joined by tildes. A small header lists which sections follow, using a Fibonacci-coded range.
This tool decodes the header, names every section id from the IAB list, and decodes the EU TCF v2, US Privacy and US National sections. The US National field order was built from the specification table and tested with a hand-made encoder, not with a real production string. State sections such as California are named but not decoded.
How to use it
- Copy the GPP string from your CMP or the __gpp cookie / API.
- Paste it into the box.
- Read the header and the list of sections.
- Check the decoded sections you care about.
Frequently asked questions
Which sections are decoded?
EU TCF v2 (id 2), US Privacy (id 6) and US National (id 7). Others are listed by name only.
What is the part after the dot?
A sub-section, for example the GPC flag in US sections.
How do I get the string?
From your consent tool, or by calling __gpp("getGPPData") in the browser console.