+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"
}