Pular para o conteúdo

🔍 Gerador de Regex de Telefone (30+ Países)

Instantly generate validation regex for phone numbers across 30+ countries. Four variants (E.164 / International / Flexible / Mobile-only), multi-country OR combination, live tester and ready-to-paste snippets for JavaScript, PHP, Python, Ruby and Go. Perfect for form validation, log extraction and data cleansing.

100% Free No signup Browser-only 5 languages Dark mode

🔒 Sobre Privacidade

📝 Regex gerado

/^.+$/g

🧪 Testador ao vivo

0 correspondências
    0 sem correspondência

      💻 Snippets de código por linguagem

      
          

      📖 Como usar

      1. 1
        Pick target countries
        Pick a single country or several to combine into one OR pattern (perfect for international forms). 30+ countries supported.
      2. 2
        Choose a variant
        Pick from E.164 (strict + country-code), International (with separators), Flexible (intl + national) or Mobile-only.
      3. 3
        Copy or test
        Copy the regex with one click. Paste a list of numbers into the live tester to see matches and failures in real time.
      4. 4
        Paste into your language
        Ready-to-run snippets for JavaScript, PHP, Python, Ruby, Go and Java are generated automatically with proper escaping.

      ❓ Perguntas frequentes

      Why not use libphonenumber?
      libphonenumber-js is around 70 KB which is overkill if you just want a small regex for form validation. We hand-write rules for 30+ common countries so you can copy-paste with zero dependencies. For full accuracy use libphonenumber.
      What is the difference between International and E.164?
      E.164 is the ITU-T standard (e.g. +819012345678) — pure digits, max 15, no spaces or punctuation. International format is the human-readable variant with spaces and hyphens (+81 90-1234-5678). Convention: store as E.164, display as International.
      Can I combine multiple countries into one regex?
      Yes. Tick multiple countries and the tool emits a single OR (|) pattern combining all of them — perfect for global form validation or extracting numbers from mixed logs.
      Is the generated regex perfect?
      It is a practical approximation aimed at ~80% validity. Numbering plans drift across carriers and years, so for bank-grade or telco-grade validation use libphonenumber or each national telecom regulator. For form inputs and log extraction these patterns are plenty.

      🔗 Ferramentas relacionadas

      🐛 Você encontrou um problema com esta ferramenta?

      Completamente gratuito e sem registro. Até as etapas de reprodução são suficientes. Os relatos recebidos chegam diretamente aos operadores e servem como referência para correções.

      ※ Para reproduzir problemas, informações do navegador (UA / tamanho de tela / idioma / URL) são enviadas automaticamente