DevTools Logo

Saudi VAT Number Generator

Saudi VAT Number Generator

Generate 15-digit ZATCA VAT registration numbers that start and end with 3 — synthetic test data only

Runs in your browser

For Development & Testing Purposes Only - Synthetic Mock Data

Settings

1 value

Generates one value with a valid checksum. Press ⌘/Ctrl+Enter for a fresh one.

Generated value

No value yet

Set options, then press Generate.

Generated values are valid in shape but randomized (Test Data).

Legal Disclaimer: Generated data is for software testing and validation purposes only (e.g. verifying input masks, form validation, or database seeding). It is randomly generated and not taken from any real record, but a random value can coincidentally match a real, issued number, so never use it in real applications, payments, KYC or official forms. Using it to impersonate real people or for any fraudulent activity is illegal. DevTools accepts no liability for how generated data is used.

    Examples

    Valid VAT number

    Input
    300000000000003
    Output
    Valid — 15 digits, starts and ends with 3

    It is the placeholder ZATCA uses, and it satisfies both rule digits.

    With the SA prefix

    Input
    SA300000000000003
    Output
    Valid — the SA prefix is accepted and removed before the rule check

    Your form can pass either the local number or the prefixed form without extra handling.

    Does not end with 3

    Input
    SA300000000000004
    Output
    Invalid — it must end with 3; this ends with 4

    The length and prefix pass, so only the trailing-digit rule fails.

    About this tool

    The Saudi VAT Number Generator produces one 15-digit ZATCA VAT registration number. The rule is simple: 15 digits that start with 3 and end with 3. ZATCA does not publish a check digit, so there is no checksum to compute and validation checks the shape instead.

    Input is accepted with or without the SA prefix and with separators, which helps when your form passes values in different formats. The validator reports the length, the leading digit or the trailing digit that failed, so a test can assert the exact reason rather than a generic rejection.

    These numbers are synthetic test data for QA and development, never for real tax registrations, filings, or vendor verification, and DevTools accepts no liability for how generated data is used. Everything runs locally in your browser.

    What this tool does not do

    • There is no published check digit, so a typo in the middle digits cannot be detected.
    • Validation cannot confirm that a number is registered with ZATCA or belongs to the vendor.
    • Only the 15-digit VAT number is covered; the National ID and Iqama live in a separate tool.
    • Generated values always pass the rule, so they look exactly like real numbers and must stay in test data.

    How to use this tool

    1. Choose the Saudi VAT option

      The tool is pinned to the ZATCA VAT format: 15 digits starting and ending with 3.

    2. Generate a value

      Click Generate to create one 15-digit number that satisfies both rule digits.

    3. Validate or copy

      Switch to Validate to check a pasted value with or without SA, or copy the result and download it as .txt.

    Use cases

    Vendor master data

    Fill Saudi supplier records with VAT numbers that satisfy the ZATCA shape.

    E-invoicing fixtures

    Test invoice payloads that require a 15-digit seller or buyer VAT number.

    Prefix normalization

    Confirm your parser accepts both 300… and SA300… forms.

    Saudi VAT rules

    PartRule
    Length15 digits
    First digit3
    Last digit3
    Check digitNone published by ZATCA
    Accepted inputBare 15 digits or the SA prefix, with optional separators

    Length and the two rule digits are the whole check; there is no hidden checksum.

    Common mistakes

    Mistake:Looking for a checksum

    Fix:ZATCA publishes no check digit; only the length and the two 3s can be verified.

    Mistake:Rejecting the SA prefix

    Fix:The prefix is a common presentation; strip it before the rule check.

    Mistake:Accepting a 14-digit number

    Fix:The length is fixed at 15, so a truncated value fails before the digit rules.

    Frequently asked questions

    Are these real ZATCA VAT numbers?

    No. They are synthetic fixtures for QA and development, never for real tax registrations, filings, or vendor verification; DevTools accepts no liability for how generated data is used.

    Does a Saudi VAT number have a check digit?

    No. ZATCA publishes no check digit, so the only rules are 15 digits that start with 3 and end with 3.

    Can I paste a number with the SA prefix?

    Yes. The validator accepts the bare 15 digits or the SA prefix, with optional separators, and strips the prefix before applying the rules.

    Why is a 14-digit value rejected?

    The length is fixed at 15 digits, and the length check runs before the leading and trailing 3 rules, so a truncated value fails immediately.

    Can a typo in the middle digits be detected?

    No. Without a check digit, only the length and the two rule digits can be verified, so an error in the middle of the number passes.

    References & standards