CEST Code Generator (BR Tax Substitution)
Generate CEST codes (Brazilian Tax Substitution Specifier) in XX.XXX.XX format. Picks from 28 official segments.
CEST code: ICMS substitution tax in Brazil
The CEST (Codigo Especificador da Substituicao Tributaria, "ICMS-ST Specifier Code") is a 7-digit identifier that marks whether โ and in which segment โ a product is subject to the Brazilian ICMS Substituicao Tributaria (ICMS-ST) regime. It was instituted by Convenio ICMS 92/2015 from CONFAZ and became mandatory in NF-e/NFC-e issuance for products under ST in 2017.
In Brazil, the ICMS (state value-added tax) on certain goods is collected from the manufacturer or importer up-front, anticipating the rest of the supply chain to the final consumer. This is the substituicao tributaria para frente ("forward substitution"). The CEST tells SEFAZ which segment governs that anticipation; the NCM alone is not enough because the same physical product can be inside or outside ST depending on category and state policy.
Structure: 7 digits, three fields
03.001.00
| | |
| | +-- Specification (2 digits)
| +------ Item within segment (3 digits)
+---------- Segment (2 digits, 01-28)
There are 28 product segments. Examples: 01 medicines, 02 perfumery and personal care, 03 alcoholic beverages, 04 beer / chopp, 05 non-alcoholic beverages / water, 06 tobacco, 17 tires and inner tubes, 21 fuels and lubricants, 28 autoparts.
03.001.00โ whisky.04.001.00โ beer in glass bottle.01.001.00โ vaccine / serum.05.001.00โ soft drink in PET container.
CEST vs NCM: complementary, not redundant
The two codes answer different questions. NCM says what the product is, physically and fiscally (an 8-digit Harmonized System classification). CEST says how it is taxed under the ICMS-ST regime. A given NCM may map to one CEST (when ST applies), to multiple CESTs (different segments), or to none at all (no ST for that product). SEFAZ validates the pair: an NCM that is on the ST list must carry a CEST; an NCM outside ST must not.
State adherence and MVA
Most states adopted the CEST in 2017 (RJ, SP, MG, MT, MS, RS, PR, SC, etc.), but a handful never fully adhered or apply ST selectively. Each state publishes its MVA (Margem de Valor Agregado, "Value Added Margin") โ the markup percentage used to estimate the final consumer price for computing the anticipated ICMS-ST. Cross-border operations require the destination state's MVA.
Maintenance and updates
CONFAZ publishes amendments to the CEST table several times a year. Tax software must reload the table after each convenio. The reference table is available at the Sefaz Virtual portal and inside the major fiscal ERPs. Loading a stale table is one of the most common causes of error 6011 ("CEST informado nao consta no Convenio ICMS 92/2015") during NF-e authorization.
Frequently asked questions
If my product has no CEST, can it still be under ICMS-ST? No โ by construction. A product without a CEST mapping is not on the CONFAZ ST list, so ICMS is collected normally by the seller along the chain.
Are the codes generated here valid for invoicing? No. They follow the SS.NNN.NN format for development and testing only. For real invoicing, consult the current Convenio ICMS 92/2015 annexes.
Does ICMS-ST increase total tax burden? Generally no โ it anticipates collection and shifts the cash-flow burden to the first link of the chain, but the headline rate is the same. It dramatically reduces fiscal evasion by concentrating compliance at fewer taxpayers.
Why does the same NCM sometimes have several CESTs? Because the CEST distinguishes uses and presentations that the NCM does not. A perfume sold in a 100 ml flask and the same fragrance bottled for industrial use may share an NCM but fall under different CEST items.
What is the relationship between CEST and CFOP? CEST identifies the product under ST; CFOP describes the operation (sale, transfer, return). Both are required on the NF-e XML for ST operations, alongside the NCM.
Related Tools
Handwriting Generator
Convert typed text into an image with handwriting appearance. Useful for adding a personal touch to digital work.
Resume Generator
Fill a simple printable A4 CV from a form with personal data, education and experience.
Favicon Generator
Generate a favicon from text/emoji in all common sizes (16, 32, 48, 64, 192, 512). PNG download.