Peru Electronic Receipt XML and QR Viewer

Scan or paste the QR printed on a SUNAT factura or boleta, or open the XML file, to see the document type, series and number, issuer RUC with its check digit, IGV, total and lines, then add it to a log, export CSV or print a copy.

Se ejecuta en tu navegador. Tus archivos nunca salen de tu dispositivo. Cómo comprobarlo

…

Cómo hacerlo

  1. 1
    Scan

    Scan or paste the QR.

  2. 2
    Read

    Check type, RUC, IGV and total.

  3. 3
    XML

    Open the XML for full detail.

  4. 4
    Log

    Add receipts to the log.

  5. 5
    Export

    Download CSV or print.

Sobre esta herramienta

Most sales in Peru are documented with electronic receipts issued through SUNAT's system: the factura for sales to businesses, which allows the buyer to use the IGV as a credit, and the boleta de venta for sales to final consumers, plus credit and debit notes. Each receipt exists as an XML file in the UBL 2.1 standard, signed by the issuer, and as a printed representation, on paper or as a PDF, that carries a QR code. The QR packs the key data in a single line separated by vertical bars: the issuer's RUC, the document type code, the series, the number, the IGV, the total, the date of issue, the type and number of the buyer's document and a summary value. Accountants, shop owners and anyone who files expenses need to read this data quickly and check that it makes sense. This viewer does that in your browser. Scan the QR with your phone's camera or paste its text, and the tool shows the type of document, the series and number, the issuer's RUC with a check of its module 11 digit, the date, the IGV, the base and the total, and the buyer's document. Or open the XML file to see the issuer and customer names, every line with quantity and price, and the subtotal, IGV and total. Add each receipt to a log to total your IGV, export it as CSV or print a reference copy.

The QR fields

| Position | Field | |---|---| | 1 | Issuer RUC | | 2 | Document type (01 factura, 03 boleta, 07 credit note, 08 debit note) | | 3 | Series | | 4 | Number | | 5 | IGV | | 6 | Total | | 7 | Date of issue | | 8 | Buyer document type (6 RUC, 1 DNI) | | 9 | Buyer document number | | 10 | Summary value (hash) |

Worked example

The QR text 20131312955|01|F001|00012345|180.00|1180.00|2026-11-02|6|20100070970| is a factura F001-00012345 issued on 2 November 2026 by RUC 20131312955, whose check digit is correct. The IGV is S/ 180.00 and the total S/ 1,180.00, so the base is S/ 1,000.00 and the IGV is 18% of it, as expected. The buyer is identified by RUC 20100070970.

Checking a receipt

A correct check digit and an IGV of 18% are good signs, but they do not prove the receipt is genuine. SUNAT offers a free service to check electronic receipts by RUC, type, series, number, date and total; use it for important purchases.

Keeping a log

Add each receipt to the log to keep the totals of IGV and amounts for the month, and export them to a spreadsheet for your accountant.

Privacy

QR codes and XML files are read in your browser; nothing is uploaded.

Limits

The viewer reads the common fields; signatures, additional taxes and special formats are not validated. Not tax advice.

Ejemplo práctico

QR 20131312955|01|F001|00012345|180.00|1180.00|2026-11-02|6|… → factura F001-00012345, RUC valid, IGV S/ 180 on a base of S/ 1,000, total S/ 1,180.

Datos rápidos

Preguntas frecuentes

What data does the SUNAT QR contain?

Issuer RUC, document type, series, number, IGV, total, date, buyer document type and number, and a summary value.

What is the difference between a factura and a boleta?

A factura is for sales to businesses and gives IGV credit; a boleta is for final consumers.

Can I read the XML file?

Yes, open it to see the parties, lines and totals.

Does a valid RUC digit mean the receipt is genuine?

No, check the receipt with SUNAT's validation service.

Is anything uploaded?

No, everything runs in your browser.

Can I export my receipts?

Yes, add them to the log and export CSV.

Totalmente gratisSin coste, sin registro
Tus archivos son privadosTodo se ejecuta en tu navegador
Fácil en tu idiomaDisponible en muchos idiomas