LiveLive
SPX7759.17001.8300%IXIC27082.32003.4200%FTSE10739.01000.3900%GOLD4344.0000-0.1900%SILVER65.9600-0.4700%PLATINUM1801.0000-0.3300%PALLADIUM1326.0000-0.4500%BRENT95.9300-9.3500%DJI51986.5400-0.8300%WTI92.0900-10.0900%NDX30409.60004.4000%NATGAS2.8500-1.5900%BTC85832.00005.5800%RUT2874.2900-0.6200%VIX15.0200-12.6700%ETH2739.82004.1500%DAX25575.01000.5300%BNB795.26003.8400%XRP1.50006.5100%CAC408138.94000.6000%NKY65018.95002.4000%DOGE0.100011.8300%HSI25042.71000.5000%ADA0.24005.6700%NIFTY23414.30001.2800%SOL117.20006.4300%AAPL338.57001.6500%SENSEX74858.99001.1600%MSFT498.5900-1.3500%TASI10681.8200-0.6300%IBOV187016.47000.8200%GOOGL356.23001.9600%TSLA373.74004.1100%MERVAL3005793.5000-2.5500%TSX35917.67000.6000%USD/PKR276.9400-0.0200%ASX2008731.9000-0.2100%EUR/PKR317.6900-0.7000%STI5675.2300-0.7500%GBP/PKR370.3400-1.2200%SAR/PKR73.7300-0.0700%FBMKLCI1666.9400-0.7300%AED/PKR75.4000-0.0800%SET1598.03000.8800%KOSPI7007.72004.8400%USD/EUR0.87000.6800%TWSE47718.84004.8500%GASOLINE3.1800-8.7700%HEATOIL4.6800-10.8700%COPPER6.76005.1200%WHEAT725.5000-0.7200%CORN541.50001.3600%SOYBEANS1327.00000.4900%COFFEE274.5000-7.2200%COCOA5307.0000-11.2400%SUGAR18.38002.2800%COTTON83.53003.8400%TRX0.34000.2900%AVAX10.9700-0.8700%LINK12.80002.6800%DOT1.18001.6300%LTC61.69004.9400%SHIB0.00007.3700%TON1.44003.2500%XLM0.21005.8100%HBAR0.09004.8000%SUI1.000011.5900%APT0.7500-0.1900%UNI8.81000.4600%PEPE0.000023.1800%NEAR3.9500-3.0400%ARB0.22006.4900%OP0.1200-6.1600%MATIC0.13000.0000%INJ7.95001.2300%FIL0.96001.0800%ICP2.92000.3000%STX0.00000.0000%ETC8.85003.9100%ALGO0.1100-1.7800%VET0.01003.7400%THETA0.22001.6500%FTM0.040024.8900%SAND0.04002.4100%MANA0.08002.3400%AXS1.05004.2000%GALA0.00008.5900%CRV0.3500-0.0800%MKR1658.23004.1500%AMZN258.30001.8800%NVDA227.47007.8200%META740.840011.3000%NFLX73.3300-8.7000%AMD607.830023.1900%AVGO360.77004.6600%JPM351.80000.4800%V368.2000-1.8900%MA565.2500-1.6000%XOM158.6500-3.9000%CVX204.7400-3.5000%KO87.6900-1.8600%PEP129.5700-4.9700%DIS104.1400-4.1000%BA200.4700-4.6600%BABA115.85006.0600%JD27.2300-0.1100%PDD79.40000.0300%NIO3.6600-0.2700%SPY772.89001.5800%QQQ739.64004.3000%DIA519.1200-1.0200%IWM285.4600-0.8500%GLD398.27001.3800%SLV59.47004.6200%TLT81.62000.8500%HYG78.69000.2000%LQD104.95000.6300%XLF55.9100-1.9600%XLK194.06005.3100%XLE62.7600-2.7500%XLV169.06000.7800%SMH593.62009.6300%ARKK90.70007.0600%EEM68.70004.1100%IBIT48.61008.6500%QAR/PKR76.07000.0500%INR/PKR2.8900-0.5300%JPY/PKR1.7600-2.6500%CAD/PKR197.4900-1.0900%AUD/PKR197.2800-0.7400%NZD/PKR158.3900-1.6900%MYR/PKR67.8900-0.2800%THB/PKR8.3300-0.7800%EUR/USD1.1500-0.6800%GBP/USD1.3400-0.9800%USD/JPY157.47002.0000%USD/CHF0.82000.5100%AUD/USD0.7100-0.1800%USD/CAD1.40000.9400%NZD/USD0.5700-1.0200%USD/INR95.8100-0.0300%USD/CNY6.6800-0.3700%USD/HKD7.84000.0200%USD/SGD1.28000.4700%USD/KRW1374.20002.1200%USD/TRY48.80000.3600%USD/ZAR16.25000.0300%USD/MXN17.23000.6100%USD/BRL5.1100-0.5900%USD/RUB83.4800-1.1900%USD/NGN1321.6800-0.2000%USD/EGP51.86000.3000%USD/KES129.39000.7300%USD/BDT122.70002.8400%USD/LKR330.68003.5200%USD/IDR17825.00001.0700%USD/THB33.23000.0300%USD/MYR4.08000.8100%USD/PHP62.6900-0.0700%USD/VND26020.00000.1400%USD/ILS3.0100-1.3600%USD/SAR3.76003.2200%USD/AED3.67000.0400%USD/QAR3.6400-0.1400%USD/KWD0.3100-0.3200%USD/BHD0.38000.0000%USD/OMR0.39000.4700%SPX7759.17001.8300%IXIC27082.32003.4200%FTSE10739.01000.3900%GOLD4344.0000-0.1900%SILVER65.9600-0.4700%PLATINUM1801.0000-0.3300%PALLADIUM1326.0000-0.4500%BRENT95.9300-9.3500%DJI51986.5400-0.8300%WTI92.0900-10.0900%NDX30409.60004.4000%NATGAS2.8500-1.5900%BTC85832.00005.5800%RUT2874.2900-0.6200%VIX15.0200-12.6700%ETH2739.82004.1500%DAX25575.01000.5300%BNB795.26003.8400%XRP1.50006.5100%CAC408138.94000.6000%NKY65018.95002.4000%DOGE0.100011.8300%HSI25042.71000.5000%ADA0.24005.6700%NIFTY23414.30001.2800%SOL117.20006.4300%AAPL338.57001.6500%SENSEX74858.99001.1600%MSFT498.5900-1.3500%TASI10681.8200-0.6300%IBOV187016.47000.8200%GOOGL356.23001.9600%TSLA373.74004.1100%MERVAL3005793.5000-2.5500%TSX35917.67000.6000%USD/PKR276.9400-0.0200%ASX2008731.9000-0.2100%EUR/PKR317.6900-0.7000%STI5675.2300-0.7500%GBP/PKR370.3400-1.2200%SAR/PKR73.7300-0.0700%FBMKLCI1666.9400-0.7300%AED/PKR75.4000-0.0800%SET1598.03000.8800%KOSPI7007.72004.8400%USD/EUR0.87000.6800%TWSE47718.84004.8500%GASOLINE3.1800-8.7700%HEATOIL4.6800-10.8700%COPPER6.76005.1200%WHEAT725.5000-0.7200%CORN541.50001.3600%SOYBEANS1327.00000.4900%COFFEE274.5000-7.2200%COCOA5307.0000-11.2400%SUGAR18.38002.2800%COTTON83.53003.8400%TRX0.34000.2900%AVAX10.9700-0.8700%LINK12.80002.6800%DOT1.18001.6300%LTC61.69004.9400%SHIB0.00007.3700%TON1.44003.2500%XLM0.21005.8100%HBAR0.09004.8000%SUI1.000011.5900%APT0.7500-0.1900%UNI8.81000.4600%PEPE0.000023.1800%NEAR3.9500-3.0400%ARB0.22006.4900%OP0.1200-6.1600%MATIC0.13000.0000%INJ7.95001.2300%FIL0.96001.0800%ICP2.92000.3000%STX0.00000.0000%ETC8.85003.9100%ALGO0.1100-1.7800%VET0.01003.7400%THETA0.22001.6500%FTM0.040024.8900%SAND0.04002.4100%MANA0.08002.3400%AXS1.05004.2000%GALA0.00008.5900%CRV0.3500-0.0800%MKR1658.23004.1500%AMZN258.30001.8800%NVDA227.47007.8200%META740.840011.3000%NFLX73.3300-8.7000%AMD607.830023.1900%AVGO360.77004.6600%JPM351.80000.4800%V368.2000-1.8900%MA565.2500-1.6000%XOM158.6500-3.9000%CVX204.7400-3.5000%KO87.6900-1.8600%PEP129.5700-4.9700%DIS104.1400-4.1000%BA200.4700-4.6600%BABA115.85006.0600%JD27.2300-0.1100%PDD79.40000.0300%NIO3.6600-0.2700%SPY772.89001.5800%QQQ739.64004.3000%DIA519.1200-1.0200%IWM285.4600-0.8500%GLD398.27001.3800%SLV59.47004.6200%TLT81.62000.8500%HYG78.69000.2000%LQD104.95000.6300%XLF55.9100-1.9600%XLK194.06005.3100%XLE62.7600-2.7500%XLV169.06000.7800%SMH593.62009.6300%ARKK90.70007.0600%EEM68.70004.1100%IBIT48.61008.6500%QAR/PKR76.07000.0500%INR/PKR2.8900-0.5300%JPY/PKR1.7600-2.6500%CAD/PKR197.4900-1.0900%AUD/PKR197.2800-0.7400%NZD/PKR158.3900-1.6900%MYR/PKR67.8900-0.2800%THB/PKR8.3300-0.7800%EUR/USD1.1500-0.6800%GBP/USD1.3400-0.9800%USD/JPY157.47002.0000%USD/CHF0.82000.5100%AUD/USD0.7100-0.1800%USD/CAD1.40000.9400%NZD/USD0.5700-1.0200%USD/INR95.8100-0.0300%USD/CNY6.6800-0.3700%USD/HKD7.84000.0200%USD/SGD1.28000.4700%USD/KRW1374.20002.1200%USD/TRY48.80000.3600%USD/ZAR16.25000.0300%USD/MXN17.23000.6100%USD/BRL5.1100-0.5900%USD/RUB83.4800-1.1900%USD/NGN1321.6800-0.2000%USD/EGP51.86000.3000%USD/KES129.39000.7300%USD/BDT122.70002.8400%USD/LKR330.68003.5200%USD/IDR17825.00001.0700%USD/THB33.23000.0300%USD/MYR4.08000.8100%USD/PHP62.6900-0.0700%USD/VND26020.00000.1400%USD/ILS3.0100-1.3600%USD/SAR3.76003.2200%USD/AED3.67000.0400%USD/QAR3.6400-0.1400%USD/KWD0.3100-0.3200%USD/BHD0.38000.0000%USD/OMR0.39000.4700%
GuruAlpha

CNIC Validator

Validate Pakistani CNIC numbers.

About CNIC Validator

The GuruAlpha CNIC Validator checks whether a Pakistani Computerised National Identity Card (CNIC) number follows the correct format and passes checksum validation. Enter a 13-digit CNIC number and the tool validates the district code, format structure and check digit. Essential for form validation, data entry and identity verification.

The CNIC is the primary identity document for Pakistani citizens, issued by NADRA (National Database and Registration Authority). Every Pakistani citizen aged 18 and above has a CNIC. The 13-digit number encodes information: the first 5 digits identify the issuing district, the next 7 are a unique serial number, and the last digit is a check digit for validation.

The validator checks three levels of CNIC validity. Format validation ensures the number has exactly 13 digits in the correct structure (XXXXX-XXXXXXX-X). District code validation verifies that the first 5 digits correspond to a valid NADRA district code. Check digit validation uses the Luhn algorithm to verify the final digit, catching common data entry errors.

The tool also displays the issuing district information when the district code is valid. This is useful for demographic analysis, logistics planning and understanding regional distribution. The district database is updated regularly with NADRA's official code listings.

For developers building forms that accept CNIC input, the validator provides a JavaScript regex pattern and validation function that can be copied and integrated into form validation logic. The regex pattern ensures that only valid CNIC formats are accepted, reducing invalid data entry.

Key Features of CNIC Validator

  • Validate CNIC format (13 digits, correct structure)
  • District code identification from first 5 digits
  • Check digit (Luhn algorithm) validation
  • Issuing district information display
  • JavaScript regex pattern for form validation
  • Batch validation for multiple CNICs
  • Up-to-date NADRA district codes
  • Works on all devices

How to Use CNIC Validator

  1. Open the CNIC Validator on GuruAlpha.
  2. Enter a 13-digit CNIC number.
  3. The tool validates format, district and check digit.
  4. View the issuing district information.
  5. Copy the regex pattern for form validation.
  6. Use batch mode to validate multiple CNICs.

Tips for Using CNIC Validator

  • The format XXXXX-XXXXXXX-X is the standard CNIC structure.
  • The check digit catches common data entry errors like transposed numbers.
  • Use the regex pattern in HTML5 input validation for real-time feedback.
  • Batch mode validates multiple CNICs for data cleaning workflows.
  • The district information helps with demographic analysis.

Frequently Asked Questions About CNIC Validator

What is a CNIC?

A Computerised National Identity Card is the primary identity document for Pakistani citizens, issued by NADRA. It contains a unique 13-digit number.

How does the check digit work?

The 13th digit is calculated using the Luhn algorithm on the first 12 digits. It catches single-digit errors and adjacent transposition errors.

What do the first 5 digits mean?

The first 5 digits identify the NADRA district office that issued the CNIC. Different ranges correspond to different districts and regions.

Can I use this for form validation?

Yes. The tool provides a JavaScript regex pattern and validation function ready for integration into web forms.

What is GuruAlpha?

GuruAlpha is a comprehensive digital platform offering live financial markets, free calculators, online tools, Islamic content, SIM packages, sports updates and celebrity profiles for Pakistan, Gulf countries and worldwide audiences.

Is GuruAlpha free to use?

Yes, GuruAlpha is completely free. All calculators, tools, market data, prayer times, Islamic resources and content are available without any subscription or sign-up.

Does GuruAlpha provide live market data?

Yes, GuruAlpha provides live market data including USD/PKR exchange rates, gold prices, cryptocurrency prices, stock market indices and commodity prices sourced from reliable financial data providers.

What calculators are available on GuruAlpha?

GuruAlpha offers over 1,200 calculators including Pakistan income tax, salary tax, PTA mobile tax, electricity bill, gold price, currency converter, Zakat calculator, property tax and many more.

Does GuruAlpha have Islamic prayer times?

Yes, GuruAlpha provides accurate prayer times for over 100 cities worldwide including Fajr, Dhuhr, Asr, Maghrib and Isha times. We also offer Qibla direction, Islamic calendar and Zakat calculator.

CNIC Validator — Free Online Tool | GuruAlpha