phone number standards

Sent logo
Sent TeamMar 8, 2026 / phone number standards / Article

Denmark Phone Numbers: Format, Area Code & Validation Guide

Explore Denmark's phone number system (+45): 8-digit format, number categories (geographic, mobile, toll-free 80), and international dialing. Includes validation regex: `^[2-9]\d{7}$`. Learn number portability rules and emergency numbers like 112, 114. Essential for developers.

Denmark Phone Numbers: Format, Area Code & Validation Guide

This guide provides a deep dive into the Danish phone numbering system, covering its structure, validation, best practices, and relevant regulatory information essential for developers. Understanding these nuances is crucial for building robust applications that interact with Danish users.

Understanding the Danish Numbering System

Denmark boasts a streamlined and modern telecommunications infrastructure, overseen by the Danish Energy Agency (Energistyrelsen). This agency ensures consistent service quality and adherence to European Telecommunications Standards Institute (ETSI) guidelines. Source: Danish Energy Agency

Key characteristics of the Danish system include:

  • 8-Digit Closed Numbering Plan: All Danish phone numbers, regardless of type (landline, mobile, business), consist of eight digits. This simplified structure eliminates the need for traditional area codes.
  • Number Portability: Users can retain their numbers even when switching service providers. This feature is crucial to consider during validation and data management. While number portability is generally seamless within Denmark, international porting services are currently not available. Source: DIDWW
  • Standardized Format: The standard presentation format is XX XX XX XX, enhancing readability and user experience.

Domestic Calling

The 8-digit closed numbering plan simplifies domestic calling significantly. Whether calling from a landline or mobile, the process remains the same: dial the full 8-digit number.

Number Categories and Formats

While all numbers share the 8-digit format, they fall into different categories:

  • Geographic Numbers: Typically start with digits 2-7 (excluding ranges reserved for other categories). Example: 22 97 12 34
  • Mobile Numbers: Also start with digits 2-7, potentially overlapping with geographic number ranges. Accurate differentiation often requires additional context or external databases. Example: 51 23 45 67
  • Business Numbers: Follow the same format as geographic numbers, making distinction challenging without external data.
  • Special Purpose Numbers:
    • Toll-Free: 80 XX XX XX. Example: 80 12 34 56
    • Premium Rate: 90 XX XX XX. Example: 90 78 90 12 Caution: These numbers often incur higher charges.
    • Emergency Services: 112 (universal emergency number). This number, along with other essential service numbers, functions even on locked or SIM-less devices. Source: Microsoft
    • Non-Emergency Police: 114
    • Social Services: 116 XXX (various services).

International Calling

Calling from Denmark

  1. International Prefix: Use 00 from landlines and + from mobile phones.
  2. Country Code: Enter the destination country's code.
  3. Recipient's Number: Dial the full number.

Example (calling the UK): 00 44 12 34 56 78 90 or +44 12 34 56 78 90

Calling into Denmark

  1. International Exit Code: Dial your country's exit code.
  2. Denmark's Country Code: 45
  3. 8-Digit Number: Dial the recipient's Danish number.

Example (calling Denmark from abroad): +45 32 12 34 56

Emergency and Essential Services

ServiceNumber
Emergency112
Police (Non-Emergency)114
Social Services116 XXX

The Danish Emergency Management Agency (DEMA) plays a vital role in coordinating emergency response and preparedness. Source: Wikipedia The prehospital emergency system is robust and publicly funded. Source: Biomed Central

Technical Implementation: Validation and Best Practices

Robust phone number validation is essential for any application handling Danish user data.

Basic Validation

javascript
const validateDanishNumber = (number) => {
  const cleaned = number.replace(/\s+/g, ''); // Remove whitespace
  return /^[2-9]\d{7}$/.test(cleaned); // Basic 8-digit check
};

Enhanced Validation with Type Detection

javascript
function validateDanishNumber(phoneNumber) {
    const cleaned = phoneNumber.replace(/\s+/g, '').replace(/[-()+]/g, '');
    const patterns = {
        general: /^[2-9]\d{7}$/,
        mobile: /^[2-7]\d{7}$/, // Note: Overlap with geographic
        tollFree: /^80\d{6}$/,
        premium: /^90\d{6}$/
    };
    if (cleaned.length !== 8) return { isValid: false, error: 'Invalid length' };
    const type = Object.keys(patterns).find(key => patterns[key].test(cleaned));
    return { isValid: !!type, type: type || null, formatted: formatDanishNumber(cleaned) };
}

function formatDanishNumber(number) {
    return `${number.slice(0, 2)} ${number.slice(2, 4)} ${number.slice(4, 6)} ${number.slice(6)}`;
}

Integration Examples

  • User Registration:
javascript
const handleRegistration = (phoneNumber) => {
  const validationResult = validateDanishNumber(phoneNumber);
  if (validationResult.isValid) {
    // Proceed with registration, store formatted number
    console.log("Valid number:", validationResult.formatted);
  } else {
    // Display error message to user
    console.error("Invalid Danish number");
  }
};
  • Internationalization:
javascript
const formatForInternationalCall = (phoneNumber) => {
  const cleaned = phoneNumber.replace(/\s+/g, '');
  return `+45 ${cleaned}`;
};

Number Blocking and Regulatory Compliance

The Danish Energy Agency enforces strict regulations regarding number blocking and special number ranges. Developers should be aware of these rules to ensure compliance. The agency follows ETSI guidelines for standardized blocking protocols and testing infrastructure. Source: ETSI

  • Premium Rate Numbers (90X): Require mandatory registration and are subject to enhanced scrutiny and regular audits.
  • Special Number Ranges: Ranges are reserved for specific purposes (e.g., technical testing, emergency services) and have varying levels of protection and access restrictions.

For detailed information on regulations and best practices, consult the Danish Energy Agency website. Staying informed about these guidelines is crucial for developing compliant and user-friendly applications for the Danish market.

Quick Reference

  • Country: Denmark (????????)
  • Country Code: +45
  • International Prefix (from Denmark): 00
  • Number Length: 8 digits

This guide provides a solid foundation for understanding and working with Danish phone numbers. Remember to consult official sources for the latest updates and specific regulatory requirements.

Frequently Asked Questions

How to format Danish phone numbers?

The standard format for Danish phone numbers is XX XX XX XX, grouping digits in pairs for improved readability. This format applies to all number types.