Install free
Home / Blog

Shipping rates for the UK and Canada: using postal code prefixes

InternationalNovember 20, 2026·5 min read·By Rajimul Islam Joy
Illustration for: Shipping rates for the UK and Canada: using postal code prefixes
Quick answer

Use prefix patterns. SW1* matches UK codes starting with SW1 and M5V* matches Canadian codes starting with M5V. Group the prefixes into a zone, add a rate, then test real codes.

Postal codes in the UK and Canada are not simple number ranges, so the usual "10000-19999" approach does not work. Prefix patterns do.

UK outward codes

A UK postcode has two halves. The first half, the outward code, identifies a wider area, such as SW1 for part of London. A prefix pattern lets you price a whole area at once:

Canadian forward sortation areas

The first three characters of a Canadian postal code form the forward sortation area (FSA). It works the same way:

Building a zone

  1. Create a zone for the country, for example "London".
  2. Add the prefixes that belong to it: SW1*, EC1A, N1*.
  3. Add a rate with a clear name and price.
  4. Test several real codes with the Test-a-zip checker.

Tips for international stores

Selling in Ireland or India? Eircodes and pincodes are supported too. See the full matching guide.

Ready to build your first zone? Install the free plan from the Shopify App Store and follow the setup steps.

Frequently asked questions

What is a UK outward code?

The first half of a UK postcode, such as SW1, which identifies a wider area.

What is a Canadian FSA?

The first three characters of a Canadian postal code, such as M5V.

Does Zipcode Shipping Rate support Ireland and India?

Yes. It supports Eircodes and pincodes as well.

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
Zip codes, postal codes, Eircodes and pincodes: how to match them
How-to

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

Exact codes, numeric ranges and prefix wildcards explained with examples for US, UK, Canada, Ireland and India, so your zip-code shipping rules match the right customers.

November 28, 2026 · 5 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