10-24-2021 10:27 AM
Hi everyone, i am trying to find a function that generates CPF such this website
10-24-2021 05:19 PM
Hi @joaoneto ,
please try this link https://geracpf.com/
Note: check the GitHub link that exist on the link above.
Hope this helps !!!
06-04-2026 11:13 PM - edited 06-05-2026 05:51 PM
If you only need valid CPFs for testing, development, or lab environments, you don't necessarily need to implement the algorithm yourself. There are several online tools that generate CPFs with valid check digits following the official validation rules.
I have used a gerador de cpf for testing registration forms and validation routines. The generated numbers are mathematically valid and useful for QA and development scenarios. Most generators simply create fictitious CPF numbers that pass the verification algorithm and can be used to validate forms, databases, and onboarding workflows.
If your goal is to build the function directly into an application or Cisco ISE process, then you would need to implement the CPF check-digit calculation in your preferred programming language. The online generators are basically automating that same validation logic.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide