Aisha from Bengaluru needed to open a new digital savings account but found herself stuck when the bank asked for an Aadhaar XML file. She had her physical Aadhaar card, but the online form specifically required the digital XML version for instant eKYC verification. Generating it seemed complicated at first, but she quickly learned how simple the process was using the official UIDAI website.
This guide will walk you through the exact steps to generate your Aadhaar XML file, both through the UIDAI portal and the mAadhaar app. By the end, you’ll feel confident in securely obtaining this important digital document for various online services. Understanding these methods ensures you can complete essential tasks without delays or confusion.
Table of Contents
What Is Aadhaar XML?
Aadhaar XML is a digitally signed, secure, and shareable version of your e-Aadhaar, designed for offline verification. It is provided directly by the Unique Identification Authority of India (UIDAI), the governing body responsible for Aadhaar.
This mechanism allows you to share your Aadhaar details, such as your name, address, date of birth, and gender, in a verifiable yet privacy-conscious manner, as your Aadhaar number itself is masked. According to UIDAI (2026), this feature helps prevent misuse of your full Aadhaar number while still enabling identity verification.
If you don’t use this official method, you might end up sharing sensitive information insecurely or facing delays in services that require eKYC. You can generate this file from the official UIDAI Resident Portal or through the mAadhaar mobile application.
What Is Aadhaar XML and Why Do You Need It?
Your Aadhaar number is a unique 12-digit identification number issued by the UIDAI, serving as a primary proof of identity across India. While the physical Aadhaar card is common, its digital counterpart, the Aadhaar XML file, offers enhanced security and convenience for online transactions. This file is essentially a secure, machine-readable document containing your demographic details.
This digital file is crucial for modern services that require instant and paperless identity verification, also known as eKYC. It allows various service providers, like banks or telecom companies, to verify your identity quickly without you needing to submit physical documents. The XML format ensures that your data is structured and easily processed by digital systems.
Understanding Your Digital Aadhaar
Your digital Aadhaar, especially in XML format, is a powerful tool for identity proof in the 2026 digital space. It contains essential information like your name, address, date of birth, gender, and photo. Critically, it includes a masked Aadhaar number, meaning only the last four digits are visible, protecting your full identity.
This masking feature is a key security measure, ensuring that when you share the XML file, your complete Aadhaar number isn’t exposed. The file is also digitally signed by UIDAI, confirming its authenticity and preventing tampering. This makes it a trusted source of identity information.
Quick Context: What is eKYC?
eKYC, or Electronic Know Your Customer, is a paperless process where your identity is verified digitally. Aadhaar XML is a primary method for offline eKYC, allowing service providers to confirm your details securely and instantly.
Why You Might Need It
You’ll find many situations where an Aadhaar XML file becomes incredibly useful, especially with the push for digital services. It simplifies processes that traditionally required physical presence and paperwork. This file acts as a secure bridge between your identity and the service you’re trying to open.
- Opening Bank Accounts: Many banks now offer fully digital account opening, where you can submit your Aadhaar XML for instant eKYC.
- Applying for Loans: Fintech lenders and traditional banks often request Aadhaar XML for quick verification during loan applications.
- Government Services: Certain online government portals may require this file for identity validation when accessing services or benefits.
- Digital Payment Onboarding: When signing up for certain digital payment platforms or services, you might need to provide your Aadhaar XML.
- Telecom Services: For new mobile connections or changes to existing plans, some providers accept Aadhaar XML for faster processing.
Benefits of Aadhaar XML
Using Aadhaar XML comes with several advantages, making it a preferred method for identity verification. These benefits primarily revolve around security, convenience, and accuracy, which are vital today. It’s designed to make your life easier while keeping your data safe.
The file’s digital signature from UIDAI ensures that the information hasn’t been altered since it was generated. This provides a high level of trust for both you and the entity verifying your identity. You don’t have to worry about the authenticity of the document.
Pro Tip: Secure Sharing
Always share your Aadhaar XML file with a strong, unique share code. This acts as a password for the file, adding an extra layer of protection, even if the file itself falls into the wrong hands.
What You Need Before You Start
Before you begin the process of generating your Aadhaar XML file, it’s important to have a few things ready. Being prepared will ensure a smooth and quick experience, preventing any unnecessary delays. This preparation step is crucial for both the UIDAI website and the mAadhaar app methods.
These requirements are in place to protect your identity and ensure that only you can generate your official Aadhaar documents. Without them, the system wouldn’t be able to verify that you are indeed the legitimate owner of the Aadhaar number. Always double-check these points before you start.
Your Aadhaar Number Ready
You’ll need your 12-digit Aadhaar number, or your 16-digit Virtual ID (VID), handy. This is the primary identifier the system uses to fetch your details from the UIDAI database. Make sure you have it written down or memorised correctly.
If you don’t have your Aadhaar number readily available, you can retrieve it from the UIDAI website using your enrolment ID or by providing other demographic details. Knowing your number beforehand saves you an extra step in the process.
open to Your Registered Mobile
This is perhaps the most critical requirement: you must have open to the mobile number linked to your Aadhaar. UIDAI sends a One-Time Password (OTP) to this number to verify your identity. Without this OTP, you cannot proceed with generating the XML file.
The OTP system is a fundamental security layer, ensuring that unauthorised individuals cannot open your Aadhaar data. If your mobile number is not updated, you’ll need to visit an Aadhaar Enrolment Centre to update it first, as per UIDAI guidelines (2026). This update process can take a few days to reflect.
Common Confusion: Aadhaar XML Generation Without Registered Mobile
You can generate your Aadhaar XML even if you’ve lost open to your registered mobile number.
open to your registered mobile number for OTP verification is mandatory for generating Aadhaar XML from both the UIDAI website and the mAadhaar app.
Stable Internet Connection
While it might seem obvious, a stable internet connection is essential for a smooth process. You’ll be interacting with a government portal or downloading an app, and any interruptions could lead to errors or having to restart the process. A reliable connection ensures that your request goes through without issues.
A poor connection could also cause delays in receiving the OTP or in the final download of your XML file. It’s best to use a strong Wi-Fi connection or a mobile data connection with good signal strength. This ensures the entire process, from OTP generation to file download, completes smoothly.
| Feature | UIDAI Website | mAadhaar App |
| Accessibility | Desktop/Laptop browser, Mobile browser | Smartphone (Android/iOS) |
| Internet Requirement | Stable connection | Stable connection |
| Registered Mobile | Mandatory for OTP | Mandatory for OTP and registration |
| Storage | Downloads to device | Stored within app, can be shared |
| Ease of Use | Simple steps, direct download | User-friendly interface, mobile-optimised |
Generating Aadhaar XML Using the UIDAI Website
The UIDAI website is the official and most direct way to generate your Aadhaar XML file. This method is simple and can be completed from any device with internet open. It’s a reliable option if you prefer using a computer or don’t have the mAadhaar app installed.
Following these steps precisely will ensure you successfully download your secure Aadhaar XML file. The website guides you clearly through each stage, making the process user-friendly. Always ensure you are on the official UIDAI portal to protect your data.
Visiting the Official UIDAI Portal
Step 1: Open your web browser and go to the official UIDAI Resident Portal at resident.uidai.gov.in. You should always verify the URL to ensure you’re not on a phishing site. Look for the secure padlock icon in your browser’s address bar.
After reaching the homepage, you’ll see various options related to Aadhaar services. It’s important to manage to the correct section for generating your XML. Take a moment to familiarise yourself with the layout.
Locating the Aadhaar Download Section
Step 2: On the UIDAI Resident Portal homepage, look for the “Aadhaar Services” section. Within this section, find and click on the option labelled “Aadhaar Paperless Offline eKYC”. This is the specific service designed for generating your XML file.
Clicking this option will take you to a dedicated page where the XML generation process begins. You’ll notice that the page is clearly focused on security and privacy, highlighting the benefits of this offline eKYC method.
Entering Your Aadhaar Details
Step 3: On the “Aadhaar Paperless Offline eKYC” page, you will be prompted to enter your 12-digit Aadhaar number or your 16-digit Virtual ID (VID). Carefully type in your chosen identifier. Below this, you’ll need to complete a security captcha to prove you’re not a robot.
Once you’ve entered both your Aadhaar/VID and the captcha, double-check them for accuracy. Errors here will prevent the system from sending the OTP, requiring you to re-enter the details.
Receiving the OTP
Step 4: After entering your details and the captcha, click the “Send OTP” button. A One-Time Password will then be sent to the mobile number registered with your Aadhaar. This OTP is valid for a limited time, usually as per the latest official guidelines, so be ready to enter it quickly.
You’ll see a field appear on the screen where you need to enter this 6-digit OTP. If you don’t receive the OTP within a minute or two, check your phone’s network signal or try the “Resend OTP” option, if available.
Creating a Share Code
Step 5: Once you’ve successfully entered the OTP, the system will ask you to create a 4-digit “Share Code”. This code acts as a password for your downloaded Aadhaar XML file. It’s crucial for security, as anyone trying to open the XML file will need this code.
Choose a memorable but strong 4-digit code. Avoid simple codes like ‘1234’ or your birth year. You’ll need to enter this code twice to confirm it.
Downloading Your XML File
Step 6: After setting your share code, click the “Download” button. Your Aadhaar XML file, usually named offlineaadhaar.zip, will begin downloading to your device. This file is encrypted and password-protected with the share code you created.
You’ll typically find this downloaded file in your browser’s default “Downloads” folder. A confirmation message might appear on the screen, indicating that the download was successful.
Understanding the Downloaded File
The file you’ve downloaded is in a .zip format, which means it’s a compressed folder containing the actual XML file. To open the XML, you’ll need to “extract” or “unzip” this folder. Most operating systems have built-in tools for this; right-click the .zip file and choose “Extract All” or “Unzip”.
After extraction, you’ll find an XML file inside, along with a JPEG image of your photo. Remember, to open and view the contents of the XML file, you will need the 4-digit share code you created.
Pro Tip: Share Code Reminder
Write down your 4-digit share code in a secure place or use a password manager. You’ll need it every time you or a service provider tries to open the downloaded Aadhaar XML file.
Generating Aadhaar XML Using the mAadhaar App
The mAadhaar app provides a convenient mobile-first approach to managing your Aadhaar services, including generating the XML file. It’s ideal if you prefer using your smartphone for such tasks. The app offers a user-friendly interface and keeps your Aadhaar profile readily accessible.
This method is particularly useful when you need to quickly generate and share your Aadhaar XML while on the go. Ensure you download the official mAadhaar app from your device’s app store to maintain security.
Installing the mAadhaar Application
Step 1: Go to your smartphone’s official app store – either the Google Play Store for Android devices or the Apple App Store for iOS devices. Search for “mAadhaar” and ensure you download the official app published by UIDAI. Install the app on your phone.
Once installed, open the app. You may need to grant certain permissions, like open to storage, for the app to function correctly. This is standard for most mobile applications.
Registering Your Aadhaar Profile
Step 2: Upon opening the mAadhaar app for the first time, you’ll need to register your Aadhaar profile. This involves entering your Aadhaar number and then verifying it with an OTP sent to your registered mobile number. This step securely links your Aadhaar to the app on your device.
After successful registration, your Aadhaar profile will be displayed within the app. You can register multiple Aadhaar profiles if you manage Aadhaar for family members, but each requires its own OTP verification.
Navigating to the XML Section
Step 3: Once your Aadhaar profile is registered and you’re logged into the app, look for the “Offline eKYC” or “Download Offline eKYC” option. This is usually found under the “My Aadhaar” section or within a menu of services. The exact wording might vary slightly with app updates.
Tapping this option will take you to the screen dedicated to generating your Aadhaar XML. The app is designed to make these important functions easy to locate and open.
Generating the XML File
Step 4: On the “Offline eKYC” screen, you’ll see an option to generate your XML file. The app will usually prompt you to enter a 4-digit share code directly at this stage. This code will protect the XML file that’s generated.
The process within the app is streamlined. You won’t need to re-enter your Aadhaar number or a captcha since you’re already logged into your registered profile. The app leverages your existing secure login.
Setting Your Share Code
Step 5: Create a 4-digit share code when prompted by the app. Like with the website method, this code is essential for securing your Aadhaar XML file. Choose a unique code that you can easily remember but is difficult for others to guess.
You’ll need to confirm this code by entering it twice. This ensures there are no typos and that you’ve correctly set your intended password for the XML file.
Sharing the XML File
Step 6: After generating the XML file and setting the share code, the mAadhaar app will provide options to share the file. You can typically share it via email, WhatsApp, or other messaging apps installed on your phone. This makes it very convenient to send the file directly to a service provider.
The app does not permanently store the generated XML file on your phone’s general storage for security reasons. Instead, it allows for immediate sharing. If you need it again later, you’ll regenerate it.
Common Confusion: mAadhaar App XML Storage
The mAadhaar app permanently saves your generated XML file on your phone for easy open.
For security, the app typically generates the XML on demand and provides options to share it immediately, rather than storing it indefinitely in your phone’s accessible storage.
Understanding Your Aadhaar XML File
Once you have successfully generated your Aadhaar XML file, it’s important to understand what it contains and how it functions. This knowledge helps you appreciate its security features and use it responsibly. The XML file is more than a digital document; it’s a secure identity package.
Knowing these details will also help you explain to service providers what they are receiving. It reinforces the trust and security built into the Aadhaar system, ensuring your data is handled appropriately. This understanding is key to using your digital Aadhaar effectively.
What the XML File Contains
The Aadhaar XML file is carefully designed to provide necessary identity information while protecting sensitive data. It does not contain your biometric information (fingerprints, iris scans) or your full 12-digit Aadhaar number. This design choice prioritises your privacy.
- Masked Aadhaar Number: Only the last four digits of your Aadhaar number are visible.
- Name: Your full name as registered with Aadhaar.
- Address: Your complete residential address.
- Date of Birth: Your full date of birth.
- Gender: Your registered gender.
- Photo: A passport-sized photograph of you.
- Digital Signature: A cryptographic signature from UIDAI confirming the file’s authenticity.
The Importance of the Share Code
The 4-digit share code you create is vital for the security of your Aadhaar XML file. Think of it as the key to a locked box; without this key, the contents of the box cannot be accessed. This code encrypts the XML file, making it unreadable to anyone who doesn’t possess the correct code.
When you share your Aadhaar XML file with a service provider, you must also provide them with this share code. They will use it to decrypt and view your details. This two-factor approach ensures that even if the file is intercepted, your information remains protected.
Quick Context: Who needs the Share Code?
Any entity or software that needs to read the contents of your Aadhaar XML file will require the 4-digit share code you created. This includes banks, digital payment services, and government portals.
How to Open the File
While you can technically open the .zip file and extract the XML, most users won’t directly “open” the XML file themselves to read it. The XML format is primarily for machine readability, not human readability in a simple sense. It will appear as structured text data if opened in a text editor.
Instead, the primary purpose of the share code is for service providers to process the file. They use specialised software that takes both the XML file and the share code to verify your identity. If you do want to view the raw XML, you can use any basic text editor on your computer after extracting it from the .zip archive and providing the share code.
Keeping Your Aadhaar Data Safe
Generating your Aadhaar XML is a powerful step towards digital convenience, but it also comes with the responsibility of safeguarding your personal information. Protecting your Aadhaar data is paramount to preventing identity theft and misuse. Always be vigilant about how and where you share this sensitive document.
The digital nature of the XML file makes it easy to share, but this ease also means you must be extra careful. Following best practices for digital security will ensure your Aadhaar information remains secure. Your proactive measures are the first line of defence.
Protecting Your Share Code
Your 4-digit share code is the password to your Aadhaar XML file, so treating it like any other critical password is essential. Never share this code openly or with untrusted individuals or websites. It should only be provided to legitimate service providers who specifically request it for verification.
Avoid using easily guessable codes like your birth year, part of your phone number, or ‘0000’. If you write it down, keep it in a secure location, separate from the XML file itself. Changing your share code periodically, if possible, adds another layer of security.
Storing Your XML Securely
After generating and using your Aadhaar XML file, consider how you store it. It’s often best to delete the file from your device once its purpose is served, especially if you’ve sent it to a service provider. If you need it again, you can always regenerate it from the UIDAI portal or mAadhaar app.
If you must keep a copy, store it in an encrypted folder on your computer or a secure cloud storage service with strong password protection. Avoid leaving copies of your Aadhaar XML on shared computers or public devices. Regularly review your download folders for old copies.
Pro Tip: Delete After Use
For maximum security, delete your Aadhaar XML file from your device immediately after you’ve used it for verification. You can always generate a fresh one whenever you need it again.
Always Use Official Sources
This rule cannot be overstated: always use the official UIDAI website (resident.uidai.gov.in) or the official mAadhaar app (downloaded from Google Play Store or Apple App Store) to generate your Aadhaar XML. Never trust third-party websites or unofficial apps that claim to offer Aadhaar services. These can be phishing attempts designed to steal your data.
Verify the website’s URL in your browser and check for the padlock icon indicating a secure connection. For apps, always confirm the publisher is “Unique Identification Authority of India”. Staying vigilant about official sources is your strongest defence against fraud and data breaches.
Conclusion
Generating your Aadhaar XML file using the UIDAI website or the mAadhaar app is a simple yet powerful way to manage your digital identity securely. Taking these steps ensures you have a verifiable document ready for various online services, from banking to government applications. By consistently using official portals and protecting your share code, you maintain control over your personal data.
