Faker BR

How to test with fake CPF/CNPJ data

Generate valid Brazilian CPF, CNPJ, CEP and addresses for tests without exposing real data

Why Brazilian data is different

CPF and CNPJ are not random numbers — they have calculated check digits. An API that validates CPF will reject 123.456.789-00. Generic tools like Faker.js don't solve this: you need a generator that understands Brazilian rules.

httpdrop has a native generator with support for CPF, CNPJ, CEP, address and Brazilian phone numbers — all with valid format, ready for use in tests.

Available BR tokens

🪪
{{faker.cpf}} — CPF with valid check digits
🏢
{{faker.cnpj}} — Formatted CNPJ
📮
{{faker.cep}} — Brazilian postal code
🗺️
{{faker.street}} — Street name
🏙️
{{faker.city}} — Brazilian city
📞
{{faker.phone}} — Brazilian phone format

Seeding a CRUD table via CLI

npm install -g @httpdrop/cli
httpdrop login
httpdrop seed YOUR_ENDPOINT_ID /clientes 100
⚠️
Note: Generated data is fictitious but mathematically valid. Use for testing only — never for registering in external systems.
Ready to implement? Check the full technical documentation with API reference, code examples and detailed parameters.
View docs →