CodeToolsHub.dev

CPF Generator (valid format, fictional)

Live

Generate valid-format, fictional CPF numbers.

All generated data is fictional and intended for development, testing, QA, prototyping, and automation only. Do not use it for fraud, impersonation, or illegal activity.

Configuration

Output

Configure the options and press Generate to produce output.

About this tool

CPF (Cadastro de Pessoas Físicas) is the Brazilian individual taxpayer ID. This tool builds the 9 base digits randomly and computes the two check digits with the mod-11 algorithm, rejecting trivial sequences like 111.111.111-11.

How it works

  1. Choose how many CPFs to generate and whether to include punctuation.
  2. Optionally set a seed for reproducible output.
  3. Press Generate, then Copy, Download JSON or Download CSV.

Example output

[
  "791.218.852-57",
  "011.006.872-62"
]

API endpoint

curl "https://codetoolshub.dev/api/v1/br/cpf?count=3"
API

Frequently asked questions

Can I use this for fraud?
No. These are fictional numbers for technical validation in development only. Misuse is prohibited.
Do they pass CPF validators?
Yes — the check digits are mathematically correct, so format/checksum validators accept them.

Related tools

CodeToolsHub.dev

Realistic fictional data for development, testing, and AI.

© 2026 CodeToolsHub.devAll generated data is fictional. Not affiliated with Microsoft or Visual Studio Code.