What is a PIX code generator?
PIX is Brazil's instant payment system, created by the Banco Central do Brasil and launched in November 2020. Anyone with a bank account can pay or receive money in seconds, at any hour, using a PIX key (CPF, CNPJ, email, phone number or a random key) or a QR code. This tool builds the PIX copy-and-paste code (also called "PIX copia e cola" or BR Code) and its QR code from your key, receiver name, city and, if you want, an amount and an identifier. It also works in the other direction: paste any PIX code and it shows every field and checks that the CRC16 at the end is correct.
The code is a text string in the EMV® merchant-presented QR format adapted by the Banco Central in its PIX manual of standards. It is a list of fields, each written as an identifier, a two-digit length and a value: field 00 is the payload format, 26 holds the account (BR.GOV.BCB.PIX plus your key), 52 is the category code, 53 the currency (986 is the Brazilian real), 54 the amount, 58 the country, 59 the receiver name, 60 the city, 62 the additional data with the transaction identifier and 63 the CRC16 check. This tool generates static codes, which always carry the same key and optionally a fixed amount. Dynamic codes, which contain a payment URL and are issued by your payment provider for each charge, can be read and inspected but not created here.
Use it to learn how PIX works, to test an integration, to put a static key on a poster or invoice or to check a code you received. It is for tests and learning: always check a payment in your bank app before sending money. Everything runs in your browser and nothing is sent to a server.
How to generate and read a PIX code
- To generate, type the PIX key: CPF, CNPJ, email, phone number with
+55or a random key. The tool recognises the key type. - Type the receiver name (up to 25 characters) and the city (up to 15). The tool uppercases the text and removes accents (
São PaulobecomesSAO PAULO); characters with no plain form, such as emoji or Cyrillic letters, are refused with a message. - Optionally type an amount such as
49,90and an identifier of letters and digits (it becomes***if empty). - Copy the generated code or download its QR code.
- To read a code, paste it into the read box. The tool lists every field, tells you if the key looks like a CPF, CNPJ, email, phone or random key, whether the code is static or dynamic, and whether the CRC is correct.
Examples
A static code with amount
Key 123e4567-e12b-12d1-a456-426655440000 (random key format), name Fulano de Tal, city Brasilia, amount 49,90, identifier PEDIDO123:
00020126580014BR.GOV.BCB.PIX0136123e4567-e12b-12d1-a456-426655440000520400005303986540549.905802BR5913FULANO DE TAL6008BRASILIA62130509PEDIDO12363042C11Reading it gives: format 01, account BR.GOV.BCB.PIX, key, category 0000, currency 986, amount 49.90, country BR, name FULANO DE TAL, city BRASILIA, identifier PEDIDO123 and CRC 2C11.
A code without an amount
An email key maria@example.com for Maria Silva in Sao Paulo without an amount ends with the identifier *** and CRC CC36: the payer types the value.
The CRC16
The check uses CRC-16/CCITT-FALSE (polynomial 0x1021, initial value 0xFFFF) over the whole string up to and including 6304. The standard check value for the text 123456789 is 29B1.
A broken code
Change any character of the example and the tool reports that the CRC16 does not match: it shows the value the code says and the value the content gives. This is how banks and apps detect a code that was cut or edited.
Common mistakes
- Characters with no plain-letter form. The BR Code is plain text. Accents are removed for you, but emoji, Cyrillic or Asian characters are refused: rewrite the name or the city.
- Names longer than 25 or cities longer than 15 characters. The tool asks you to shorten them.
- An amount in the wrong format. Use
49,90or1.234,56, up to two decimals, no sign. - Editing the code by hand. Any change breaks the CRC and banks will reject it.
- A key typed with spaces or the wrong type. Phone keys start with
+55, and the tool flags a key format it does not recognise. - Treating a static code as proof of payment. The code only carries the destination. Confirm the receiver name and amount in your bank app.
Frequently asked questions
What is the difference between a static and a dynamic PIX code?
A static code always has the same key and can be reused; a dynamic code has a payment URL generated for each charge by your provider.
What is PIX copia e cola?
It is the text version of the QR code: a string you paste into your bank app to pay without scanning.
Can I create a QR code for any PIX key?
Yes, for your own key and a static code. This tool also draws the QR code.
Is the code a payment?
No. It only describes who to pay and, optionally, how much.
Where do PIX keys come from?
They are registered by users in their bank. A CPF or CNPJ key is checked with the same algorithm as the CPF validator, and a phone key can be checked with the phone number parser. Rules and the manual of standards are published by the Banco Central do Brasil.