# Mask Aadhaar Numbers on Card Images: Masking API | FastKYC

> Mask the first eight digits of an Aadhaar number in a document image, returning a redacted copy that is compliant to store.

Source: https://www.fastkyc.com/apis/aadhaar-mask/

---

[Vision](/apis/vision/)

# Aadhaar Masking API

Mask the first eight digits of an Aadhaar number in a document image, returning a redacted copy that is compliant to store.

[Book a Demo](/book-demo/)

Overview

## What the Aadhaar Masking API does

Aadhaar Masking takes an image containing an Aadhaar number and returns the same image with the first eight digits obscured, leaving only the last four visible.

UIDAI guidance and data protection practice both discourage storing full Aadhaar numbers without a specific lawful basis. Masking at the point of capture means your archive never holds the full number, which is a far stronger position than deleting it later.

## Built for

[Lending & NBFC](/industries/lending/)[Banking](/industries/banking/)[Fintech & Payments](/industries/fintech-payments/)[Insurance](/industries/insurance/)[Gaming & Fantasy Sports](/industries/gaming/)[Crypto & Web3](/industries/crypto/)[Staffing & HR](/industries/staffing-hr/)[Telecom](/industries/telecom/)[Real Estate & Rentals](/industries/real-estate/)[Healthcare](/industries/healthcare/)[Logistics & Mobility](/industries/logistics/)

Use cases

## Where teams use the Aadhaar Masking API

-   Redacting Aadhaar copies before storing them
    
-   Meeting UIDAI expectations on Aadhaar handling
    
-   Sharing identity documents with third parties safely
    
-   Retrofitting masking across an existing document archive
    

## Frequently Asked Questions (FAQs)

## Related APIs

-   [KYC Document Classifier APIAutomatically identify whether an uploaded document is an Aadhaar, PAN, passport, voter ID or driving licence before extraction.](/apis/kyc-doc-classifier/)
-   [Super OCR APIClassify and extract any supported Indian KYC document in one call, covering Aadhaar, PAN, licence, passport, voter ID and utility bills.](/apis/super-ocr/)
-   [OCR Aadhaar APIExtract the Aadhaar number, name, date of birth, gender and address from a photo of an Aadhaar card, ready for identity verification.](/apis/aadhaar-ocr/)
-   [Bank Passbook OCR APIPull the account number, IFSC, branch and account holder name out of a bank passbook image as structured data, ready to verify without manual entry.](/apis/bank-passbook-ocr/)

## Start verifying with the Aadhaar Masking API

Book a walkthrough and we will show the call, the response and how it fits your onboarding flow.

-   One API key for every check
-   Verified against official Indian records
-   Built for onboarding at scale

[Book a Demo](/book-demo/)[Browse All APIs](/apis/)
