Install free
Home / Blog

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

How-toNovember 28, 2026·5 min read·By Rajimul Islam Joy
Illustration for: Zip codes, postal codes, Eircodes and pincodes: how to match them
Quick answer

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.

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.

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.

PatternWhat it matches
SW1*UK outward codes starting with SW1
M5V*Canadian forward sortation areas starting with M5V

Terms by country

CountryLocal name
United StatesZip code
United Kingdom, CanadaPostal code
IrelandEircode
IndiaPincode

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

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.

Stuck? Talk to a real person.

We believe human support is best. Our team helps on every plan, including Free and Shopify Basic.

Email support

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

More from the blog

How to set shipping rates by zip code on Shopify
Guide

How to set shipping rates by zip code on Shopify

A step-by-step guide to charging a different delivery fee for each zip or postal code on your Shopify store: zones, rates, testing and going live.

November 29, 2026 · 6 min read
Flat-rate vs zip-code shipping: which fits your store?
Strategy

Flat-rate vs zip-code shipping: which fits your store?

Flat-rate shipping is simple, zip-code shipping is precise. Here is how to decide which one fits your Shopify store, with a quick checklist.

November 27, 2026 · 5 min read
How to charge shipping by weight and order value
How-to

How to charge shipping by weight and order value

Combine zip-code zones with weight and order-value tiers to price shipping fairly. Includes an example tier table and tips for free-shipping thresholds.

November 26, 2026 · 5 min read