Brazil Document Number Validator (PIS/NIS, Título de Eleitor, CNH, RENAVAM)

Paste CPF, PIS/NIS, voter ID, CNH or RENAVAM numbers to check their check digits, detect the document type, format them and download the results as CSV.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Choose the type

    Or detect.

  2. 2
    Paste numbers

    One per line.

  3. 3
    Read results

    Valid or not.

  4. 4
    See formats

    Standard masks.

  5. 5
    Fix errors

    Before saving.

  6. 6
    Download

    CSV.

About this tool

Brazilian forms ask for many document numbers: the CPF of every person, the PIS, PASEP or NIS for workers and social programmes, the voter registration (título de eleitor), the driving licence (CNH) number and the RENAVAM of vehicles. Each of these numbers ends in one or two check digits calculated from the other digits, which allows systems to catch typing mistakes immediately, without consulting any database. The CPF has 11 digits, two of them check digits calculated by modulus 11 with decreasing weights. The PIS, PASEP and NIS share an 11-digit format with one check digit and weights 3, 2, 9, 8, 7, 6, 5, 4, 3, 2. The voter ID has 12 digits: an 8-digit sequence, a 2-digit code for the state where it was issued, from 01 for São Paulo to 28 for voters abroad, and two check digits, with a special rule for São Paulo and Minas Gerais. The CNH registration number has 11 digits with two check digits calculated from the first nine, and the RENAVAM has 11 digits with one check digit obtained by multiplying the weighted sum by ten and taking the remainder of division by eleven. This validator checks any list of these numbers at once, accepts input with or without dots, dashes and spaces, can detect the document type automatically, formats valid numbers in the usual way and lets you download the results as a CSV file. It is useful for cleaning spreadsheets, checking registrations and testing forms. A valid check digit only shows that the number is well formed, not that it belongs to a real person or vehicle.

Who this is for

HR and payroll teams, social programme staff, dealerships and fleet managers, clinics and schools cleaning registrations, and developers testing forms.

Formats

| Document | Digits | Format | |---|---|---| | CPF | 11 | 000.000.000-00 | | PIS/PASEP/NIS | 11 | 000.00000.00-0 | | Voter ID | 12 | 0000 0000 0000 | | CNH | 11 | 00000000000 | | RENAVAM | 11 | 00000000000 |

Cleaning data

Remove spaces, dots and dashes before storing, keep numbers as text to preserve leading zeros, and validate at the moment of entry. Older RENAVAMs had 9 digits and are padded with zeros on the left.

Privacy

These numbers are personal data under the LGPD. Collect only what you need, store it securely and do not publish lists. This tool processes everything in your browser.

Where each number appears

The CPF is on the RG of newer cards, on the CNH and in the Receita Federal app. The PIS or NIS appears on the work card, payslips and the Caixa Tem app. The voter ID is in the e-Título app. The CNH number is printed on the licence and in the Carteira Digital de Trânsito app, which also shows the RENAVAM of your vehicles, printed too on the vehicle registration (CRLV).

Testing systems

Use generated numbers that pass the check digits only for testing, never to register real people, and remove them from production databases.

Limits

Check digits do not prove existence. Use official services such as Receita Federal, TSE, Detran and Senatran to confirm.

Worked example

529.982.247-25 is a valid CPF and 111.444.777-36 is not.

Quick facts

Frequently asked questions

Which documents can be checked?

CPF, PIS/PASEP/NIS, voter ID, CNH and RENAVAM.

Why can a number be valid for two types?

Different rules can coincide for some 11-digit numbers.

Does a valid number mean the document exists?

No, only that the check digits are right.

Can I paste numbers with punctuation?

Yes, punctuation is removed automatically.

Can I download the results?

Yes, as a CSV file.

Is my data stored online?

No, it stays in this browser.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages