How Address Verification Software Works: PAF, UPRNs, Match Levels and What to Ask a Vendor
Validation · November 2026 · 10 min read
Validation, verification and autocomplete are different jobs. The data sets behind UK address verification, what each match result means, the questions to ask before buying, and how to test an integration without paying per request.
Address verification software sits behind almost every UK checkout: type a postcode, pick an address, done. The products differ in price, speed and coverage, but they all stand on the same two or three data sets and return the same kinds of answer. This guide explains how the category works underneath, what the different match results mean, and what to ask a vendor, so you can evaluate any address verification, validation or autocomplete service on its merits rather than its marketing.
Validation, verification, autocomplete: three different jobs
The words are used loosely, and vendors use them interchangeably. It helps to separate them:
Validation is free and instant and belongs in every form. Verification and autocomplete cost money per request because they rely on address data that someone owns. The levels, and which one a given use case needs, are laid out in how to check if a UK address is real.
Where the data comes from
Two data sets underlie UK address verification, and a vendor's answer to "which one do you use?" tells you a great deal.
Royal Mail's Postcode Address File (PAF). Around 30 million delivery points: every address Royal Mail delivers to, with its postcode, post town, thoroughfare, building and organisation details. It is maintained daily from Royal Mail's own operations and licensed to resellers. PAF is the reference for "can mail be delivered here", and each delivery point carries a Unique Delivery Point Reference Number (UDPRN). What PAF does not include: properties that do not receive mail (a substation, a plot of land, a building under construction), and anything about the property beyond its address.
Ordnance Survey's AddressBase. Built from local authority address gazetteers combined with PAF, AddressBase covers around 40 million addressable locations, including the non-postal ones, each with a Unique Property Reference Number (UPRN) and coordinates. The UPRN is the identifier UK government uses to join address data across systems, and it is the one to store if you need to match the same property across time and across suppliers. AddressBase is licensed through OS, with public sector use covered by the Public Sector Geospatial Agreement.
Open data. The ONS Postcode Directory and OS Open Names are free and useful for geography (which local authority, ward or region a postcode falls in, where a place is) but hold no delivery points. OS Open UPRN publishes UPRNs with coordinates but without the address text. None of the open sets can verify a specific house. The full picture is in where UK address data comes from.
So when a vendor says "we verify against the Royal Mail database" they mean PAF; when they say "we return UPRNs" they are using AddressBase or a derivative; and when a free service claims to verify addresses, ask what it is verifying against.
What a verification result means
A verification call takes an address (or its parts) and returns a standardised address and a match status. The vocabulary differs by vendor but the states are consistent:
- Verified / exact match. The input corresponds to one delivery point. The service returns the canonical form, often corrected (a misspelt street, a missing flat number) and the identifier (UDPRN, UPRN or both).
- Partial / premise not matched. The postcode and street exist but the building number or name does not match any delivery point at that postcode. Common causes: a new build not yet in PAF, a sub-building the data describes differently ("Flat 2" versus "Second Floor Flat"), or a genuine typo.
- Multiple candidates. The input is ambiguous, usually because the premise was omitted, and the service returns a list.
- Not matched. Nothing at that postcode resembles the input, or the postcode itself is unknown.
The important design decision is what your system does with partial and not-matched results. Blocking the user is wrong: real people live at addresses that PAF has not caught up with. The usual pattern is to accept the address as entered, flag it for review, and, for shipping, let a human or the carrier confirm.
Autocomplete: postcode lookup versus predictive
Two interaction patterns dominate UK forms:
Postcode lookup. The user types a full postcode and gets a list of every address at it, typically 1 to 100. One request per postcode; cheap; works well on mobile because the postcode is short. Its weakness is that users must know their postcode and type it correctly.
Predictive autocomplete. The user types any part of the address and suggestions narrow as they type, with a final "retrieve" call to fetch the full address. More requests per address (vendors often bill the retrieve rather than each keystroke), more forgiving, and better for users who know their street but not their postcode. Its weakness is that it needs good handling of partial matches and can be slower on poor connections.
Either way, the form must still allow manual entry. Around 2% of addresses are not found on a given day, and a form with no fallback loses those customers. Why UK address forms reject valid addresses lists the ways this goes wrong.
What to ask a vendor
1. Which data set, and how often is it refreshed? PAF updates daily at source; a vendor refreshing monthly is behind on every new build. 2. Which identifiers do you return? UDPRN, UPRN, or neither. If you will ever need to match properties across systems, you want the UPRN. 3. How do you price? Per lookup, per retrieve, per verified address, or per seat. Model your actual traffic, including abandoned sessions, which still make lookups. 4. What happens on partial matches? You want structured results you can act on, not a bare "invalid". 5. Do you support sub-buildings and PO boxes properly? Flats, business units and "care of" addresses are where cheap services fall over. 6. International coverage? If you ship abroad, one provider for all countries is simpler than one per market, but UK quality should not be the casualty. 7. Is there a sandbox, and what does it return? You need stable test responses to build against, which brings us to testing. 8. Data protection. Addresses are personal data. Where is the service hosted, what is logged, and is there a UK GDPR-compliant processing agreement?
Testing an integration without paying per request
Address verification is the textbook external dependency: paid, rate-limited and occasionally down. It does not belong in your automated tests. Mock it at the HTTP boundary, build fixtures that cover each match state, and keep one scheduled contract check against the vendor's sandbox so you notice when the response format changes. Mocking a UK address lookup API in tests has working code for exactly this.
Your fixtures need addresses that are structurally valid, so your own validation does not reject them, and fictional, so a fixture file in version control is not a list of real people's homes. The UK address generator produces addresses on real postcode districts with correct post towns that are not live delivery points, and the REST API returns them as JSON for seed scripts. How UK address generators work explains the construction.
Where this site fits
This site does validation, not verification. The address validator and postcode lookup check structure and district-to-post-town consistency from a curated registry, free and offline. They cannot tell you whether number 14 exists, and they do not pretend to. Use them in a form as the first, free gate, and a PAF- or AddressBase-based service for the verification step when the use case justifies the cost.
More guides
- How to Check if a UK Address Is Real (and What “Valid” Actually Means)
- UK Bank Account Numbers: How Many Digits, How to Read One, and How to Check It
- The National Insurance Number Format Explained, with a Validator
- The NHS Number Format and Check Digit Explained
- UK Company Registration Numbers: Format and Prefixes Explained
- What Is a Post Town? How to Find Yours, and Why It Isn’t Always Your Town
- The UK Driving Licence Number Format Explained
- Data Masking, Anonymisation and Pseudonymisation Under UK GDPR: What Each One Actually Means
- Validating UK Phone Numbers: Formats, Ofcom Ranges and the Mistakes Every Regex Makes
- Mocking a UK Address Lookup API in Your Tests
- Testing KYC and Identity Verification Flows Without Real Identities
- Test Data Management: Production Copies, Masked Data and Synthetic Data
- UK Sort Codes, Account Numbers, IBANs and SWIFT Codes for Test Data
- The UK VAT Number Format Explained, with a Check-Digit Validator
- The UK Postcode Format Explained: Areas, Districts, Sectors and Units
- Royal Mail Address Formatting: How to Lay Out a UK Address Correctly
- How UK Address Generators Work — and How to Tell a Good One
- Using Real Customer Data in Test Environments: The UK GDPR Problem
- Why Your Address Form Rejects Perfectly Valid UK Addresses
- The UK Telephone Numbering Plan, and the Numbers Reserved for Fiction
- Validating UK Postcodes in JavaScript, Python and SQL
- Where UK Address Data Comes From: PAF, ONSPD, OS Open Names and AddressBase
- Why Faker's UK Postcodes Fail Validation