How to use the PIX QR tool
- Enter the recipient's key in Pix key: an email, an 11-digit CPF, a 14-digit CNPJ, a phone number starting with + or a random key in UUID form.
- Fill Merchant name (25 characters) and Merchant city (15 characters).
- If needed, set Amount in BRL (optional), for example 25.00, and a Transaction ID (optional) made of letters and digits.
- Select Generate PIX QR to build the payload and the image.
- Copy the payload from the Result box, or use Download to save the QR code as pix-qr.png.
How a static Pix QR code is built
Pix is the instant payment system run by Banco Central do Brasil. Its QR codes use the BR Code format, which follows the EMV merchant-presented QR specification. The payload is a string of fields, each written as a two-digit ID, a two-digit length and the value. Banking apps read the same string from a QR image or from pasted text, known as Pix Copia e Cola.
A static code contains the recipient's key directly and can be paid any number of times. This tool creates static codes only. Dynamic codes, which point to a charge hosted by a payment provider, need that provider's API.
Worked example: reading the payload
This payload was generated for the random key 123e4567-e89b-12d3-a456-426614174000, Example Store in Sao Paulo, the amount 25.00 and the transaction ID ORDER123.
- 000201: payload format indicator, version 01.
- 2658: merchant account information, 58 characters, with br.gov.bcb.pix and the Pix key as subfields.
- 52040000 and 5303986: merchant category 0000 and currency 986, the Brazilian real in ISO 4217.
- 540525.00: the amount, omitted when the field is empty.
- 5802BR, 5913EXAMPLE STORE, 6009SAO PAULO: country, merchant name and city.
- 62120508ORDER123: additional data with the transaction ID in subfield 05.
- 63048B56: the CRC16 of all preceding characters, 6304 included.
00020126580014br.gov.bcb.pix0136123e4567-e89b-12d3-a456-426614174000520400005303986540525.005802BR5913EXAMPLE STORE6009SAO PAULO62120508ORDER12363048B56Input rules for the Pix QR code generator
The tool checks formats only. It does not ask the Pix directory whether a key is registered or verify CPF and CNPJ check digits.
- Pix key: an email, 11 digits, 14 digits, a phone number with + and country code, or a UUID. CPF and CNPJ keys must not contain dots or dashes. A key longer than 77 bytes is refused.
- Phone keys: spaces, parentheses and hyphens are removed, so +55 (11) 91234-5678 becomes +5511912345678.
- Name and city: accents are stripped, text is uppercased and characters other than A to Z, 0 to 9, space, dot and hyphen are removed. The cleaned name may have 25 characters, the city 15.
- Amount: greater than zero, at most two decimals, up to 99999999. It is written with two decimals, so 7.5 becomes 7.50.
- Transaction ID: 1 to 25 letters or digits. When it is empty, the payload carries three asterisks as the placeholder.
Checksum and QR image details
The checksum is CRC-16/CCITT-FALSE: polynomial 0x1021, initial value 0xFFFF, calculated over the UTF-8 bytes of the payload and written as four uppercase hexadecimal digits. Payment apps recompute it, so a payload edited by hand without a new CRC is rejected.
The QR image is rendered at 512 by 512 pixels with a quiet zone of four modules and offered as a PNG download. Before sharing a code, scan it with your own banking app and confirm the recipient and amount it shows.
Frequently asked questions
Which Pix key does Example use?
Example uses merchant@example.invalid to demonstrate the QR format. Enter the recipient’s registered Pix key when preparing a payment.
Can I create a Pix QR code without an amount?
Yes. Leave the amount empty and the payload omits field 54. The payer's app then asks for the value, which suits donations and tips.
Is my Pix key sent to a server?
No. The payload string, its CRC and the QR image are all produced by JavaScript in the page. The key and merchant details are not transmitted, and nothing is registered with any bank.
Why was my merchant name changed to uppercase without accents?
The tool reduces the name and city to unaccented capital letters, digits, spaces, dots and hyphens. Padaria São João, for example, is written into the payload as PADARIA SAO JOAO.