Pular para o conteúdo
Tool

ZIP Code Generator by State

Generate valid ZIP codes by State (UF) for filling out forms and software testing.

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

  1. Pick a state.
  2. Generate, and copy the result formatted or as bare digits.
  3. 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.

Frequently asked questions

Are these real postcodes?

They follow the real format and the numeric range of the state you choose, but they are not guaranteed to match an existing street. A lookup against the official database may return nothing.

Why not just type 00000-000?

Because most Brazilian forms validate the format and many look the number up, so an obviously fake string fails for the wrong reason and tells you nothing about your own validation code.

What can I use these for?

Testing form validation, seeding a staging database, writing automated tests, and demonstrating a system without using a real customer address.

Can I generate several at once?

Generate as many as you need, one after another. For a complete test profile with name, documents and address together, use the fake person generator.

About this content

Written by:
Ferramenta Grátis

Related tools