Templates / Standardize US phone numbers with multiple format options and validation

Standardize US phone numbers with multiple format options and validation

Ready for 3.0

by Sunny Thaper · 521 views · created 2025-05-01 · Engineering

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 7 nodes and runs when another workflow calls it. It uses only n8n's built-in nodes.

How it runs

Trigger: When another workflow calls it.

  1. Strip phone number formatting (Edit Fields (Set)): sets 1 field: Phone Number
  2. Check number of digits in phone number (Switch): routes items into 4 branches
  3. Check if first digit is valid country code (If): checks a condition and branches into true / false
  4. Add valid country code (Edit Fields (Set)): sets 1 field: Phone Number
  5. Clear invalid number (Edit Fields (Set)): sets 1 field: Phone Number
  6. Format phone numbers (Edit Fields (Set)): sets 7 fields: Phone Number (Input), Phone Number, Phone Number (National)…

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (4)

From the author

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…

Excerpt from Sunny Thaper's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.