phone number standards

Sent logo
Sent TeamMay 3, 2025 / phone number standards / Article

Gibraltar Phone Numbers: Format, Area Code & Validation Guide

Comprehensive guide to Gibraltar phone numbers covering +350 country code, 8-digit format, regex validation patterns, number portability, emergency services, and regulatory requirements.

Gibraltar Phone Numbers: Format, Area Code & Validation Guide

Gibraltar uses the +350 country code with a straightforward 8-digit numbering system. This comprehensive guide covers Gibraltar phone number formats, regex validation patterns, number portability, emergency services, and regulatory requirements—essential for developers, telecom professionals, and businesses connecting with Gibraltar.

Quick Reference

  • Country: Gibraltar
  • Country Code: +350
  • International Prefix: 00
  • National Prefix: None
  • Emergency Numbers: 999 (Unified - Police, Fire, Ambulance), 112 (European Standard)
  • Regulatory Authority: Gibraltar Regulatory Authority (GRA) (http://www.gra.gi)

Understanding Gibraltar's Phone Number Format

Gibraltar uses an 8-digit closed numbering plan without area codes. A closed numbering plan means all telephone numbers within Gibraltar have a fixed length (8 digits) and you dial the complete number regardless of where you're calling from within the territory—no area codes or additional prefixes are needed for domestic calls.

How to Dial Gibraltar Phone Numbers:

  • Domestic (within Gibraltar): Simply dial the 8-digit number directly: 20052200 or 54012345
  • International to Gibraltar: Dial your international access code + 350 + 8-digit number
    • From UK: 00 350 20052200
    • From US: 011 350 54012345
    • From mobile (universal): +350 20052200
  • From Gibraltar internationally: Dial 00 + country code + number (e.g., 00 44 20 1234 5678 for UK)

Gibraltar Number Types and Formats

TypeFormatExampleUsageNotes
Landline(200|222|225)XXXXX20052200Traditional fixed lines, now including specific prefixes for different operatorsPrefix indicates current operator
Mobile5[4-8]XXXXXX54012345Mobile servicesSubject to number portability
Special Services8XXXXXXX80012345Value-added services, toll-free, etc.See breakdown below

Special Service Number Ranges (8XXXXXXX):

  • 80XXXXXX: Toll-free/Freephone services - caller pays nothing, recipient pays for the call
  • 84XXXXXX-89XXXXXX: Premium rate services - caller pays higher rates for information/entertainment services
  • Other 8X ranges may be used for value-added services, directory services, or operator-specific features

Landline Prefix Assignments by Operator:

  • 200 Prefix: Primarily used by Gibtelecom.
  • 222 Prefix: Used by U-mee for fixed-line services, often associated with fiber broadband.
  • 225 Prefix: Used by Gibfibrespeed, specializing in high-speed internet and offering free landline service to residential customers.

Phone Number Validation with Regular Expressions

Robust validation is crucial for Gibraltar phone numbers. Here are updated regex patterns with error handling:

javascript
// Individual number type validation
const landlinePattern = /^(200|222|225)\d{5}$/;
const mobilePattern = /^5[4-8]\d{6}$/;
const specialPattern = /^8\d{7}$/;

// Combined validation (allowing any valid Gibraltar number type)
const gibraltarNumberPattern = /^((?:200|222|225)\d{5}|5[4-8]\d{6}|8\d{7})$/;

function isValidGibraltarNumber(number) {
  // Remove whitespace and non-digit characters for consistent validation
  const cleanedNumber = number.replace(/\D/g, '');
  return gibraltarNumberPattern.test(cleanedNumber);
}

function validateWithErrorMessage(number) {
  const cleanedNumber = number.replace(/\D/g, '');

  if (cleanedNumber.length !== 8) {
    return { valid: false, error: 'Gibraltar numbers must be exactly 8 digits' };
  }

  if (landlinePattern.test(cleanedNumber)) {
    return { valid: true, type: 'landline' };
  } else if (mobilePattern.test(cleanedNumber)) {
    return { valid: true, type: 'mobile' };
  } else if (specialPattern.test(cleanedNumber)) {
    return { valid: true, type: 'special' };
  }

  return { valid: false, error: 'Number does not match any valid Gibraltar format' };
}

// Example usage
console.log(isValidGibraltarNumber("20012345")); // true
console.log(isValidGibraltarNumber("54012345")); // true
console.log(isValidGibraltarNumber("+35020012345")); // true (after cleaning)
console.log(validateWithErrorMessage("12345")); // { valid: false, error: '...' }

Python Phone Number Validation:

python
import re

LANDLINE_PATTERN = re.compile(r'^(200|222|225)\d{5}$')
MOBILE_PATTERN = re.compile(r'^5[4-8]\d{6}$')
SPECIAL_PATTERN = re.compile(r'^8\d{7}$')
GIBRALTAR_PATTERN = re.compile(r'^((?:200|222|225)\d{5}|5[4-8]\d{6}|8\d{7})$')

def is_valid_gibraltar_number(number):
    cleaned = re.sub(r'\D', '', number)
    return bool(GIBRALTAR_PATTERN.match(cleaned))

def validate_with_type(number):
    cleaned = re.sub(r'\D', '', number)
    if len(cleaned) != 8:
        return {'valid': False, 'error': 'Must be exactly 8 digits'}
    if LANDLINE_PATTERN.match(cleaned):
        return {'valid': True, 'type': 'landline'}
    elif MOBILE_PATTERN.match(cleaned):
        return {'valid': True, 'type': 'mobile'}
    elif SPECIAL_PATTERN.match(cleaned):
        return {'valid': True, 'type': 'special'}
    return {'valid': False, 'error': 'Invalid format'}

Emergency Numbers in Gibraltar

Gibraltar has transitioned to a unified emergency number, 999, for all emergency services (Police, Ambulance, and Fire). The European standard emergency number, 112, also functions in Gibraltar.

Deprecated numbers (190, 199): These older emergency numbers are deprecated and should not be used in modern systems. While they may still route to emergency services for backward compatibility, relying on them is not recommended. Systems should validate against and support only 999 and 112.

Testing Emergency Numbers in Development:

  • Never dial actual emergency numbers during testing
  • Use mock/stub functions that recognize emergency patterns without placing real calls
  • In test environments, log emergency number detection without initiating calls
  • Document emergency number handling clearly for compliance and safety audits
javascript
const EMERGENCY_NUMBERS = ['999', '112'];

function isEmergencyNumber(number) {
  const cleanedNumber = number.replace(/\D/g, '');
  return EMERGENCY_NUMBERS.includes(cleanedNumber);
}

// Test-safe validation
function handleEmergencyCall(number, isTestMode = false) {
  if (isEmergencyNumber(number)) {
    if (isTestMode) {
      console.log(`TEST MODE: Emergency number ${number} detected but not dialed`);
      return { success: true, test: true };
    }
    // Production: route to emergency services
    return initiateEmergencyCall(number);
  }
  return { success: false, error: 'Not an emergency number' };
}

Mobile Number Portability in Gibraltar

Number portability is in effect in Gibraltar. This means a number originally assigned to one operator might now belong to another.

Portability Process:

  • Request: Contact your desired new operator to initiate porting
  • Timeline: Typically 2-5 business days for mobile numbers, may vary for landlines
  • Cost: Usually free for consumers; operators cannot charge porting fees under GRA regulations
  • During transfer: Brief service interruption (usually a few hours) during the port window

Impact on SMS/MMS Routing: Number portability can affect message routing. SMS/MMS systems must query the Number Portability Database to determine the current operator before routing messages. Without this lookup, messages may be misrouted to the original operator, causing delivery failures.

For fixed lines, the prefix now indicates the operator, simplifying routing:

  • 200 → Gibtelecom
  • 222 → U-mee
  • 225 → Gibfibrespeed

Accessing Portability Data: Developers requiring real-time portability information should contact the GRA or individual operators for API access to the Number Portability Database. Some operators may provide HLR (Home Location Register) lookup services.

Technical Implementation Best Practices

Formatting Gibraltar Numbers for International Calls

Handle cases where country code may already be present:

javascript
function formatInternationalNumber(number) {
  let cleanedNumber = number.replace(/\D/g, '');

  // Remove country code if already present
  if (cleanedNumber.startsWith('350')) {
    cleanedNumber = cleanedNumber.substring(3);
  }

  // Validate the 8-digit number
  if (isValidGibraltarNumber(cleanedNumber)) {
    return `+350${cleanedNumber}`;
  }

  return null; // Or throw error for invalid number
}

// Handle various input formats
console.log(formatInternationalNumber("20052200"));      // +35020052200
console.log(formatInternationalNumber("+350 20052200")); // +35020052200
console.log(formatInternationalNumber("35020052200"));   // +35020052200

Error Handling and Logging

Always include robust error handling and monitor validation failures:

javascript
function formatGibraltarNumber(number) {
  try {
    const cleaned = number.replace(/\D/g, '');
    const validation = validateWithErrorMessage(cleaned);

    if (!validation.valid) {
      logValidationFailure(number, validation.error);
      throw new Error(`Invalid Gibraltar number: ${validation.error}`);
    }

    return `+350 ${cleaned}`; // E.164 format
  } catch (error) {
    console.error(`Number formatting error: ${error.message}`);
    return null;
  }
}

function logValidationFailure(input, error) {
  // Log to monitoring system for analysis
  console.warn({
    timestamp: new Date().toISOString(),
    input: input,
    error: error,
    type: 'phone_validation_failure'
  });
}

Monitoring Best Practices:

  • Track validation failure rates by error type
  • Alert on sudden spikes in validation failures (may indicate data quality issues)
  • Log original input (masked for privacy) to diagnose systematic issues
  • Monitor emergency number detection separately for compliance

Telecom Operators and Network Infrastructure

Gibraltar's telecom market is primarily served by Gibtelecom, U-mee, and Gibfibrespeed. Gibtelecom is the incumbent operator, providing a full range of services. U-mee and Gibfibrespeed focus on fixed-line broadband and offer competitive landline options.

Operator Overview:

OperatorServicesNetwork TechnologyPrefixCoverage
GibtelecomMobile, landline, broadband, data4G/LTE, fiber200 (landline), 54-58 (mobile)Full territory
U-meeFixed-line, fiber broadbandFiber to premises222Urban areas, expanding
GibfibrespeedFixed-line, high-speed internetFiber to premises225Residential areas

Network Notes:

  • Gibtelecom provides the only mobile network infrastructure in Gibraltar
  • 4G/LTE coverage is comprehensive across the territory
  • 5G deployment plans should be verified with operators
  • Fiber broadband coverage is expanding rapidly with competition from U-mee and Gibfibrespeed

Contact Information:

  • Gibtelecom: www.gibtele.com
  • U-mee: Check local directory or GRA website
  • Gibfibrespeed: Check local directory or GRA website

Regulatory Compliance and Data Protection

The Gibraltar Regulatory Authority (GRA) oversees the telecommunications sector. Key regulations include:

  • Communications Act 2006: Establishes the regulatory framework for telecommunications in Gibraltar.
  • Numbering plan management: The GRA manages number allocation, portability, and ensures efficient use of number resources.
  • Service quality monitoring: Operators are subject to service quality standards and reporting requirements.
  • Consumer protection: Regulations are in place to protect consumer rights, including transparent pricing and service terms.

GDPR and Phone Number Data Protection

Phone numbers are considered personal data under the Gibraltar Data Protection Act 2004 and UK GDPR (as applied to Gibraltar). Businesses handling Gibraltar phone numbers must:

  • Legal basis: Establish lawful basis for processing (consent, contract, legitimate interest)
  • Purpose limitation: Use phone numbers only for stated purposes
  • Data minimization: Collect only necessary phone data
  • Storage limitation: Retain phone records only as long as needed
  • Security: Implement appropriate technical and organizational measures to protect phone data
  • Rights: Honor data subject rights (access, rectification, erasure, portability)

Compliance Requirements for Businesses:

  • Register with the Gibraltar Data Protection Commissioner if processing phone data systematically
  • Implement data protection policies covering phone number handling
  • Conduct Data Protection Impact Assessments (DPIA) for high-risk processing
  • Report data breaches involving phone data within 72 hours
  • Maintain records of processing activities

Penalties for Non-Compliance:

  • GRA enforcement actions for telecom violations: warnings, fines, license suspension/revocation
  • GDPR violations: fines up to €20 million or 4% of annual global turnover (whichever is higher)
  • Additional civil liability for damages caused by non-compliance

Licensing Requirements: Telecom service providers operating in Gibraltar must obtain licenses from the GRA. License types vary by service (mobile, fixed, internet, etc.). Refer to the GRA website for application procedures and requirements.

For the latest regulatory information, updates, and guidance, consult:

  • GRA: http://www.gra.gi
  • Gibraltar Data Protection Commissioner: Check official Gibraltar government resources

Troubleshooting Common Issues

Validation Failures:

  • Wrong length: Ensure exactly 8 digits after removing country code and formatting
  • Invalid prefix: Check against current operator prefixes (200, 222, 225 for landlines; 54-58 for mobile; 8X for special)
  • Country code handling: Strip +350 before validating 8-digit pattern
  • International format: Verify country code is exactly 350, not 35 or 3500

Routing Issues:

  • Ported numbers: Query portability database for mobile numbers
  • Special services: 8XXXXXXX numbers may have special routing requirements
  • Emergency numbers: Ensure 999 and 112 are prioritized and never blocked

Testing Checklist:

  • Validate all Gibraltar number formats (landline, mobile, special)
  • Handle numbers with and without country code (+350)
  • Test emergency number detection without placing actual calls
  • Implement portability database lookup for accurate routing
  • Log validation failures for monitoring
  • Ensure GDPR compliance for phone data storage and processing

Frequently Asked Questions

Q: Do I need area codes when dialing within Gibraltar? A: No. Gibraltar uses a closed numbering plan with no area codes. Just dial the 8-digit number.

Q: Can mobile numbers be ported between operators? A: Yes, mobile number portability is available. The process typically takes 2-5 business days and is usually free.

Q: How do I determine the current operator for a ported mobile number? A: Query the Number Portability Database through GRA or operator APIs. The prefix alone is not reliable for mobile numbers due to portability.

Q: Are Gibraltar numbers compatible with international SMS systems? A: Yes, use E.164 format: +350XXXXXXXX. Ensure your SMS gateway queries the portability database for accurate routing.

Q: What's the difference between 999 and 112 emergency numbers? A: Both reach emergency services. 999 is the traditional Gibraltar/UK standard; 112 is the European standard. Use either in emergencies.

Q: Do I need a special license to send SMS to Gibraltar numbers? A: Check with your SMS provider and GRA regulations. Commercial messaging typically requires compliance with local spam/marketing laws.

Q: How should I store Gibraltar phone numbers in databases? A: Store in E.164 format (+350XXXXXXXX) as VARCHAR or TEXT. This ensures consistency and international compatibility.

Frequently Asked Questions

What is the country code for Gibraltar?

The country code for Gibraltar is +350. This code is required when dialing a Gibraltar number from another country. Remember to drop the leading zero from the national number when adding the country code.

How do I format a Gibraltar phone number for international calls?

To format a Gibraltar phone number for international calls, add +350 before the 8-digit local number. For example, if the local number is 20012345, the international format would be +35020012345. Always clean the number by removing any non-digit characters before formatting.

What is the emergency number in Gibraltar?

The primary emergency number in Gibraltar is 999, covering police, fire, and ambulance services. The European standard emergency number, 112, also works in Gibraltar.

How many digits are in a Gibraltar phone number?

Gibraltar phone numbers have 8 digits, following a closed numbering plan without area codes. This applies to landlines, mobile, and special service numbers alike.

What is the prefix for Gibtelecom landlines?

Gibtelecom landlines primarily use the 200 prefix. This helps distinguish them from landlines provided by other operators like U-mee (222) and Gibfibrespeed (225).

How to validate a Gibraltar mobile phone number?

Gibraltar mobile numbers start with 54, 55, 56, 57, or 58 followed by six more digits. You can use a regular expression like /^5[4-8]\d{6}$/ in JavaScript to validate them.

What does the 225 prefix indicate in Gibraltar?

The 225 prefix in Gibraltar signifies a landline number provided by Gibfibrespeed. Gibfibrespeed specializes in high-speed internet and offers free landline service with their residential broadband packages.

Why does Gibraltar not use area codes?

Gibraltar uses a closed 8-digit numbering plan without area codes. This simplified dialing within the country. The lack of area codes necessitates stricter validation for international calls.

How to dial emergency services from a Gibraltar mobile?

Dial either 999 or 112 to reach emergency services in Gibraltar. Both numbers connect to a unified service for Police, Fire, and Ambulance.

What is number portability in Gibraltar?

Number portability in Gibraltar means that a phone number can be transferred between operators. While the prefix identifies fixed-line providers, you might need to consult a number portability database for mobile number operator information.

What is the role of the GRA in Gibraltar telecommunications?

The Gibraltar Regulatory Authority (GRA) regulates the telecommunications sector. They manage number allocation, portability, monitor service quality, and enforce consumer protection regulations.

When should I consult the GRA website regarding Gibraltar numbers?

Consult the GRA website ([http://www.gra.gi](http://www.gra.gi)) for the latest updates on numbering plans, emergency service protocols, and other regulatory information. It's important to stay updated, especially for developers or telecom professionals.

How to identify special service numbers in Gibraltar?

Special service numbers in Gibraltar begin with the digit 8, followed by seven more digits. These are often used for value-added services, toll-free numbers, and similar applications.

Can I determine the operator of a Gibraltar landline by its prefix?

Yes, the prefix of a Gibraltar landline indicates its current operator. 200 is primarily for Gibtelecom, 222 for U-mee, and 225 for Gibfibrespeed.