# Search filters: CNAE, municipality, size and more

> The 38 company search filters on CNPJá: CNAE, municipality, state, size, status, tax regime, contacts, dates, and how to include or exclude values.

Filters narrow the CNPJ search by registration, company, tax regime, activities, names, address, contacts and the organization's lists: 38 filters in 8 groups. They sit in the bar above the table in **CNPJ** > **Search CNPJ**, and also on the page of each view and each list.

Different filters add up: an establishment has to match all of them. Within one filter, matching any of the chosen values is enough. The free text search and the results table are covered in [Search CNPJs](https://cnpja.com/en-us/docs/search/companies).

## The filter bar

The bar shows the filters you chose to keep at hand. On a first visit, it holds **Status**, **Type**, **Tax regime**, **Opening date**, **Activity**, **City**, **State**, **Phone type** and **E-mail type**.

To fill in a filter:

1. Click the filter in the bar. Its editor opens right below it.
2. Pick or type the values. Each option ticked and each value added updates the table at once; ranges and dates wait for you to click **Apply**.
3. Close the editor with `Esc` or by clicking outside it.

An empty filter shows dashed, with a plus sign (+) before its name. A filled filter shows up to two values and, from three on, a count, such as “3 selected”. When there are exclusions, each side shows one value and, from two on, a count, such as “2 excluded”. To empty a filter, click the X next to it (for example, **Clear Status**). **Clear**, at the end of the bar, erases the search and the values of every filter at once, and the filters stay on the bar.

- Which filters stay on the bar is a choice of this browser, kept in a cookie (see [Cookies](https://cnpja.com/en-us/docs/privacy/browser-data#cookies)). The values live in the page address.
- A link that brings a filter not on your bar shows it while it holds a value. Once emptied, it leaves the bar.
- Filters you add during a visit go to the end of the bar.
- On narrow screens, the bar stays on one line that scrolls sideways.

## The Filters menu

The **Filters** button, at the end of the bar, opens the list of every filter, grouped the way the record is: **Registration**, **Company**, **Tax regime**, **Activities**, **Names**, **Address**, **Contact** and **Lists**. The **Lists** group only shows for members of an organization, and not on a list's page.

To put a filter on the bar or take it off:

1. Click **Filters** (on a phone, only the funnel icon shows).
2. Type in **Find a filter** to find the filter by its name, its group, its address parameter or a synonym, such as `cnae`, `cep`, `ddd`, `matriz` or `mei`. Accents and capitals make no difference.
3. Click the filter, or reach it with `↑` and `↓` and press `Enter`.

A filter that was off the bar joins its end, with the editor already open. A filter already on the bar leaves it, taking its values along.

- Filters on the bar are marked in the menu, and the ones holding values show how many they hold.
- The count on the **Filters** button says how many filters hold a value, even those scrolled out of sight on the bar.
- **Restore defaults**, at the foot of the menu, takes the bar back to the first-visit filters and erases the values of the filters that leave. The button is disabled when the bar already stands as the default.
- **Filter reference**, also at the foot of the menu, opens [All filters](#reference).

## Editor types

Each filter is filled in with one of six editors. In the **Filters** menu, the icon next to each filter tells its editor.

| Editor | How to fill it in |
| --- | --- |
| Options | Tick and untick the options on the list. Each click applies at once. In **State**, the options form a map of Brazil in squares, each state where it sits on the map: the arrow keys move to the neighboring state, and `Home` and `End` go to either end |
| Dictionary | Type in **Search a name or code**. The search ignores accents, capitals and punctuation, and a term made only of digits looks up the code. The list shows the first 50 entries and, when there are more, says “… more, type to narrow”. While nothing is typed, values already picked stay at the top |
| Words | Type and press `Enter`, or click **Add**. Each word becomes a separate value, because each word counts on its own, ignoring accents. To remove a word, click its X |
| Exact values | Type one or more values separated by commas and press `Enter`. The punctuation of a CEP, a phone or a CNPJ root may come along. A value that does not fit stays in the box, with the note **Invalid value:** followed by it, for you to fix |
| Range | Fill in **From**, **To** or both, and click **Apply**. Bounds entered the wrong way round are swapped on their own |
| Dates | Click the first and last days on the calendar, or a single day, and click **Apply**. Month and year can be picked from lists, from 1900 to today. The presets next to the calendar apply at once |

In the dictionary, words and exact values editors, the **Include** / **Exclude** switch shows when the filter accepts exclusions.

## Include and exclude

Some filters take two sides: included values, which the establishment must have, and excluded values, which drop it from the result.

| Side | Effect |
| --- | --- |
| **Include** | The establishment must have at least one of the included values |
| **Exclude** | An establishment with any of the excluded values drops out of the result |

To exclude values:

1. Open the filter on the bar.
2. On the **Include** / **Exclude** switch, choose **Exclude**.
3. Pick or type the values. They show in red, with a minus sign.

Both sides can share one filter. In **Words in names**, including `padaria` (bakery) and excluding `distribuidora` (distributor) brings names with “padaria” and drops those that also have “distribuidora”. Picking a value with the switch on the other side moves the value there. A filter that only holds exclusions opens its editor on **Exclude**.

These filters accept exclusions: **Legal nature**, **Activity**, **Primary activity**, **Secondary activity**, **Words in names**, **Words in legal name**, **Words in trade name**, **City**, **Street**, **Number**, **Address details**, **District**, **Country**, **Area code**, **Phone**, **E-mail domain**, **E-mail** and **List**. In the others, such as **Status** or **State**, pick the options you want to keep.

## Date presets

Date filters have presets next to the calendar, each with the short code it goes by:

| Preset | Code | Period |
| --- | --- | --- |
| **Today** | D0 | Today |
| **Yesterday** | D-1 | The day before |
| **Last 7 days** | 7D | Today and the 6 days before |
| **Last 30 days** | 30D | Today and the 29 days before |
| **Last 90 days** | 90D | Today and the 89 days before |
| **Last 12 months** | 12M | From the same day 12 months ago through today |

Days are counted in Brasília time, the same as the [D0](https://cnpja.com/en-us/docs/search/companies#d0) marker and the Dashboard. A click on a preset applies the period and closes the editor. When the period is today, the filter reads **Today**; otherwise, it shows the dates.

A preset writes the dates of the day you apply it. A link or a [view](https://cnpja.com/en-us/docs/search/views) saved with **Today** keeps showing that day, not the day it is opened. To see the day's openings, apply **Today** again.

## CEP range

**Postal code range** finds establishments whose CEP falls between two values. You can type just the start of a CEP.

1. Click **Filters** and pick **Postal code range**, in the **Address** group.
2. Type the start in **From** and the end in **To**. One of the sides may stay empty.
3. Click **Apply**.

An incomplete CEP stands for every CEP that starts with it: in **From**, the rest is filled with zeros, and in **To**, with nines. So **From** `01` and **To** `05` search from 01000-000 to 05999-999, and **From** `20` alone searches from 20000-000 onwards.

For exact CEPs, one or several, use the **Postal code** filter.

## All filters

Each group below follows the order of the **Filters** menu. The tables give the filter's label, its parameter in the page address, its editor and whether it accepts exclusions.

### Registration

| Filter | Parameter | Editor | Exclude |
| --- | --- | --- | --- |
| **Status** | `status` | Options: **Active**, **Suspended**, **Noncompliant**, **Closed** and **Void** | No |
| **Type** | `type` | Options: **Head office** and **Branch** | No |
| **Opening date** | `opened` | Dates | No |
| **Status reason** | `status-reason` | Dictionary | No |
| **Status date** | `status-date` | Dates | No |
| **Special status** | `special-status` | Dictionary | No |
| **Special status date** | `special-status-date` | Dates | No |

What each status means is in [The five statuses](https://cnpja.com/en-us/docs/data/registration-status#statuses), and special status in [Special status](https://cnpja.com/en-us/docs/data/registration-status#special-status).

### Company

| Filter | Parameter | Editor | Exclude |
| --- | --- | --- | --- |
| **CNPJ root** | `root` | Exact values: the first 8 characters of the CNPJ | No |
| **Size** | `size` | Options: **Micro company**, **Small company** and **Other** | No |
| **Legal nature** | `legal-nature` | Dictionary | Yes |
| **Share capital** | `capital` | Range, in reais | No |

The [company](https://cnpja.com/en-us/docs/glossary#empresa--company) data is the same across all its establishments, so these filters bring the head office and the branches. For one result per company, combine them with **Type** > **Head office**. The **CNPJ root** brings every establishment of a company, as [Companies and establishments](https://cnpja.com/en-us/docs/data/company-and-establishment) explains.

### Tax regime

| Filter | Parameter | Editor | Exclude |
| --- | --- | --- | --- |
| **Tax regime** | `tax-regime` | Options: **Actual Profit**, **Presumed Profit**, **Arbitrated Profit**, **Simples Nacional**, **Simples Hybrid**, **MEI** and **Not Applicable** | No |
| **Simples Nacional start** | `simples-date` | Dates | No |
| **MEI start** | `mei-date` | Dates | No |
| **IBS regular regime start** | `ibs-date` | Dates | No |
| **CBS regular regime start** | `cbs-date` | Dates | No |

A company's regime may be estimated, as [Estimated regime](https://cnpja.com/en-us/docs/data/tax-regime#estimated) explains. The last two filters find [Simples Nacional hybrid](https://cnpja.com/en-us/docs/glossary#simples-nacional-híbrido--simples-nacional-hybrid) companies by the start of their current period in the regular IBS or CBS regime.

### Activities

| Filter | Parameter | Editor | Exclude |
| --- | --- | --- | --- |
| **Activity** | `activity` | CNAE dictionary | Yes |
| **Primary activity** | `primary-activity` | CNAE dictionary | Yes |
| **Secondary activity** | `secondary-activity` | CNAE dictionary | Yes |

**Activity** finds the [CNAE](https://cnpja.com/en-us/docs/glossary#cnae) in the primary activity as well as in the secondary ones. Excluding in **Activity** drops an establishment that has the code in any position; excluding in **Primary activity** drops only those that have it as primary.

### Names

| Filter | Parameter | Editor | Exclude |
| --- | --- | --- | --- |
| **Words in names** | `name` | Words | Yes |
| **Words in legal name** | `legal-name` | Words | Yes |
| **Words in trade name** | `trade-name` | Words | Yes |

**Words in names** looks in both the legal name and the trade name. Each word counts on its own, as [Words, accents and punctuation](https://cnpja.com/en-us/docs/data/search-matching#text-matching) explains.

### Address

| Filter | Parameter | Editor | Exclude |
| --- | --- | --- | --- |
| **City** | `municipality` | Dictionary | Yes |
| **State** | `state` | Options, on the map of Brazil | No |
| **Postal code** | `postal-code` | Exact values: 8 digits | No |
| **Postal code range** | `postal-code-range` | Range | No |
| **Street** | `street` | Exact values | Yes |
| **Number** | `number` | Exact values | Yes |
| **Address details** | `details` | Exact values | Yes |
| **District** | `district` | Exact values | Yes |
| **Country** | `country` | Dictionary | Yes |

**Street**, **Number**, **Address details** and **District** compare the whole value, as the registry writes it, regardless of case, accents and punctuation, with each word compared by its stem, as explained in [Words, accents and punctuation](https://cnpja.com/en-us/docs/data/search-matching#text-matching): `AVENIDA PAULISTA` finds `Avenida Paulista`, but `Avenida Paulista` does not find `Av. Paulista`. The API compares these fields by the same rule. **Country** is mostly useful to find establishments with an address abroad.

### Contact

| Filter | Parameter | Editor | Exclude |
| --- | --- | --- | --- |
| **Phone type** | `phone-type` | Options: **Mobile** and **Landline** | No |
| **Area code** | `area-code` | Exact values: 2 digits | Yes |
| **Phone** | `phone` | Exact values: the number with its area code | Yes |
| **E-mail type** | `email-type` | Options: **Corporate**, **Consumer**, **Accounting**, **Government** and **Academic** | No |
| **E-mail domain** | `email-domain` | Exact values | Yes |
| **E-mail** | `email` | Exact values | Yes |

Phone and e-mail types are calculated by CNPJá, as [Types calculated by CNPJá](https://cnpja.com/en-us/docs/data/contacts#inferred-types) explains. Before using the contacts you find, read [Responsible use](https://cnpja.com/en-us/docs/data/contacts#responsible-use).

### Lists

| Filter | Parameter | Editor | Exclude |
| --- | --- | --- | --- |
| **List** | `list` | Dictionary of the organization's lists | Yes |

**List** only shows for members of an organization and finds lists by name. On a list's page it does not show, since the page already searches only among that list's CNPJs. Including a [list](https://cnpja.com/en-us/docs/glossary#lista--list) searches only among its CNPJs; excluding leaves those CNPJs out. See [Use a list as a filter](https://cnpja.com/en-us/docs/lists/create#as-filter).

## Value limits

Each filter takes values in one format. A value outside it is turned down in the editor or, when it comes through the page address, ignored.

| Filter | What it takes |
| --- | --- |
| **Words in names**, **Words in legal name** and **Words in trade name** | Words of up to 60 characters |
| **Street**, **Address details** and **District** | Values of up to 120 characters. Repeated spaces become one |
| **Number** | Up to 20 characters, kept in capitals, such as `S/N` or `120A` |
| **CNPJ root** | The first 8 characters of the CNPJ, letters or digits, with or without punctuation |
| **Postal code** | 8 digits, with or without the hyphen |
| **Area code** | 2 digits, no zero |
| **Phone** | A Brazilian number with its area code, of 8 or 9 digits, with or without the `55` country code |
| **E-mail domain** | A domain, such as `company.example`. A leading `@` or `www.` is removed |
| **E-mail** | A valid e-mail address |
| **Share capital** | Whole amounts in reais, up to 12 digits on each side |
| Date filters | Dates that exist on the calendar |

In typed values, the comma separates values and cannot be part of any of them. A hyphen at the start of a word, an address part or an e-mail is dropped, because in the page address it marks an exclusion. Ranges and dates hold a single period per filter.

## Filters in the page address

The page address holds the whole search, so you can build a search by hand or adjust a link. The same format works on a view's page and on a list's page.

- The search term goes in `search`, and the results page in `offset`: `offset=50` is the second page.
- Each filter uses the parameter from the [filter tables](#reference). For several values, repeat the parameter: `state=SP&state=RJ`.
- An exclusion takes a hyphen before the value, such as `activity=-4711302`, and only works on filters that accept exclusions.
- Ranges and dates use `from..to`, and one of the sides may stay empty: `opened=2026-01-01..` or `capital=..100000`. Dates follow the `YYYY-MM-DD` format.
- Codes go without punctuation: CNAE `5611201`, city by its IBGE code (`3550308`), CEP `01452922`, legal nature `2062`.
- Phones go as digits only, with the area code, such as `phone=11987654321`.
- A value outside the format is ignored without notice.

Options filters use these codes:

| Parameter | Codes |
| --- | --- |
| `status` | `ACTIVE` (**Active**), `SUSPENDED` (**Suspended**), `NONCOMPLIANT` (**Noncompliant**), `CLOSED` (**Closed**) and `VOID` (**Void**) |
| `type` | `HEAD` (**Head office**) and `BRANCH` (**Branch**) |
| `size` | `MICRO` (**Micro company**), `SMALL` (**Small company**) and `OTHER` (**Other**) |
| `tax-regime` | `ACTUAL_PROFIT` (**Actual Profit**), `PRESUMED_PROFIT` (**Presumed Profit**), `ARBITRATED_PROFIT` (**Arbitrated Profit**), `SIMPLES_NACIONAL` (**Simples Nacional**), `SIMPLES_NACIONAL_HYBRID` (**Simples Hybrid**), `SIMPLES_NACIONAL_SIMEI` (**MEI**) and `NOT_APPLICABLE` (**Not Applicable**) |
| `state` | The state abbreviation, such as `SP` |
| `phone-type` | `MOBILE` (**Mobile**) and `LANDLINE` (**Landline**) |
| `email-type` | `CORPORATE` (**Corporate**), `CONSUMER` (**Consumer**), `ACCOUNTING` (**Accounting**), `GOVERNMENT` (**Government**) and `ACADEMIC` (**Academic**) |

For example, `/en-us/establishments?status=ACTIVE&state=SP&activity=5611201&opened=2026-01-01..` brings the active restaurants in SP opened since January 1, 2026.

## In the API

In the API, filters have other names: the field path followed by an operator, such as `address.state.in` instead of `state`. The full list is in [Filters](https://cnpja.com/en-us/docs/api/cnpj-search#filters), on the CNPJ search and lists page. Address filters follow the app's rule: `address.street`, `address.number`, `address.details` and `address.district` compare the whole value and accept only `in` and `nin`.
