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:
| Position | Field | Length | Meaning & Rule | Example |
|---|---|---|---|---|
| 1 to N-1 | State Tax Number | Varies by state | Prefix and sequential tax registration number issued by SEFAZ | 12345678 |
| N | Check Digit(s) | 1 or 2 digits | Integrity checksum digits computed under state rules | 9 |
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. Identify the issuing state and its official length (e.g. SP 12, RJ 8, MG 13, RS 10, BA 8/9).
- 2. Apply posited weights defined by SINTEGRA regulations for that state.
- 3. Compute weighted sum across registration digits.
- 4. Calculate remainder modulo 10 or 11.
- 5. Derive check digit(s) matching SEFAZ rules.