PAN Number Formatter
TextFormat a raw PAN number into the standard uppercase AAAAA9999A pattern, with an optional spaced display. Strips invalid characters, runs in your browser.
What is a PAN?
A PAN Number Formatter normalises a raw PAN (Permanent Account Number) entry into the standard uppercase, unspaced AAAAA9999A convention โ five letters, four digits, one letter. PAN numbers are frequently typed or pasted in inconsistent case, or with stray spaces, especially when copied from forms, emails, or spreadsheets where formatting wasn't enforced.
This formatter cleans that up instantly, converting to uppercase and stripping invalid whitespace, while flagging any input that doesn't match the expected 10-character structure. For checking whether a PAN's structure is genuinely valid (not just formatted), use the PAN Validator.
How to use this PAN calculator
- Paste one or more PAN numbers into the Raw PAN Input field, one per line.
- Select your preferred Output Format โ standard compact or spaced for readability.
- Read the formatted, uppercase result for each line in the output panel.
- Check for any "Error" lines, which indicate an entry that isn't 10 characters or doesn't match the AAAAA9999A pattern, and correct the source data.
Formula & Methodology
The formatter strips whitespace and converts the input to uppercase, then checks it against the standard PAN pattern before formatting. Before:abcde1234fAfter (standard):ABCDE1234FAfter (spaced):ABCDE 1234 FThe pattern checked is five letters (AโZ), followed by four digits (0โ9), followed by one letter (AโZ) โ any input not matching this exact structure after cleanup is flagged as an error rather than guessed at. For background on the underlying term, see our glossary entry on PAN.
Frequently Asked Questions