← DocRedact.in

Mask Aadhaar online

Mask an Aadhaar photo or PDF you already have. Your browser finds the number and selects the first 8 digits to hide, leaving the last 4 visible. Nothing uploaded. Free and open source.

Choose, review, download

  1. Choose a JPG, PNG, WebP or PDF, or take a photo on your phone.
  2. Review every page. The tinted selections show the regions that will become solid black. Uncheck unwanted detections, and use manual mode to cover anything missed.
  3. Download a new image-only PDF, then open it and check it before sharing.

Detected faces, probable UIDAI QR codes, PAN numbers and passport MRZ regions are also selected by default. Check what the recipient needs before hiding your photo or other identity fields. Detection can miss content or select the wrong region.

What is masked or redacted Aadhaar?

Masking means hiding part of the number. A masked Aadhaar shows only the last 4 of its 12 digits. Redaction removes selected content from the copy you share; it does not change the original file.

DocRedact uses solid black rectangles and rebuilds each page as an image-only PDF. The exported file has no original text layer or removable mask shapes. It is not searchable and may be larger than your input. Other personal details remain visible unless you mask them.

Need to download Aadhaar from UIDAI?

DocRedact works with a file you already have. It does not retrieve your Aadhaar, connect to the UIDAI database, bypass OTP verification, or issue an official masked Aadhaar. For an official download, use UIDAI's myAadhaar portal and follow its current requirements. Ask the recipient whether a locally redacted copy is acceptable.

Password-protected PDFs need to be opened and saved as an unprotected copy on your device first. See the PDF guide.

Private processing you can inspect

OCR, face detection, QR decoding and PDF export run locally. The first redaction downloads the required software and model assets from this site; no request carries your document. Offline use depends on those assets being loaded and available in the browser cache, so loading the page alone is not enough.

Open DevTools → Network to inspect requests, or read the source and privacy tests on GitHub. Cloudflare Web Analytics makes separate requests for page usage statistics. Contact and waitlist forms send only the fields you submit. See the privacy policy and how it works.

Frequently asked questions

Is my Aadhaar uploaded to this site?
No. Your browser reads and masks your document locally. Software assets and optional Cloudflare Web Analytics requests use the network, but they do not carry your document. You can inspect requests in DevTools → Network and read the source on GitHub.
What does masked or redacted Aadhaar mean?
Masked Aadhaar hides the first 8 digits of the 12-digit number, leaving the last 4 visible. DocRedact creates a locally redacted copy of a file you already have, not an official UIDAI-issued download. Check which fields your recipient requires before sharing.
What does this tool mask?
Detected Aadhaar numbers have their first 8 digits selected. Detected PAN numbers, passport MRZ regions, probable UIDAI QR codes and faces are also selected by default. Tinted selections show the exported mask boundaries. Uncheck unwanted detections and use manual mode to cover missed content. Other QR codes are masked only if you select them.
Can I use this on my phone?
Yes. Take a photo, choose an existing file, or try the synthetic sample. Processing runs in your mobile browser. Use a clear JPG or PNG photo and review the result before downloading.
What file types and limits apply?
JPG, PNG, WebP and PDF up to 20 MB, with up to 10 PDF pages. There is also a 40-million-pixel budget per page and an 80-million-pixel budget for the document; PDF budgets apply after rasterization. Large files may need resizing or splitting. Password-protected PDFs must first be saved as an unprotected copy on your device.
Can it download masked Aadhaar without OTP?
No. DocRedact does not retrieve Aadhaar or bypass UIDAI authentication. It masks a document you already have. For an official masked Aadhaar download, use the UIDAI myAadhaar portal and follow its requirements.
Does it access the UIDAI database or decode QR codes?
It does not access the UIDAI database. QR codes are decoded locally to help classify them, and detected faces are located locally without identifying the person. QR contents, OCR text and document pixels are not sent to a server. QR codes can contain personal information, so review them as well as the printed number.
Can the masked content be recovered from the output?
The export paints solid rectangles onto page images and creates a new image-only PDF. It does not retain the original text layer or removable mask shapes. This protects the regions actually covered, not content the detector missed. Open the downloaded file and verify every page before sharing. File size varies and text search is unavailable.
Why is this free?
The consumer tool is free and open source. A browser-side integration for businesses is planned, but is not available yet. The API waitlist is for updates and discussions about that future offering.