Aadhaar Number Formatter
TextFormat raw Aadhaar numbers into the standard XXXX XXXX XXXX spacing, with an option to mask the first 8 digits per UIDAI guidelines. Runs in your browser.
Reviewed by the thecalcu.com team ยท Last updated 15 July 2026
What is a Aadhaar?
An Aadhaar Number Formatter takes a raw, unformatted 12-digit Aadhaar number and applies the standard display convention, grouped into three sets of four digits, separated by spaces or hyphens. Aadhaar numbers are frequently entered or stored as a continuous 12-digit string in spreadsheets, forms, or databases, but most documents and display contexts expect the conventional grouped format for readability.
This formatter also supports generating a "masked Aadhaar", showing only the last 4 digits, as recommended by UIDAI for situations where the number needs to be displayed but full visibility isn't necessary. It's a formatting tool only, for checking whether a number is structurally valid, use the Aadhaar Validator.
Why Use an Aadhaar Number Formatter?
Aadhaar numbers stored in spreadsheets or database exports are often saved as a single unbroken string of 12 digits, which is harder to read and proofread than the conventional spaced format most people are used to seeing on physical Aadhaar cards. Manually inserting spaces at the right positions across many records is tedious and easy to get wrong.
This formatter handles that instantly, including for bulk lists where you need to reformat many numbers at once. It's also useful whenever an Aadhaar number needs to be shared or displayed but full visibility is a privacy concern, the masking option produces the UIDAI-recommended masked format in one click rather than manually redacting digits.
Who Should Use This Formatter?
- HR and compliance teams reformatting Aadhaar numbers exported from a database into the standard display format for documents.
- Developers building KYC or onboarding forms who need to display Aadhaar numbers consistently in the expected grouped format.
- Customer support and verification staff who need to share a masked Aadhaar number without exposing the full number.
- Anyone cleaning up a spreadsheet of Aadhaar numbers that were entered inconsistently, some with spaces, some without.
- Privacy-conscious individuals who want to display a partial Aadhaar number on a form or document without revealing it in full.
What Insights Does the Aadhaar Number Formatter Give You?
The formatter shows you the same Aadhaar number presented in whichever convention you need:
- Spaced format (XXXX XXXX XXXX), the standard display convention seen on physical Aadhaar cards and most official documents.
- Hyphenated format (XXXX-XXXX-XXXX), an alternative separator sometimes required by specific forms or systems.
- Unformatted (XXXXXXXXXXXX), the raw 12-digit string, useful for data entry into systems that don't want separators.
- Masked output, the UIDAI-recommended privacy-preserving format showing only the last 4 digits.
Processing multiple lines at once also surfaces any input errors immediately, flagging any line that doesn't contain exactly 12 digits so you can fix it before using the data further.
How to use this Aadhaar calculator
- Paste one or more Aadhaar numbers into the Raw Aadhaar Input field, one per line.
- Select your preferred Output Format, spaced, hyphenated, or unformatted.
- Toggle Mask first 8 digits on if you need the privacy-preserving masked version.
- Read the formatted result for each line in the output panel.
- Check for any "Error" lines, which indicate an input that didn't have exactly 12 digits, and correct the source data.
Show formula & methodology โShow less โ
Formula & Methodology
The formatter strips all non-digit characters from each line, confirms the result is exactly 12 digits, then re-inserts separators at fixed positions. Before:234123412346After (spaced):2341 2341 2346After (masked, spaced):XXXX XXXX 2346No digits are altered, only the separators and, optionally, the visibility of the first 8 digits change. For background on the underlying term, see our glossary entry on Aadhaar.
Frequently Asked Questions