How to use
- Select a country from the searchable dropdown.
- Enter a postal code in the code field; the placeholder shows an example for the selected country.
- The tool instantly shows the official regex pattern and a format example.
- Read the green 'Valid' or red 'Invalid' result below.
Examples
- Selecting United States (US) and entering 90210 returns Valid; entering 9021 returns Invalid.
- Selecting Japan (JP) and entering 100-0001 returns Valid against the pattern \d{3}-\d{4}.