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.
FAQ
Can I use a generated number to vote or to access the e-Título app? No. Generated titles satisfy the algorithm but are not registered in the TSE's national database. The e-Título app, official biometric services, declarations of voting compliance (certidão de quitação eleitoral) and any election-day check-in will all fail. Using a generated number to impersonate a real voter is identity fraud and falls under Código Penal art. 299/307 and the Código Eleitoral art. 350.
What happens to a voter who skips three consecutive rounds without justifying? The TSE automatically cancels the registration. Reactivation requires the elector to appear in person at any electoral registry, present an ID and pay a small fine (currently between R$1.05 and R$3.51 per round missed) before the next election.
How does transferring an electoral domicile affect the number? It does not. The twelve digits are permanent — the UF block continues to reflect the state where the title was first issued, even after a transfer. What changes is the polling section (zona and seção), tracked separately in the TSE's database.
I lost the physical card — what do I do? The plastic card is no longer required at the polls; a photo ID plus the elector's number is enough. You can recover the number, your zona/seção and a digital replica by installing the e-Título app or visiting tse.jus.br with your CPF.
Related Tools
Handwriting Generator
Convert typed text into an image with handwriting appearance. Useful for adding a personal touch to digital work.
Resume Generator
Fill a simple printable A4 CV from a form with personal data, education and experience.
Favicon Generator
Generate a favicon from text/emoji in all common sizes (16, 32, 48, 64, 192, 512). PNG download.
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.