Skip to main content
Skip to main content

State Registration (IE) Generator

Generate valid IE numbers according to each state's rules. QA testing.

Waiting for generation...

About the State Registration Generator

The State Registration (IE) Generator creates valid numbers for all 27 Brazilian states. By selecting a state, the tool applies its specific algorithm to ensure valid data generation.

This feature is essential for developers working with tax systems (like NF-e) to validate forms and routines in a safe environment.

Anatomy & Structure of Brazilian State Tax ID

State registration numbers vary between 8 and 14 digits across state revenue secretariats:

PositionFieldLengthMeaning & RuleExample
1 to N-1State Tax NumberVaries by statePrefix and sequential tax registration number issued by SEFAZ12345678
NCheck Digit(s)1 or 2 digitsIntegrity checksum digits computed under state rules9

State Tax Registration Algorithm (SINTEGRA / 27 Brazilian States)

Each state revenue authority applies its dedicated Modulo 10 or Modulo 11 checksum formula:

CD = (Sum % Modulo); state-specific remainder and exception rules
  1. 1. Identify the issuing state and its official length (e.g. SP 12, RJ 8, MG 13, RS 10, BA 8/9).
  2. 2. Apply posited weights defined by SINTEGRA regulations for that state.
  3. 3. Compute weighted sum across registration digits.
  4. 4. Calculate remainder modulo 10 or 11.
  5. 5. Derive check digit(s) matching SEFAZ rules.

Frequently Asked Questions (FAQ)