⚒️ Standardize US phone numbers with multiple format options and validation

454 views · ⚒️ Engineering

Description

Workflow Overview:

This n8n workflow template takes a US phone number as input, validates it, and returns it in multiple standard formats, including handling extensions. It’s designed to streamline the process of standardizing phone number data within your automations.

How it Works:

Input: Accepts a phone number string as input. This number can be in various common formats (e.g., (555) 123-4567, 555.123.4567, +15551234567, 5551234567x890).

Formatting Removal: Strips all non-numeric characters to isolate the core number and any potential extension.

Validation:

Output Generation (if valid): If the number passes validation, the workflow outputs the phone number in several standardized formats:

Extension Handling: If an extension is detected in the input, it is separated and provided as:

Use Cases:

🔗 Nodes Used

Execute Workflow Trigger

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup