Skip to content
Brazil Manual
Brazil Manual Home All guides
A yellow Correios post office on a Brazilian street corner, seen from across the road

Photo: HVL · CC BY 3.0 · source

What Is a CEP? How a Brazilian Address Is Built

A British postcode narrows down a delivery route. A US ZIP identifies a sorting area. A Brazilian CEP does something different: it is the address itself, written from the scale of the country down to the scale of one side of one street — and the sorting machine trusts it over the words you wrote above it.

By Jeff Bruno · Editor, Curitiba
Published 7 min read
In this article
Quick answer

A CEP is eight digits, written 01310-100. It is not an add-on to the address — it is the address, encoded from the largest scale to the smallest, left to right.

Two things follow. The house number comes after the street name, because street and number are separate fields. And if the CEP contradicts what you wrote, the CEP wins.

The digits are a funnel, not a label

Read a CEP left to right and you are zooming in. The first digit is one of ten postal regions the country was cut into; each digit after it narrows the area, down to a sub-sector — which can be one stretch of one street, or one side of it.

The regions were not drawn by geography alone. The Correios describe them as set by socioeconomic development and population growth, with the numbering handed out anticlockwise starting from São Paulo — which is why region 0 is greater São Paulo and region 9 is Rio Grande do Sul, at the far south. That is the Correios' own description, in their own text, not folklore.

At a glanceChecked September 3, 2026

Format
Five digits, hyphen, three digits
What the first digit is
One of ten postal regions
Direction of reading
Country to street, left to right
The last three digits
Sub-sector suffix, range 000–899
900–959
Reserved for special codes, including single large recipients
Introduced
Five digits in the early 1970s, extended to eight in the early 1990s

Correios, Tudo sobre CEP and archived structure pages. Accessed September 3, 2026.

The eighth digit is a real check digit, with a published formula — not decoration. Which is how a typo in a CEP can fail validation instead of quietly routing a parcel to the wrong state.

Some places have one CEP for the whole locality. That is not a gap in the system: it is what happens where addresses were never coded street by street, and it persists in smaller towns. A single CEP can also belong to one recipient — a bank, a government body, a building that receives enough mail to earn its own code.

Why the number comes after the street

To a Brazilian system, the street is one closed unit: a type plus the official name assigned by the municipality. Rua, Avenida, Travessa, Alameda — the type is part of the name, not a description of it.

The number is a separate field, and its stated job is to identify the building on that street. So the order is not stylistic preference reversed from English: it is nominate the street, then point at a spot on it. Which is also why a Brazilian form will reject the whole address if you paste "123 Rua Augusta" into the street box — the number does not belong there.

Two consequences bite foreigners. Addresses without a number use S/Nsem número — and that is a real value, not a blank. And the list of street types you find published is a list of examples, not a closed set: other types exist, and the international reference sheet for Brazil lists several the domestic page does not.

The CEP outranks what you wrote

This is the part that changes behaviour, and it is stated plainly in the Correios' own technical guide: sorting is mechanised, and the code is what the machine reads.

If the CEP and the written address disagree, the item follows the CEP. Nothing catches the contradiction at the moment it matters, because nothing human is reading. The error surfaces at the far end, where a person finally looks at the label and finds the item in the wrong city.

The practical rule for anyone sending something to Brazil: verify the CEP against the street, not the other way round. A correct street with a wrong CEP is worse than an incomplete address, because it fails silently and confidently.

The complemento is where deliveries die

Complemento covers apartment, block, floor, unit, shop — anything identifying a dwelling inside a building. Real examples the Correios publish are as plain as Loja B.

It is not an afterthought field. The official label spec reserves 30 characters for it, against 6 for the number and 8 for the CEP. And "missing complemento" is a named, numbered reason for returning an item, printed on the back of the standard envelope, resting on the postal law's provision about addressing that does not allow correct delivery.

So an address that reaches the right building and cannot name the flat is not almost-right. It is a documented return.

Brasília works differently enough to break every rule above: no street names at all, but a sector abbreviation, then quadra, then block. In the Federal District the administrative region takes the place you would expect the neighbourhood to occupy.

Sending from abroad: whose format wins

The rule most people get backwards is simple, and the UPU states it as a recommendation rather than a requirement: the country line follows the conventions of the country you post from; everything above it follows the destination.

An American posting to Brazil does not translate the address into US shape. They write the Brazilian address as a Brazilian would — street type and name, number, complemento, neighbourhood, city, state abbreviation, CEP — and then write BRAZIL on the last line, in their own language, for their own postal service to read.

The same instinct that makes people rewrite an address makes them rewrite a phone number, and Brazilian numbers have their own trap. If a form is asking for your address, it will probably ask for a CPF too, and why the cashier wants that number has its own answer — above a threshold, the receipt wants an address as well. Getting a CPF as a foreigner is a separate errand, as is having a document apostilled. Buying a SIM card will ask you to register somewhere; paying by PIX will not ask for an address at all; and if none of this applies yet, start with whether you need a visa.

Sources

What we could not verify

  • The CEP ranges by state. The Correios publish a lookup that answers this for a human, but it sits behind a CAPTCHA, including on the range search. We did not work around it, and there is no open dataset: the Correios publish that, as a state company, they are outside the open-data decree, and the full address base is a paid product.
  • The exact month the code was introduced and later extended. An archived Correios page says May 1971 and May 1992; the timeline the Correios publish today says 1970 and has no entry for the change to eight digits at all. Two official sources, two answers, so we give the decade rather than pick one.
  • Which regulation the postal law delegates the code's structure to. The law refers to a regulation, and a 2025 decree governs postal services in general — but neither fixes the eight digits. The ordinance the CEP page itself links to is about universal service and delivery deadlines, not the structure of the code.

Frequently asked

Código de Endereçamento Postal — postal addressing code. It has eight digits, written as five, a hyphen, then three.

Because the street name is a closed unit for the postal system — a type plus the official name given by the city — and the number is a separate field whose job is to point at a building on that street. The order follows the data model, not style.

Sorting is mechanised and follows the code, so the item goes where the CEP points. The mistake usually surfaces only when a person reads the label, by which time it is already in the wrong place.

Apartment, block, floor, unit — anything that identifies a dwelling inside a building. It is a first-class field with 30 characters reserved on the official label, and leaving it out is a named reason for returning mail.

The UPU recommends that only the country line follow your own country's conventions, and everything above it follow the destination. So a Brazilian address sent from abroad stays in Brazilian format.

Jeff Bruno

Jeff Bruno

Curitiba, Paraná

Runs online retail in Brazil. Pays suppliers by PIX, ships through the Correios, crosses to Paraguay for stock.

About the author →

Every guide names its sources

And says what it could not verify. That is the whole point.

Browse all guides

44 guides · free · no paid placements, ever

Read next