Zip codes, postal codes, Eircodes and pincodes: how to match them

Use an exact code like 90210 for one area, a numeric range like 10000-19999 for a band of codes, and a prefix like SW1* or M5V* for letter-and-number codes in the UK and Canada.
Every country writes postal codes differently, but your shipping rules only need three tools to cover them: exact matches, ranges and prefixes. This guide shows when to use each.
1. Exact codes
An exact code targets one specific area. Use it for a premium delivery zone or a single building complex.
90210: one US zip code
2. Numeric ranges
Many countries number their codes in order, so nearby areas often share nearby numbers. A range covers a whole band with one rule.
10000-19999: every code from 10000 to 19999
3. Prefixes and wildcards
Some countries, such as the UK and Canada, use letters and numbers. A star after the start of the code matches everything that begins with it.
| Pattern | What it matches |
|---|---|
SW1* | UK outward codes starting with SW1 |
M5V* | Canadian forward sortation areas starting with M5V |
Terms by country
| Country | Local name |
|---|---|
| United States | Zip code |
| United Kingdom, Canada | Postal code |
| Ireland | Eircode |
| India | Pincode |
Zipcode Shipping Rate handles all of these formats, so you can build zones for customers in different countries inside the same store.
Choosing the right pattern
- Small, specific area: exact code.
- Wide band of numbers: range.
- Letter-and-number codes: prefix.
Always test the edges. If a range runs 10000-19999, check 10000, 19999 and 20000 with the Test-a-zip checker before you go live.
New to zones? Start with how to set shipping rates by zip code on Shopify.
Frequently asked questions
What is a wildcard postal code?
A wildcard uses a star after the start of a code, such as SW1*, to match every code that begins with those characters.
Does it work with Eircodes and pincodes?
Yes. Zipcode Shipping Rate supports zip codes, postal codes, Eircodes and pincodes.
How do I check that a range is correct?
Test the first and last code of the range and the code just outside it using the Test-a-zip checker.
We believe human support is best. Our team helps on every plan, including Free and Shopify Basic.
Set up zip-code shipping in minutes
Start on the free plan. Add zones, test any zip code, and go live when you are ready.
Install free on Shopify

