1001Ferramentas
Generators

ANEEL UC Code Generator (electric utility)

Generate fake Brazilian electric utility UC code (10 digits). For tests.


  

ANEEL codes in depth: regulator, consumer units, tariffs and flags in the Brazilian power sector

ANEEL (Agência Nacional de Energia Elétrica) is Brazil's federal electricity regulator, created by Law 9.427/1996. It supervises generation, transmission, distribution and commercialization of electric power — roughly 108 distribution concessionaires (Enel, CPFL, Light, Cemig D, Coelba/Neoenergia, EDP, Equatorial, etc.), each with a 3-4-letter ANEEL code, plus hundreds of generators and trading agents. Every regulated agent and every consumer unit is referenced through a numeric code in ANEEL's databases.

This generator produces sample ANEEL-format codes for testing forms, mocks and CRM integrations. The codes are structurally valid — they follow ANEEL's typical 7-10 digit pattern — but are not tied to any real consumer unit and will not pass the concessionaire's database check.

UC: the Consumer Unit identifier

A UC (Unidade Consumidora) is the identifier that the distributor assigns to a residence, business or industrial site — a single point of connection to the grid. The UC number has 7-10 digits and is unique per distributor, not globally. You will find it printed in the top-right corner of every electric bill, along with the código do cliente and the número da instalação.

UC is what you use to: pay your bill on the concessionaire's portal, request a transfer of ownership, contract solar net-metering (SCEE), and look up consumption history. It is not related to your CPF — moving house gives you a new UC even with the same documents.

Tariff classes (Grupos A and B)

  • B1 — Residential: low-voltage homes; the most common class with optional Tarifa Social discount.
  • B2 — Rural: agricultural producers, rural water pumping, family farming.
  • B3 — Other classes: low-voltage commercial, services, small industry.
  • B4 — Public lighting: streetlights, municipalities.
  • A4 / A3a / A3 / A2 / A1: medium and high voltage (industrial, large commercial). Tariffs split into TUSD (wire usage) and TE (energy itself), often with hourly bands (ponta vs fora-ponta).

Tariff flags (Bandeiras Tarifárias)

In force since 2015 under Normative Resolution 547/2013, tariff flags signal the cost of generation each month based on hydroelectric reservoirs and thermal dispatch:

  • Verde (Green) — no extra charge; conditions are favourable.
  • Amarela (Yellow) — about R$ 0.01885 per kWh extra (2024 values); moderate cost.
  • Vermelha 1 (Red 1) — about R$ 0.04463 per kWh extra; high cost.
  • Vermelha 2 (Red 2) — about R$ 0.07877 per kWh extra; critical cost.
  • Escassez Hídrica — emergency surcharge used during the 2021 crisis.

What makes up the bill

An electric bill in Brazil typically breaks down into: TUSD (Tarifa de Uso do Sistema de Distribuição — the wire), TE (Tarifa de Energia — the kWh itself), ICMS (state VAT, ~17-25%), PIS/COFINS (federal taxes), the tariff flag surcharge, the Contribuição de Iluminação Pública (CIP), and any payment of installments or debt. Distributed generation credits (solar) are subtracted from the energy component.

Distributed generation (SCEE) — the Sistema de Compensação de Energia Elétrica — credits each kWh you inject into the grid against future consumption, governed since 2022 by Law 14.300 (Marco Legal da Geração Distribuída). Microgeração is up to 75 kW; minigeração runs from 75 kW to 5 MW. Procel is a separate program — the efficiency label on appliances, run by Eletrobras.

FAQ

Where do I find my UC code on the bill? Top-right corner of every electricity bill, usually labelled "Unidade Consumidora" or "UC". Some distributors also call it "número da instalação".

Do generated codes work in my distributor's portal? No. Generated codes follow the format but are not linked to any real UC. They are intended for development testing, form validation and mock data — never for fraud or real customer flows.

Does the tariff flag change every month? Yes. ANEEL announces it monthly, around the 25th, based on water reservoir levels, expected rainfall and thermal-plant dispatch costs.

What's the difference between TUSD and TE? TUSD pays for the wires (transmission and distribution infrastructure); TE pays for the energy itself. Industrial customers in Group A see them on separate lines; B1 residential bills usually combine them.

Can I switch distributor like a phone carrier? No — distribution is a regional monopoly under concession contract. But in the Mercado Livre de Energia, Group A consumers above 500 kW can choose their energy supplier (TE) while keeping the same distributor (TUSD).

Related Tools