ZATCA 전자 청구서 QR 코드 생성기와 디코더 (TLV, Base64)
5개의 청구서 필드에서 ZATCA QR 코드를 만들거나, 하나씩 또는 팩으로 복호화하고 확인하기 위해 코드를 붙여넣거나 스캔하세요.
브라우저에서 실행됩니다. 파일은 기기 밖으로 나가지 않습니다. 확인하는 방법 보기
…
사용 방법
- 1모드를 선택하세요
생성, 해독 또는 팩을 선택하세요.
- 2필드에 입력
In create mode, type the five fields, or use the 15 percent button for VAT.
- 3붙여넣거나 스캔
디코드 모드에서 base64를 붙여넣거나 QR의 사진을 로드합니다.
- 4문제들을 확인하세요
경고와 표를 읽어봐
- 5일괄 작업
많은 줄을 붙여서 CSV로 결과를 다운로드하세요.
- 6QR 코드를 내보내는 방법
base64를 복사하거나 QR를 SVG 또는 PNG로 다운로드하세요.
이 도구 소개
Every Saudi e-invoice carries a QR code. In the format set by ZATCA, the code holds a series of tag-length-value records: tag 1 is the seller name, tag 2 the VAT registration number, tag 3 the time stamp, tag 4 the invoice total with VAT and tag 5 the VAT total, each stored as UTF-8 text after a tag byte and a length byte. The bytes are then encoded as base64, and that text is what the QR shows. This tool does the job in both directions: it creates the base64 and the QR image from the fields, and it decodes a pasted code or a photo of a QR, lists the records and checks them for common mistakes.
Who this is for
Developers who build or test invoice systems, accountants who review invoices from suppliers, shop owners who want to know what their point-of-sale prints, and auditors who check a batch of receipts.
Creating a code
Type the seller name, which can be Arabic, the VAT number, the date and time and the two totals. The tool writes the time of supply as an ISO 8601 date and time, such as 2026-10-28T14:30:00, and the QR updates as you type. A button fills in the VAT from the total at 15 percent. You can copy the base64 or download the QR as SVG or PNG to place it on a document.
Decoding and checking
Paste the base64 text, or load a photo or screenshot of the QR and the tool reads it in your browser. The table lists every tag, its meaning, its length in bytes and its value. The checks look for missing tags, a VAT number that is not 15 digits starting and ending with 3, a time stamp that is not a valid date, totals that are not numbers and a VAT total larger than the invoice total. Codes from phase 2 invoices also contain tags 6 to 9, the hash, the signature, the public key and ZATCA's stamp, which the tool shows in short form.
Batch mode
Paste many lines at once. A line with five comma-separated values, in the order seller, VAT number, time, total and VAT, is encoded. A line with a long base64 text is decoded. The results table shows each line's status, and you can show any code as a QR, copy all the codes or download a CSV for a spreadsheet.
Why the length is in bytes
Arabic letters take two bytes each in UTF-8, so a seller name of 10 Arabic letters has a length of 20. A common bug in home-made systems is to write the number of characters instead of bytes, which breaks the code for Arabic names. The decoder shows the byte length so you can spot it.
What this does not do
The tool cannot create the cryptographic stamp of phase 2, which only a certified e-invoicing solution connected to ZATCA can produce, and it does not tell you whether an invoice was reported to ZATCA. It checks the format only.
Worked example
Seller "Example Trading Est.", VAT number 310122393500003, time 2026-10-28T14:30:00, total 1150.00 and VAT 150.00 give a base64 code of about 120 characters. Decoding it lists the five tags with lengths of 20, 15, 19, 7 and 6 bytes.
Limits
A format helper only, not an official ZATCA validator or tax advice.
풀이 예시
1,150리알의 청구서에 5개의 단계 1 태그가 있는 코드 150리알의 VAT 디코드는 20, 15, 19, 7 및 6 바이트의 태그로
한눈에 보기
- 카테고리: 개발 및 데이터
- 브라우저에서 실행되며 가입도 업로드도 필요 없습니다.
- 입력한 정보는 기기에 머뭅니다.
- 영어로 제공됩니다.
- 콘텐츠 최종 검토일:
- 공식 출처: ZATCA, e-invoicing QR code specification (TLV, base64)
자주 묻는 질문
ZATCA QR는 어떤 형식을 사용합니까?
UTF-8에서 태그 길이 값 레코드, base64로 암호화
어떤 필드가 1단계 코드 안에 있나요?
Seller name, VAT number, time stamp, total with VAT and VAT total.
사진에서 QR 코드를 해독할 수 있나요?
그래, 이미지를 로드하면 브라우저에서 코드를 읽게 되죠.
왜 아랍어 판매자 이름이 암호를 깨는 걸까요?
길이는 바이트로 되어 있어야 하며 아랍어 글자는 UTF-8에서 각각 2바이트를 사용합니다.
2단계 코드를 만들 수 있나요?
아니 암호표는 인증된 전자화폐가 필요합니다
업로드 된 게 있나요?
아니, 암호화, 해독 그리고 이미지 읽기 모두 브라우저에서 이루어집니다.
