🔍 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
- ・Todo o processamento é concluído dentro do navegador (JavaScript)
- ・O número de telefone inserido não será enviado para o servidor
📝 Regex gerado
/^.+$/g
🧪 Testador ao vivo
✅ 0 correspondências
❌ 0 sem correspondência
💻 Snippets de código por linguagem
📖 Como usar
-
1
Pick target countriesPick a single country or several to combine into one OR pattern (perfect for international forms). 30+ countries supported.
-
2
Choose a variantPick from E.164 (strict + country-code), International (with separators), Flexible (intl + national) or Mobile-only.
-
3
Copy or testCopy the regex with one click. Paste a list of numbers into the live tester to see matches and failures in real time.
-
4
Paste into your languageReady-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
- ・Formatador de Número de Telefone — Converter para Internacional / E.164
- ・Testador de regex — Teste de regex JavaScript em tempo real
- ・Validador de e-mails — RFC 5322, descartáveis e papéis
🐛 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.
✅
Obrigado por seu relato!
Recebido pelos administradores. Usaremos como referência para melhorias.