GST E-Invoice JSON Generator (IRP Schema)
Fill in the seller, buyer and line items once and get the e-invoice JSON in the government schema, with GSTIN check characters, HSN, rate and total checks, the 30-day reporting limit and a register of invoices sent to the IRP.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Set the supply and document
Choose the supply type, document type, number, date and place of supply, and enter your aggregate turnover.
- 2Fill in the parties
Type the seller and buyer GSTIN, legal name, address, city, PIN and state as in their registrations.
- 3Add items
Add each line with HSN or SAC, quantity, unit, unit price, discount and GST rate; tick service for SAC lines.
- 4Check the totals
Read the taxable value, tax and invoice value; round the total to the nearest rupee if you need to.
- 5Fix problems
Open the JSON and checks tab and clear every error in the list before you download.
- 6Download and register
Download the JSON, upload it to the IRP and type the IRN and acknowledgement into the register.
About this tool
Every registered business whose aggregate annual turnover crossed Rs 5 crore in any year since 2017-18 must report its B2B invoices, credit notes, debit notes, exports and SEZ supplies to an Invoice Registration Portal (IRP). The IRP checks the document, returns a 64-character Invoice Reference Number (IRN) and a signed QR code, and passes the data on to GSTR-1 and the e-way bill system. Large ERPs do this through an API, but many smaller businesses prepare the JSON file themselves and upload it through the offline tool or the bulk upload page. This generator builds that file. You enter the supply type (B2B, SEZ with or without payment, export, deemed export), the document type, number and date, the seller and buyer as they appear in their GST registrations, and each item with its HSN or SAC code, quantity, unit, unit price, discount and GST rate. The tool works out the assessable value, decides between IGST and CGST plus SGST from the seller state and the place of supply, adds cess and other charges, and lays everything out in the field names of schema version 1.1: TranDtls, DocDtls, SellerDtls, BuyerDtls, ItemList and ValDtls. Before you download, it runs the common validation rules: the GSTIN format and its check character, the state code against the GSTIN, document number pattern, a date that is not in the future, six-digit PIN codes, 4, 6 or 8 digit HSN codes, allowed GST rates and the round-off limit. Every invoice is kept in a register in your browser, where you can record the IRN, acknowledgement number and date that the IRP sends back.
Who has to issue e-invoices
E-invoicing applies when aggregate turnover in any financial year from 2017-18 onwards went above Rs 5 crore (notification 10/2023-Central Tax, from 1 August 2023). Once you cross the limit you stay in, even if turnover later falls. Some sectors are exempt whatever their size: banks and other financial institutions, insurers, goods transport agencies, passenger transport services, cinema admission and SEZ units. Supplies to unregistered buyers (B2C) are not reported to the IRP; a dynamic QR code applies to those instead for the largest taxpayers.
The 30-day reporting limit
Taxpayers with aggregate turnover of Rs 10 crore or more cannot report an invoice to the IRP more than 30 days after its date. The IRP rejects such a file, and an invoice without an IRN is not a valid tax invoice, so the buyer cannot claim credit on it. The tool reads your turnover and warns you when a document is getting close to the limit or is already past it.
How the tax columns are filled
The IRP expects the supplier to calculate tax line by line. Assessable value is quantity times unit price less discount. When the seller state equals the place of supply, the line carries CGST and SGST at half the rate each; otherwise it carries IGST. Supplies to SEZ units and exports always carry IGST, or no tax at all when made under a letter of undertaking (SEZWOP and EXPWOP). For exports the buyer GSTIN becomes URP, the place of supply 96 and the PIN 999999, as the schema requires.
After upload
Copy the IRN, acknowledgement number and date into the register. An IRN can only be cancelled in full and only within 24 hours on the IRP; after that, issue a credit note. The same document number cannot be used again in the same financial year once it has had an IRN, even if cancelled.
Worked example
Sharma Electricals in Maharashtra (state 27) sells 10 LED panels at Rs 1,500 with a Rs 500 discount and installation worth Rs 2,000 to a buyer in Karnataka (place of supply 29). Assessable value is Rs 14,500 plus Rs 2,000, that is Rs 16,500. Because the states differ, IGST at 18% is Rs 2,970 and the invoice value is Rs 19,470. The JSON shows IsServc "Y" and no unit for the installation line.
Limits
This tool does not connect to the IRP and does not generate an IRN or the signed QR code. It runs the common checks only; the IRP also checks duplicates, the GSTIN status on its own records and other rules. It is not tax advice.
Worked example
Panels Rs 14,500 after discount plus installation Rs 2,000 from Maharashtra to Karnataka: IGST 18% Rs 2,970, invoice value Rs 19,470, schema 1.1 JSON with two ItemList entries.
Quick facts
- Category: Business & Work
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in English.
- Content last reviewed:
- Official source: e-Invoice schema version 1.1 and validation rules (GSTN / NIC e-invoice portal); notification 10/2023-CT; GSTN advisory on the 30-day limit, read 19 November 2026
Frequently asked questions
Can I upload this JSON directly to the IRP?
Yes, the file follows the field names of e-invoice schema 1.1. Use the bulk upload or offline tool on the e-invoice portal, or pass it to your GSP. Download a single invoice or all drafts as one array.
Why does the tool reject my document number?
The IRP allows up to 16 characters made of letters, digits, slash and hyphen, and the first character cannot be 0, a slash or a hyphen. Keep the same series for the whole financial year.
How is the GSTIN checked?
The fifteenth character of a GSTIN is a check character worked out from the first fourteen with a modulus 36 method. A typo in any position usually breaks it, so the tool catches most mistyped numbers before the IRP does.
What do I enter for an export invoice?
Pick export with or without payment of tax. The buyer GSTIN is set to URP, place of supply to 96 and PIN to 999999 in the JSON. Add shipping bill details on the portal if you have them.
Can I import invoices back into the editor?
Yes. Import IRP JSON reads a single invoice or an array of invoices in the schema and adds them to the register as drafts.
Is my invoice data sent anywhere?
No. The register stays in this browser. Use Save file to keep a backup copy on your own device.
