Frequently Asked Questions
Use the E.164 format, which includes a plus sign (+), the country code (39 for Italy), and the national number. For example, a national number like 02 12345678 becomes +39 2 12345678 in E.164. Remember to retain the leading zero for landlines after the country code.
Italian landline numbers follow the format 0xx[x] + XXXXXXX, where 0 is the trunk prefix, xx[x] is a 2-4 digit area code, and XXXXXXX is a 6-8 digit subscriber number. The area code is mandatory, even for local calls.
While regular expressions like /^0\d{2,3}\d{6,8}$/ for landlines and /^3[1-9]\d{7,8}$/ for mobiles can be used for basic validation, they are not foolproof due to number portability. Always validate against AGCOM's official database for definitive results.
Number portability allows users to switch providers while keeping their number. This means the prefix or area code no longer definitively identifies the carrier, making simple regex validation unreliable. Checking against AGCOM's database becomes essential for accurate validation.
AGCOM (Autorit?? per le Garanzie nelle Comunicazioni) regulates Italy's telecommunications sector. It focuses on enhancing service quality, protecting consumers, streamlining digital integration, and improving number portability, all in line with EU directives.
Italian mobile numbers begin with a 3, followed by a 1-2 digit carrier identifier and a 7-8 digit subscriber number (3XY XXXXXXX). For instance, 339 1234567 is a valid mobile number format.
The standard European emergency number, 112, is used in Italy. It's classified as a special service number within the Italian numbering plan.
E.164 formatting is crucial for international compatibility. Always store and transmit phone numbers in E.164 format (+39 followed by the national number, including the leading zero for landlines) to ensure seamless global communication.
Toll-free numbers in Italy start with 800, followed by six digits (800 XXXXXX). Premium-rate numbers, where the caller incurs additional charges, begin with 89X XXXXXX.
Landline numbers can be ported, but only within the same geographic area code. They cannot be ported to a mobile network. Mobile numbers, however, can be ported between mobile operators while retaining the same number.
Under GDPR, phone numbers are personal data. Protect them by encrypting stored numbers, restricting access, minimizing data collection, and adhering to purpose limitation, using numbers only for their intended use.
The Italian Electronic Communications Code modernizes the telecommunications framework, focusing on enhanced service quality, stronger consumer protection, streamlined digital integration, and improved number portability, reflecting broader EU initiatives.
Cache compiled regular expressions and frequently accessed data like area codes to speed up validation. Implement rate limiting to prevent abuse of validation APIs and improve overall system performance.
Normalize input by removing non-numeric characters, store numbers in E.164 format, validate against AGCOM's official database, implement robust security measures, and monitor validation performance and error rates for continuous improvement.
Italy Phone Numbers: Format, Area Code & Validation Guide
Italy phone numbers use the +39 country code and follow a structured format regulated by AGCOM (Autorità per le Garanzie nelle Comunicazioni). This comprehensive guide covers Italian phone number formats, validation, and implementation—including landline area codes (02 for Milan, 06 for Rome), mobile prefixes (3XX starting with 330-399), E.164 formatting rules, number portability regulations, and GDPR compliance requirements for handling Italian telecommunications data.
Understanding Italian Phone Number Regulations and AGCOM
AGCOM (Autorità per le Garanzie nelle Comunicazioni) is Italy's independent telecommunications regulatory authority, established by Law 249 of July 31, 1997. AGCOM oversees telecommunications, audiovisual, publishing, postal services, and online platforms. In its 2024 Annual Report, AGCOM reported the total value of the telecommunications and audiovisual markets in Italy reached approximately €53.85 billion in 2023.
The Italian Electronic Communications Code (Legislative Decree No. 259 of August 1, 2003) implements the EU regulatory framework (Directive 2002/21/EC) and was significantly updated by Legislative Decree 207 of November 8, 2021, and most recently by Legislative Decree 48 of March 24, 2024. This modernized framework provides:
These improvements align with EU initiatives to harmonize electronic communications services, emphasizing competition, investment, and consumer choice.
Accessing AGCOM Resources
For developers validating Italian phone numbers, AGCOM provides several resources:
Italian Phone Number Formats: Complete Structure Guide
Italian phone numbers follow an open dialing plan with a predictable structure. Understanding the format is essential for validation, whether you're implementing phone verification, SMS services, or international calling features.
Italian Landline Numbers (Geographic Numbers)
0xx[x] + XXXXXXX
02 12345678
(Milan area code)06 12345678
(Rome area code)055 1234567
(Florence)081 1234567
(Naples)0
. Mandatory even for local calls within Italy.Important: When calling Italian landlines from abroad, you must keep the leading zero after the +39 country code. For example:
+39 06 12345678
(not+39 6 12345678
).Major Italian City Area Codes:
Italian Mobile Phone Numbers
3XY XXXXXXX
339 1234567
or+39 339 1234567
(international format)3
, followed by carrier identifier (0–9). Identifies the mobile network operator that originally assigned the number.All Italian mobile numbers begin with the digit 3. Common prefixes include 330-339 (TIM), 340-349 (Vodafone), 320-329 (WindTre), and 350-351 (Iliad).
Original Carrier Prefixes (note: number portability means numbers can move between carriers):
Italy has three main mobile network operators (MNOs): TIM, Vodafone Italia (acquired by Swisscom in December 2024), and WindTre. Additionally, several Mobile Virtual Network Operators (MVNOs) like Iliad, PosteMobile, and Fastweb operate on these networks. Due to number portability, prefixes indicate original assignment but not current carrier.
VoIP Numbers
Italy reserves specific number ranges for Voice over IP (VoIP) services under AGCOM regulation:
5X XXXXXXXX
or55 XXXXXXXX
5
are assigned to nomadic VoIP services55
are specifically designated for VoIP servicesVoIP numbers follow E.164 formatting and support standard protocols including SIP. Providers must meet quality of service (QoS) requirements and provide access to emergency services (112).
Special Service Numbers
112
112
800 XXXXXX
or803 XXXXXX
800 123456
892 XXXXXX
892 123456
899 XXX XXXX
899 123 4567
12XX
1254
840 XXXXXX
840 123456
0843 XXXXXX
0843 123456
0844 XXXXXX
0844 123456
Italy Number Portability: How It Works
Italy supports robust number portability under AGCOM supervision. Users can keep their numbers when switching providers. AGCOM Resolution 86/21/CIR, effective November 7, 2022, modernized the mobile number portability process.
339 XXXXXXX
) can move to Vodafone and remain339 XXXXXXX
.Checking Current Carrier for Ported Numbers
Number portability means the prefix no longer reliably identifies the current carrier. To determine the active carrier for a ported number:
Third-Party HLR Lookup APIs:
Implementation Considerations:
VoIP and Digital Services in Italy
The Electronic Communications Code addresses modern communication methods. AGCOM Resolution No. 11/06/CIR (2006) equates VoIP services with traditional phone services, applying the same general authorization regime.
How to Validate Italian Phone Numbers: Technical Implementation
Phone Number Validation with Regular Expressions
Use regular expressions for initial validation, but they're not foolproof due to number portability. For definitive carrier information and number validity, use HLR lookup services.
Python validation example:
Converting Italian Numbers to E.164 International Format
Store and transmit phone numbers in E.164 format for international compatibility. This format includes the plus sign (+) followed by the country code (39 for Italy) and the national number.
Important: Italy is an exception to typical E.164 rules. You must retain the leading zero for landlines after the country code. Many developers mistakenly omit the zero, but both +39 and the zero are required for landlines.
Examples:
06 12345678
+390612345678
or+39 06 12345678
(zero retained)339 1234567
+393391234567
or+39 339 1234567
(no leading zero to remove)55 12345678
+395512345678
or+39 55 12345678
Conversion Code Examples:
Common formatting errors to avoid:
+3961234567
(incorrect)+390612345678
(correct)+390339123456
(incorrect)+393391234567
(correct)GDPR Compliance for Italian Phone Numbers
Phone numbers are personal data under GDPR. Italy revised its Personal Data Protection Code on December 19, 2018, to align with GDPR. The Italian Data Protection Authority (Garante per la protezione dei dati personali) oversees enforcement.
Data Security Measures
Implement these security measures as required by GDPR Article 32:
Data Retention and Deletion
Consent Requirements for SMS Marketing
Under GDPR Article 6 and Italy's e-Privacy Directive implementation:
GDPR Compliance Checklist for Phone Number Handling:
Performance
Error Handling
Provide informative error messages and implement appropriate fallback mechanisms. Log validation failures for analysis and troubleshooting while respecting privacy.
Standard Error Codes:
INVALID_FORMAT
INVALID_COUNTRY
INVALID_LENGTH
INVALID_PREFIX
CARRIER_LOOKUP_FAILED
RATE_LIMIT_EXCEEDED
PORTED_NUMBER
Error Handling Implementation:
Logging Best Practices:
+39 3XX XXX X567
)Frequently Asked Questions About Italian Phone Numbers
What is the country code for Italy?
The country code for Italy is +39. When calling Italy from abroad, dial +39 followed by the full Italian phone number, including the leading zero for landlines. For example, to call a Rome landline, dial +39 06 12345678. For mobile numbers, dial +39 followed by the mobile number starting with 3 (e.g., +39 339 1234567).
What are the area codes for Rome and Milan?
Rome uses area code 06, and Milan uses area code 02. Italian area codes range from 2 to 4 digits and always start with 0. You must dial the full area code even for local calls within the same city.
How do I format Italian phone numbers in E.164 international format?
For E.164 formatting, use +39 followed by the complete number. Important: Unlike most countries, Italy requires you to keep the leading zero for landlines. Example: The Rome number 06 12345678 becomes +390612345678 in E.164 format.
Do Italian mobile numbers start with a specific prefix?
Yes, Italian mobile numbers always start with 3, followed by a carrier identifier (0-9). For example, TIM uses prefixes like 330, 333, 339, while Vodafone uses 340, 342, 347. Iliad uses 350, 351. Mobile numbers are 9-10 digits long in total.
Can phone numbers be ported between carriers in Italy?
Yes, Italy supports full number portability regulated by AGCOM Resolution 86/21/CIR (effective November 7, 2022). Mobile numbers can move between any carriers, and landlines can port within the same area code. The porting process takes 7-21 business days.
What is Italy's emergency number?
Italy uses 112 as the primary EU standard emergency number. It's free to call from any phone, including those without SIM cards or credit. In some regions, legacy numbers (113 for police, 118 for ambulance) still operate alongside 112.
How do I handle common validation errors?
Common validation errors include:
How can I test phone number validation in development?
For testing Italian phone validation:
+39 338 0000000
libphonenumber
for format validationHow do I dial internationally from Italy?
To call internationally from Italy:
00
(international access prefix)1
for USA,44
for UK)Example: To call +1 202 555 0123 (USA) from Italy, dial
00 1 202 555 0123
Best Practices
Follow these guidelines to ensure your applications handle Italian phone numbers correctly, improving reliability, security, and user experience while maintaining full GDPR compliance.
Related Resources
For additional information on international phone number formats and validation:
Learn more about phone number validation for other European countries and explore comprehensive guides for implementing telecommunication compliance across different regions.