📞 Phone Number Formatter & Validator

Professional phone number processing with international formatting

+1
Format Preview
Enter a phone number...
🕐

No validation history yet. Start validating phone numbers!

API Documentation

JavaScript Integration

// Format phone number
const formatter = new PhoneFormatter();
const result = formatter.format('+15551234567', 'US');

// Validate phone number
const isValid = formatter.validate('+15551234567');

// Get phone info
const info = formatter.getInfo('+15551234567');

REST API Endpoints

POST /api/v1/format
Content-Type: application/json

{
  "phone": "+15551234567",
  "country": "US",
  "format": "international"
}

POST /api/v1/validate
Content-Type: application/json

{
  "phone": "+15551234567",
  "country": "US"
}

Response Format

{
  "valid": true,
  "formatted": {
    "international": "+1 555-123-4567",
    "national": "(555) 123-4567",
    "e164": "+15551234567",
    "rfc3966": "tel:+1-555-123-4567"
  },
  "country": "US",
  "carrier": "Unknown",
  "type": "mobile",
  "region": "California"
}

📖 Help & Instructions

🎯 Quick Start

  • Select a country from the dropdown or let auto-detection work
  • Enter a phone number in any format
  • Click "Validate & Format" to see results
  • Copy the formatted number or export as JSON

✨ Features

  • Auto-formatting: Real-time format preview as you type
  • International format (E.164): Standard +country number format
  • National format: Local formatting with area codes
  • Country detection: Automatic country code recognition
  • Validation: Check if number is valid for selected country
  • Carrier detection: Identify mobile carrier (where available)
  • Phone type: Distinguish mobile, landline, toll-free, etc.
  • Region info: Geographic region for landline numbers
  • Batch processing: Process multiple numbers at once
  • Normalization: Remove special characters
  • Export: JSON and CSV export options

📋 Input Formats Supported

  • +1 555-123-4567 (International)
  • (555) 123-4567 (US National)
  • 555-123-4567 (Local)
  • 020 7946 0958 (UK National)
  • +44 20 7946 0958 (UK International)

🔒 Privacy

All processing happens locally in your browser. No phone numbers are sent to any server.

💡 Tips

  • Use the batch processing tab for validating lists
  • History is saved locally and persists between sessions
  • Click on any country in the database to select it
  • The API tab shows how to integrate with your application