Skip to content

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.

Phone number standards4 min read

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

Danish phone numbers use an 8-digit closed numbering plan, meaning all numbers (landline, mobile, business) have eight digits. They are typically formatted as XX XX XX XX for readability.

To call Denmark from abroad, dial your country's exit code, followed by Denmark's country code (45), and then the 8-digit Danish phone number.

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.

Dialing domestically within Denmark is straightforward: simply dial the full 8-digit number, regardless of whether you're calling from a landline or mobile phone.

Denmark's country code is +45. Use this prefix when calling Danish numbers from outside Denmark. For calls from Denmark, use + or 00 (from a landline).

Basic validation involves removing whitespace and checking for an 8-digit number. More advanced validation distinguishes between number types using regex and includes formatting the number according to local standards.

Denmark uses a streamlined 8-digit system for all phone numbers, eliminating the need for traditional area codes and simplifying both domestic and international calls.

The universal emergency number for Denmark is 112. This number, along with other essential service numbers, works even on locked or SIM-less devices.

Number portability is available within Denmark, allowing users to keep their numbers when switching providers. However, international porting is currently not supported.

Use the +45 country code when calling a Danish number from any country other than Denmark. If calling from within Denmark to another country, use 00 as the prefix from a landline or + from a mobile.

Premium rate numbers in Denmark start with 90. Be aware that these numbers typically incur higher charges than standard calls. They require registration and are subject to regular audits.

Toll-free numbers in Denmark follow the format 80 XX XX XX, similar to other Danish number formats with the distinct 80 prefix.

The Danish Energy Agency (Energistyrelsen) oversees Denmark's telecommunications infrastructure, ensuring service quality, number allocation, and regulatory compliance, including number blocking and special number ranges.