DevTools Logo

Brazil Inscrição Estadual Generator

Brazil Inscrição Estadual Generator

Generate Brazilian state tax registration numbers (Inscrição Estadual, ICMS) for all 26 states and the Federal District with each state's check digits — synthetic test data only

Runs in your browser

For Development & Testing Purposes Only - Synthetic Mock Data

Settings

1 value

Generates one value with a valid checksum. Press ⌘/Ctrl+Enter for a fresh one.

Generated value

No value yet

Set options, then press Generate.

Generated values are valid in shape but randomized (Test Data).

Legal Disclaimer: Generated data is for software testing and validation purposes only (e.g. verifying input masks, form validation, or database seeding). It is randomly generated and not taken from any real record, but a random value can coincidentally match a real, issued number, so never use it in real applications, payments, KYC or official forms. Using it to impersonate real people or for any fraudulent activity is illegal. DevTools accepts no liability for how generated data is used.

    Examples

    São Paulo IE

    Input
    SP · São Paulo · Generate
    Output
    692015742119

    12 digits with two check digits, at positions 9 and 12; the value passes the São Paulo rule set.

    Minas Gerais IE

    Input
    MG · Minas Gerais · Validate
    Output
    Valid — 0621828520097

    13 digits: the municipality and sequence body, the first check digit from the alternating 1-2 sum, and a second check digit.

    Wrong second check digit

    Input
    692015742118
    Output
    Invalid — check digit mismatch from position 12: found 8, São Paulo requires 9

    Length and the first check digit still hold, so the error points at the final digit only.

    About this tool

    The Brazil Inscrição Estadual Generator produces Inscrição Estadual (IE) numbers — the state taxpayer registration a company needs to charge ICMS, the state VAT on goods and some services. Each of the 26 states and the Federal District issues its own registration through its state tax department (SEFAZ), and there is no national format: every state defines its own length, required prefix and check-digit arithmetic. The tool follows the rules SINTEGRA publishes for its Conferência de Inscrições Estaduais, so a value generated for one state is checked with that state's own rule set.

    Choose one of the 27 state options, labelled UF · name (layout), and the tool generates a single value in that state's current layout: 12 digits for São Paulo, 13 for Minas Gerais with two check digits, 11 for Mato Grosso, 10 for Paraná and Rio Grande do Sul, 8 for Rio de Janeiro, and 9 for most other states. Some layouts carry quirks worth knowing. Bahia accepts 8 or 9 digits and switches between mod 10 and mod 11 based on the first digit of an 8-digit value or the second digit of a 9-digit one. Goiás lists prefixes 10, 11 and 15, and numbers starting with 20 were introduced later for new registrations, so the validator accepts all four while the generator emits 10 and 11. Pernambuco validates the current 9-digit e-Fisco layout and the older 14-digit CACEPE form, and Tocantins accepts its older 11-digit form next to the 9-digit one.

    Generated values were cross-checked against an independent open-source implementation. They are synthetic test data for QA and development, never for real applications, KYC checks, tax filings or identity documents; a random value can coincidentally match a real, issued number, and DevTools accepts no liability for how generated data is used. Everything runs locally in your browser.

    What this tool does not do

    • Validation checks the length, the required prefix and the state's check digits; it cannot confirm that the registration exists or is active.
    • São Paulo rural producer numbers (P plus 12 digits) validate but are never generated.
    • Companies exempt from ICMS may have no IE at all — forms often show the word ISENTO — and the tool does not generate that word.
    • All arithmetic is local; nothing is sent to SINTEGRA or to any state tax department.

    How to use this tool

    1. Pick the state

      Choose one of the 27 options, each labelled UF · name (layout), to load that state's length, prefix and check-digit rule.

    2. Generate one value

      Click Generate to create a single Inscrição Estadual in the selected state's current layout, with every check digit already applied.

    3. Copy or validate

      Copy the value or download it as a .txt file, or switch to Validate to check a pasted number against the same state.

    Use cases

    State-specific signup forms

    Fill the IE field with a value that satisfies the selected state's length, prefix and check digits before testing registration flows.

    Multi-state checkout tests

    Exercise validators that branch per UF, where São Paulo expects 12 digits and Minas Gerais expects 13 with two checks.

    Legacy layout handling

    Check that a parser still accepts the older 14-digit Pernambuco CACEPE or 11-digit Tocantins form when a pasted value uses it.

    Inscrição Estadual layouts by state

    UFState
    ACAcre
    ALAlagoas
    APAmapá
    AMAmazonas
    BABahia
    CECeará
    DFDistrito Federal
    ESEspírito Santo
    GOGoiás
    MAMaranhão
    MTMato Grosso
    MSMato Grosso do Sul
    MGMinas Gerais
    PAPará
    PBParaíba
    PRParaná
    PEPernambuco
    PIPiauí
    RJRio de Janeiro
    RNRio Grande do Norte
    RSRio Grande do Sul
    RORondônia
    RRRoraima
    SCSanta Catarina
    SPSão Paulo
    SESergipe
    TOTocantins

    Rows marked with a prefix also enforce it on validation. São Paulo rural producer numbers (P + 12 digits) validate but are never generated.

    Common mistakes

    Mistake:Treating Inscrição Estadual as one national format

    Fix:There are 27 rule sets. Validate with the state that issued the number, not a generic length check.

    Mistake:Assuming a checksum-valid IE is an active registration

    Fix:The check digit proves the number is well formed; existence and status are confirmed in SINTEGRA or with the state SEFAZ.

    Mistake:Generating Goiás numbers with a 20 prefix

    Fix:The 20 range was introduced later for new registrations, so the validator accepts it while the generator emits 10 and 11 only.

    Frequently asked questions

    Are these real Inscrições Estaduais, and can I use them in production?

    No. Every value is synthetic test data for QA and development, never for real applications, KYC checks, tax filings or identity documents; a random value can coincidentally match a real, issued number, and DevTools accepts no liability for how generated data is used.

    Why does each Brazilian state have a different Inscrição Estadual format?

    The IE is a state registration for ICMS, not a federal identifier, so each of the 26 states and the Federal District defines its own length, prefix and check-digit rule. The tool follows the layouts SINTEGRA publishes for its Conferência de Inscrições Estaduais, which is why São Paulo numbers have 12 digits and Minas Gerais numbers have 13.

    What exactly does validation check?

    For the state you selected it checks the digit count, the required prefix and the state's check digit or digits, then names the position where a pasted value diverges. It does not prove that the registration exists or is active — that requires a SINTEGRA query or a check with the state SEFAZ.

    Can the tool generate the word ISENTO?

    No. A company exempt from ICMS may have no Inscrição Estadual at all, and forms in that case usually show ISENTO instead of a number. This tool generates numeric registrations only, so ISENTO has to be handled by your own form logic.

    Which valid layouts does the generator deliberately not emit?

    São Paulo rural producer numbers (P plus 12 digits, first digit after P always 0) validate but are not generated, Goiás numbers starting with 20 validate but the generator uses 10 and 11, and the older 14-digit Pernambuco CACEPE and 11-digit Tocantins forms are accepted on input only. Validation covers pasted values; generation stays on the current layout.

    References & standards