PIS, CNH, Voter ID & RENAVAM
Generate and validate Brazilian PIS/PASEP, Driver License (CNH), Voter ID (by state), and vehicle RENAVAM numbers for QA testing.
Document type
Quantity
Validate existing document
ResultValid
Result
438.92593.69-9145.32637.84-4082.97381.95-0505.21459.51-2403.91660.77-1
Use from the terminal (JSON)
This tool also runs outside the site: the cli.js script uses the same logic as this page and returns the result as JSON. Parameters are the same as this page's URL — copy the command below with the values on screen.
Deno
deno run -q "https://tools.thecodecodex.com/cli.js?tool=br-docs"
Node.js / Bun
curl -s https://tools.thecodecodex.com/cli.js | node --input-type=module - br-docs doc=…
| Parameter | Description | Default |
|---|---|---|
| doc | pis | cnh | titulo | renavam | pis |
| q | quantidade para gerar (1-50) | 5 |
| uf | UF para Título de Eleitor | SP |
| mask | 1 = formatado com pontuação | 1 |
| v | número para validar | — |
Requires Deno, Node.js or Bun. With Deno the script runs with no permissions: it cannot read files or access the network. Central Bank indicators are from the day the site was published.
More in Brazil Documents
- CPF Generator & ValidatorGenerate valid Brazilian CPF numbers for testing (by state) and validate or format existing ones.
- CNPJ Generator & ValidatorGenerate and validate Brazilian company IDs (CNPJ), including the new alphanumeric format (from July 2026).
- NF-e Key & Boleto InspectorInspect, validate, and generate 44-digit Brazilian NF-e/CT-e access keys and decode 47-digit FEBRABAN bank slip lines.