Skip to content

Spanish company tax ID (CIF / NIF of entities): anonymize it before ChatGPT or sharing

The Spanish company tax ID (CIF / NIF of entities) (Spain) is the tax number of companies and other legal entities in Spain. It turns up in documents people want to share or give to an AI assistant, and it should never go out as it is.

A letter for the entity type (A for an S.A., B for an S.L.…), 7 digits and a control character (B12345674).

The company. For a sole trader or a small firm, that is a person.

Invoices, contracts, quotes, public tenders.

Piixie has a dedicated rule for it, in every model including Lite: it matches the format and checks the control digits, so random numbers of the same length aren’t flagged and real ones aren’t missed. The local LLM also reads the context around it.

With Synthesize, a fake of the same kind with correct check digits, consistent everywhere the same number appears. With Redact, a black box or [REDACTED]; with Replace, a placeholder such as [ID_1].

All of it happens on your computer: the document is never uploaded to find the numbers. See why a local LLM.