What it is
The Brazilian Postcode Generator produces CEP numbers in the correct format for a chosen state, for use when you are testing a form or seeding a database and need an address field that validates.
Why generated rather than invented
Typing 00000-000 into a form is the fastest way to get a false negative. Brazilian address fields usually validate the format, and many look the number up against a postcode service, so a made-up string fails for the wrong reason and tells you nothing about your own code.
A generated CEP follows the real structure, including the numeric range that belongs to the state you picked, so the format check passes and you can get on with testing the rest of the form.
How to use it
- Pick a state.
- Generate, and copy the result formatted or as bare digits.
- Repeat for as many as you need.
What this is and is not
These numbers are structurally valid, not real deliverable addresses. A CEP generated here is not guaranteed to correspond to an existing street, and a lookup against the official postcode database may return nothing.
That is fine for the job it is meant for: testing form validation, filling a staging database, writing automated tests, and demonstrating a system without using a real customer's address. It is not fine for anything that ends in a real delivery, a real invoice or a real registration.
Related: the CPF generator, the CNPJ generator and the fake person generator for a full test profile.