How do I mask my Aadhaar number in a photo or PDF?
Choose a photo or PDF of your Aadhaar or PAN card and press Find and mask. The tool reads the text on your device, covers the first 8 Aadhaar digits, the PAN and the QR code, and lets you drag boxes over anything it missed. Check the result, then download a flattened JPG, PNG or PDF.
Drag on the picture to cover anything else. Tap a box to remove it. Red dashes: found automatically. Blue dashes: drawn by you (the dashes are not saved).
Automatic detection can miss things or cover the wrong spot. Check every page before you send it.
How to use it
- Choose a sharp photo or scan of the card, or the PDF. Use Rotate 90° if the photo is sideways.
- Tick what to cover. The first 8 Aadhaar digits, PAN and the QR code are ticked already.
- Press Find and mask and wait for the boxes to appear.
- Check every page. Drag on the picture to cover anything that was missed; tap a wrong box to remove it.
- Choose JPG, PNG or PDF and download, or share straight from your phone.
How it works
Photos and scanned pages are read with Tesseract OCR running in your browser (English, plus the card language you choose). PDFs that contain real text are read directly, and the picture is read with OCR as well when no number is found in the text. Each line is checked with patterns for Indian ID formats: 12-digit Aadhaar numbers (the first 8 digits are covered, like the masked Aadhaar from UIDAI), 16-digit VIDs, PAN, GSTIN and, if you choose, phone numbers, email and UPI IDs, dates, bank details and the address block after an "Address" or "पता" label. The QR code is found with a QR reader. The covered pixels are painted over and the file is saved again as a picture (PDF pages become images), so the hidden digits are not in the file any more and the text layer is gone.
Nothing leaves your device. Files and text are read in your browser. The OCR engine and language data are downloaded from this site the first time and then run on your device. No upload, no sign-up, no watermark, no file limit except 25 MB per file.
Sources
Last checked: 29 Nov 2026
- UIDAI: What is Masked Aadhaar? (first 8 digits replaced with "xxxx-xxxx", last 4 visible)
- UIDAI: Secure QR code (holds the last 4 Aadhaar digits, name, address, gender, date of birth and photograph)
- UIDAI glossary: Aadhaar is a 12-digit number; VID is a 16-digit number
- Income Tax Department: How PAN is formed (10 characters: 5 letters, 4 digits, 1 letter)
- CBIC: FAQs on GST registration, question 2.1 (GSTIN is 15 characters)
- Reserve Bank of India: NEFT FAQ (IFSC: 11 characters, first 4 letters for the bank, 5th character 0, last 6 for the branch)
- ICAO Doc 9303 Part 5 (TD1 cards: MRZ line 1, document number in positions 6-14, check digit in position 15)
- ICAO Doc 9303 Part 4 (TD3 passports: MRZ line 2, document number in positions 1-9, check digit in position 10)
Questions
Is my Aadhaar photo uploaded?
No. The file is opened and read in your browser. Only the OCR engine and language data are downloaded from this site the first time; your document is never sent anywhere.
Which digits are hidden?
The first 8 of the 12 Aadhaar digits, so the last 4 stay visible. UIDAI describes masked Aadhaar in the same way: the first 8 digits replaced with "xxxx-xxxx" and only the last 4 shown. For 16-digit numbers and bank accounts, all but the last 4 digits are covered.
Can someone remove the black box later?
Not from the file you download. The covered area is painted over and the page is saved again as a picture, so the original digits are not inside the file. In a PDF the hidden text layer is removed too.
Why should I cover the QR code?
UIDAI says the secure QR code holds the last 4 Aadhaar digits, your name, address, gender, date of birth and photograph. Covering it stops anyone scanning those details from the copy you send.
What if it misses a number?
OCR can misread blurred, tilted or shiny photos. Drag a box over anything that is still visible before you download. A flat, sharp photo in good light works best.
Is a masked copy accepted everywhere?
Not always. Some services need the full number for verification. Masking is for the many cases where only proof of identity or address is needed.