Address Validator

House-number check

How Address Validator spots a missing house number in Shopify checkout, which countries need one by default and how to change it per country.

Shopify's own checkout settings can't require a house number, and House number required shows what they can do instead.

What counts as a house number

The address passes when address line 1 or address line 2 contains at least one digit. Digits in other scripts count too, such as Arabic, Devanagari or Thai digits, full-width digits and Chinese numerals.

The check doesn't know which number in the line is the house number. Any digit passes.

Address line 1Address line 2Result
HauptstraßeBlocked
Hauptstraße 5Passes
Hauptstraße3. OGPasses, the digit is in line 2
Flat 3, Main StreetPasses, because 3 is a digit
Calle Mayor s/nPasses, "s/n" marks an address without a number

Addresses without a house number, such as P.O. boxes, parcel lockers and pickup points, pass when they use a recognised word. See Parcel lockers and P.O. boxes.

Where a house number is required

By default, every country requires a house number except these, where addresses often have none:

RegionCountries
British IslesUnited Kingdom, Ireland, Jersey, Guernsey, Isle of Man
Asia and the Middle EastHong Kong, Macao, India, United Arab Emirates
Central AmericaBelize, Costa Rica, El Salvador, Guatemala, Honduras, Nicaragua, Panama

You can change this for any country. See Country rules.

Your own rule

To check for something more specific than a digit, replace the check with your own pattern for a country. See Your own rule.

On this page