Back to all patterns
Indian Phone Number Validation
Validation
Validates Indian mobile phone numbers with optional +91 or 0 prefix.
/^(\+91|0)?[6-9]\d{9}$/How it works
Indian mobile numbers are 10 digits starting with 6, 7, 8, or 9. They can be prefixed with +91 (E.164) or 0 (domestic trunk prefix). Numbers starting with 1-5 are not valid Indian mobile numbers.
Test Cases
Should Match
- +919876543210
- 09876543210
- 9876543210
Should NOT Match
- +911234567890
- 12345
- +919876
Quick Summary
Validates Indian mobile numbers: 10 digits starting with 6-9, with optional +91 or 0 prefix. Numbers starting with 1-5 are not valid Indian mobiles.
Key Takeaways
Key Takeaways
- Indian mobiles: 10 digits starting with 6, 7, 8, or 9
- Optional prefix: +91 (E.164) or 0 (domestic trunk)
- Numbers starting with 1-5 are not valid Indian mobile numbers
- Use libphonenumber-js for full validation including landlines
Use Cases
When to use it
- Validating phone inputs in Indian e-commerce apps
- Normalizing Indian numbers to E.164 for SMS APIs
- Filtering Indian mobile numbers from contact lists
Watch out
Common Mistakes
- Accepting numbers starting with 1-5, these are not valid Indian mobile numbers
- Not handling the 0 trunk prefix, domestic Indian numbers often start with 0
FAQ
Indian Phone Number Validation, Frequently Asked
How do I convert an Indian number to E.164?
Strip the leading 0 or +91, then prepend +91: 9876543210 → +919876543210
What are Indian landline number formats?
Indian landlines have a 2-4 digit STD code followed by 6-8 digit number. Use libphonenumber-js for full validation.