Brazilian Voter ID Generator
Generate mathematically valid Brazilian voter ID (Título de Eleitor) numbers for software testing. Follows the TSE official algorithm. For test use only.
What is a Voter ID generator used for?
The Brazilian Voter ID (Título de Eleitor) runs to 12 digits. Eight make up the sequential number, two point to the state via the TSE code, and the final two are check digits. For São Paulo and Minas Gerais the algorithm changes a bit.
It comes in handy when you need to test voter registration systems, voting forms and TSE APIs in a development environment.
For testing and development use only.
Anatomy of the Brazilian voter registration number
The Título de Eleitor is the political identity document every Brazilian citizen receives when registering with the electoral authority. It is issued by the Tribunal Superior Eleitoral (TSE) through the regional electoral courts (TREs), tracks where the voter is enrolled and which polling section they belong to, and has been the legal foundation of voting in Brazil since the Código Eleitoral (Lei 4.737/1965). Modern enrolment is biometric: a fingerprint scan and a photograph are recorded so the elector can be identified even without the physical card. Voting is compulsory for citizens aged 18 to 70 and optional for those between 16 and 17 or above 70.
The number has twelve digits arranged in three blocks. The first eight digits are the elector's sequential identifier inside their state. The next two digits encode the federative unit (UF) where the title was originally issued — they do not change if the voter later transfers their domicile. The last two digits are check digits computed with the modulo-11 algorithm; together they protect the rest of the number from typos in voting-machine and self-service input.
UF codes used in the 9th and 10th positions
The two-digit UF block follows the TSE's own table, not the IBGE codes used elsewhere: SP=01, MG=02, RJ=03, RS=04, BA=05, PR=06, CE=07, PE=08, SC=09, GO=10, MA=11, PB=12, PA=13, ES=14, PI=15, RN=16, AL=17, MT=18, MS=19, DF=20, SE=21, AM=22, RO=23, AC=24, AP=25, RR=26, TO=27, and 28 for citizens registered abroad (the so-called zona eleitoral do exterior, with consular polling sections).
Check-digit math (modulo 11)
First DV. Take the eight identifying digits and multiply each by the weights 2, 3, 4, 5, 6, 7, 8, 9 in order. Sum the products and take the remainder modulo 11. If the remainder is 10, the DV is 0. There is a famous exception: if the remainder is 0 and the UF is São Paulo (01) or Minas Gerais (02), the DV is forced to 1 — a quirk inherited from the original federal-revenue-style modulo-11 routine adapted by the TSE. Otherwise the DV equals the remainder.
Second DV. Take the two UF digits followed by the first DV (three digits in total) and multiply by the weights 7, 8, 9. Sum, modulo 11, and apply the same special rules: 10 becomes 0, and remainder 0 in SP/MG becomes 1. The result is the second check digit.
Voter ID generator for testing
Systems that handle electoral data, or registrations that ask for a voter ID, need valid numbers to test against. This tool generates mathematically valid voter IDs with the official TSE algorithm, including the check digits and the state code.
Because they pass format validations, they help seed development databases, test forms and approve integrations. Worth repeating, as always: this is fictitious data for software testing. Never for electoral fraud or to impersonate a real voter.
Nothing is looked up in an external base, since everything is generated in your browser. Produce as many IDs as you need for your test environment's data.
Frequently asked questions
Can I use a generated number to vote or to access the e-Título app?
What happens to a voter who skips three consecutive rounds without justifying?
How does transferring an electoral domicile affect the number?
I lost the physical card — what do I do?
Related Tools
RENAVAM Generator
Generate mathematically valid Brazilian RENAVAM vehicle registration numbers for automotive software testing. Correct check digit. For test use only.
Brazilian State Tax ID Generator
Generate valid Brazilian State Tax IDs (Inscrição Estadual) for SP, RJ, MG, RS, PR and BA. For fiscal software and SEFAZ integration testing.
PIS/PASEP Generator
Generate mathematically valid Brazilian PIS/PASEP numbers for software testing. Follows the official check-digit algorithm. For test use only.
Person Data Generator
Generate complete fictitious person profiles: name, CPF, date of birth, CEP and phone number. Mathematically valid data for testing.
Batch CNPJ Generator
Generate many valid Brazilian CNPJ numbers at once (up to 1000) to test systems, forms and sign-ups. Choose with or without mask and copy the ready list.
Batch CPF Generator
Generate many valid Brazilian CPF numbers at once (up to 1000) to test systems, forms and sign-ups. Choose with or without mask and copy the ready list.