Use this essential n8n workflow to clean, validate, and format messy US phone numbers into E.164, National, and International standards. A powerful n8n template for data normalization.
Download this n8n workflow template and start using it instantly.
Handling inconsistent phone number formats is one of the most tedious aspects of data management. This robust n8n workflow template is designed to automatically clean, validate, and standardize US phone numbers, regardless of how messy the initial input is (e.g., 1(800)-555.5555 extension 123). The automation first strips all non-numeric characters, then uses core logic flow control to check for proper length and country code (1). If a valid 10-digit number is detected, the required country code is automatically added. The final step generates five distinct, ready-to-use output fields (E.164, National, International, etc.), ensuring data consistency across all your integrated applications. This reusable n8n node setup dramatically reduces manual data cleaning efforts.
This reusable n8n workflow functions as a subroutine, triggered by another automation using the dedicated n8n trigger. The process is highly logical and handles multiple input scenarios:
Strip phone number formatting n8n node is executed first, using a regular expression to remove all non-digit characters, normalizing the raw input string.Check number of digits in phone number n8n node (a Switch node) checks the length of the sanitized number.Add valid country code n8n node prepends '1'. If it has 11+ digits, the Check if first digit is valid country code n8n node verifies if the first digit is '1'. If not, the number is cleared.Format phone numbers n8n node uses dynamic expressions to slice the number into various standardized formats: E.164 (used globally), National (localized formatting), Full National, and International format. It also isolates any detected extension digits.To deploy this powerful n8n workflow, follow these steps:
When Executed by Another Workflow n8n trigger. You must call this workflow from another active n8n workflow using the Execute Workflow n8n node, passing the raw phone number string in the 'Phone Number' input parameter. When Executed by Another Workflow (n8n trigger): Acts as the entry point, allowing this automation to be called as a standardized function within larger n8n workflow designs. Expects a 'Phone Number' input.
Strip phone number formatting (Set n8n node): Essential data preprocessing step. It uses a regex assignment (.match(/[0-9]+/gmi).join('')) to extract only numeric digits, removing all potential formatting characters.
Check number of digits in phone number (Switch n8n node): Provides core flow control logic. It dynamically routes the workflow based on whether the number has 10 digits, 11+ digits, or is invalid (less than 10 digits). This decision structure is central to the entire n8n workflow.
Add valid country code (Set n8n node): For 10-digit numbers, this n8n node prepends '1', ensuring the number conforms to a full 11-digit US standard.
Check if first digit is valid country code (If n8n node): Validates the input for numbers already containing extra digits (potential country codes or extensions), ensuring the first digit is exactly '1'.
Format phone numbers (Set n8n node): The final processing step. This powerful n8n node slices the clean 11+ digit number to generate standardized outputs, including +1... (E.164), (XXX) XXX-XXXX (National), and extracts extensions.
Use this sophisticated n8n workflow to create a Telegram AI assistant powered by Gemini. Features include web search, email management, calendar booking, and contact updates using various n8n node tools.

Use this powerful n8n workflow template to automate team cycle announcements. Captures form data, uses GPT-4 to draft, and posts to Slack instantly.

A comprehensive n8n workflow for seamless, scheduled synchronization of Spotify playlists to YouTube playlists, utilizing a Supabase database for persistent state tracking.

Use this comprehensive architectural n8n workflow template to implement standardization, input normalization, execution mode switching, and a color-coding system across your n8n nodes for superior maintainability.









































